Skip to content

Commit a3bc8e3

Browse files
author
WuWenhui
committed
升级Android SDK 2.6.3
1 parent cb7e74d commit a3bc8e3

File tree

13 files changed

+84
-29
lines changed

13 files changed

+84
-29
lines changed

.idea/workspace.xml

Lines changed: 28 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.2.1'
11+
classpath 'com.android.tools.build:gradle:4.1.3'
1212
}
1313
}
1414

@@ -22,7 +22,7 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion 28
25+
compileSdkVersion 33
2626

2727
defaultConfig {
2828
minSdkVersion 16

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

android/libs/OpenInstall_v2.6.2.jar

-94.6 KB
Binary file not shown.

android/libs/OpenInstall_v2.6.3.jar

86.5 KB
Binary file not shown.

android/src/main/java/io/openinstall/openinstall_flutter_plugin/OpeninstallFlutterPlugin.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public class OpeninstallFlutterPlugin implements FlutterPlugin, MethodCallHandle
4141
private static final String METHOD_WAKEUP = "registerWakeup";
4242

4343
private static final String METHOD_CONFIG = "config";
44+
private static final String METHOD_CLIPBOARD_ENABLED = "clipBoardEnabled";
45+
private static final String METHOD_SERIAL_ENABLED = "serialEnabled";
4446
private static final String METHOD_INIT = "init";
4547
private static final String METHOD_INSTALL_RETRY = "getInstallCanRetry";
4648
private static final String METHOD_INSTALL = "getInstall";
@@ -92,12 +94,22 @@ public void onMethodCall(MethodCall call, @NonNull Result result) {
9294
Boolean imeiDisabled = call.argument("imeiDisabled");
9395
config(adEnabled, oaid, gaid, macDisabled, imeiDisabled);
9496
result.success("OK");
97+
} else if (METHOD_CLIPBOARD_ENABLED.equalsIgnoreCase(call.method)) {
98+
Boolean enabled = call.argument("enabled");
99+
OpenInstall.clipBoardEnabled(enabled == null ? true : enabled);
100+
result.success("OK");
101+
} else if (METHOD_SERIAL_ENABLED.equalsIgnoreCase(call.method)) {
102+
Boolean enabled = call.argument("enabled");
103+
OpenInstall.serialEnabled(enabled == null ? true : enabled);
104+
result.success("OK");
95105
} else if (METHOD_INIT.equalsIgnoreCase(call.method)) {
96-
alwaysCallback = call.argument("alwaysCallback");
106+
Boolean box = call.argument("alwaysCallback");
107+
alwaysCallback = box == null ? false : box;
97108
init();
98109
result.success("OK");
99110
} else if (METHOD_INIT_PERMISSION.equalsIgnoreCase(call.method)) {
100-
alwaysCallback = call.argument("alwaysCallback");
111+
Boolean box = call.argument("alwaysCallback");
112+
alwaysCallback = box == null ? false : box;
101113
initWithPermission();
102114
result.success("OK");
103115
} else if (METHOD_WAKEUP.equalsIgnoreCase(call.method)) {

example/.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"openinstall_flutter_plugin","path":"D:\\\\workspace\\\\OP\\\\openinstall_flutter_plugin\\\\","dependencies":[]}],"android":[{"name":"openinstall_flutter_plugin","path":"D:\\\\workspace\\\\OP\\\\openinstall_flutter_plugin\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"openinstall_flutter_plugin","dependencies":[]}],"date_created":"2022-04-08 11:50:22.000328","version":"2.8.1"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"openinstall_flutter_plugin","path":"D:\\\\workspace\\\\OP\\\\openinstall_flutter_plugin\\\\","dependencies":[]}],"android":[{"name":"openinstall_flutter_plugin","path":"D:\\\\workspace\\\\OP\\\\openinstall_flutter_plugin\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"openinstall_flutter_plugin","dependencies":[]}],"date_created":"2022-08-01 17:19:48.747105","version":"2.8.1"}

example/android/app/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 28
28+
compileSdkVersion 33
2929

3030
lintOptions {
3131
disable 'InvalidPackage'
@@ -35,7 +35,7 @@ android {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "io.openinstall.openinstall_flutter_plugin_example"
3737
minSdkVersion 16
38-
targetSdkVersion 28
38+
targetSdkVersion 33
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
4141
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -65,5 +65,4 @@ dependencies {
6565
androidTestImplementation 'com.android.support.test:runner:1.0.2'
6666
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
6767

68-
// implementation "com.android.support:appcompat-v7:28.0.0"
6968
}

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.2.1'
8+
classpath 'com.android.tools.build:gradle:4.1.3'
99
}
1010
}
1111

example/android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2+
3+
android.useAndroidX=true

0 commit comments

Comments
 (0)