File tree 8 files changed +28
-20
lines changed
sdk/src/main/java/com/deploygate/sdk
8 files changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ version: 2.1
3
3
executors :
4
4
android :
5
5
docker :
6
- - image : cimg/android:2022.03
6
+ - image : cimg/android:2023.07
7
7
working_directory : ~/deploygate-android-sdk
8
8
environment :
9
- GRADLE_OPTS : ' -Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxPermSize =512m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false'
9
+ GRADLE_OPTS : ' -Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxMetaspaceSize =512m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false'
10
10
11
11
commands :
12
12
restore_gradle_cache :
Original file line number Diff line number Diff line change 15
15
- uses : actions/checkout@v3
16
16
- uses : actions/setup-java@v3
17
17
with :
18
- java-version : ' 8 .x'
18
+ java-version : ' 17 .x'
19
19
java-package : jdk
20
20
distribution : ' temurin'
21
21
cache : ' gradle'
Original file line number Diff line number Diff line change 20
20
- uses : actions/checkout@v3
21
21
- uses : actions/setup-java@v3
22
22
with :
23
- java-version : ' 8 .x'
23
+ java-version : ' 17 .x'
24
24
java-package : jdk
25
25
distribution : ' temurin'
26
26
cache : ' gradle'
57
57
- uses : actions/checkout@v3
58
58
- uses : actions/setup-java@v3
59
59
with :
60
- java-version : ' 8 .x'
60
+ java-version : ' 17 .x'
61
61
java-package : jdk
62
62
distribution : ' temurin'
63
63
cache : ' gradle'
Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ buildscript {
7
7
repositories {
8
8
mavenCentral()
9
9
google()
10
+ gradlePluginPortal()
10
11
}
11
12
dependencies {
12
- classpath ' com.android.tools.build:gradle:4.2 .2'
13
- classpath ' com.akaita.android :easylauncher:1.3 .1'
13
+ classpath ' com.android.tools.build:gradle:7.4 .2'
14
+ classpath ' com.project.starter :easylauncher:5.0 .1'
14
15
}
15
16
}
16
17
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.7 .1-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.6 .1-bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
- apply plugin : ' com.akaita.android .easylauncher'
2
+ apply plugin : ' com.starter .easylauncher'
3
3
4
4
android {
5
- compileSdkVersion = 32
5
+ compileSdkVersion 33
6
6
7
7
defaultConfig {
8
8
applicationId " com.deploygate.sample"
9
9
minSdkVersion 14
10
- targetSdkVersion 32
10
+ targetSdkVersion 33
11
11
}
12
12
13
13
buildTypes {
@@ -56,7 +56,7 @@ android {
56
56
}
57
57
58
58
easylauncher {
59
- defaultFlavorNaming = true
59
+ defaultFlavorNaming true
60
60
61
61
productFlavors {
62
62
devreal {
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ apply plugin: 'maven-publish'
4
4
version = rootProject. ext. releaseVersion
5
5
6
6
android {
7
- compileSdkVersion 29
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
minSdkVersion 14
11
- targetSdkVersion 29
11
+ targetSdkVersion 33
12
12
versionCode 1
13
13
versionName project. version
14
14
manifestPlaceholders = [sdkVersion :" 4" ]
@@ -40,11 +40,11 @@ android {
40
40
}
41
41
42
42
dependencies {
43
- testImplementation ' androidx.test:runner:1.2.0 '
44
- testImplementation ' androidx.test.ext:junit:1.1.1 '
45
- testImplementation ' org.robolectric:robolectric:4.3.1 '
43
+ testImplementation ' androidx.test:runner:1.5.2 '
44
+ testImplementation ' androidx.test.ext:junit:1.1.5 '
45
+ testImplementation ' org.robolectric:robolectric:4.10.3 '
46
46
47
- testImplementation ' androidx.test:rules:1.2 .0'
47
+ testImplementation ' androidx.test:rules:1.5 .0'
48
48
testImplementation ' com.google.truth:truth:1.0'
49
49
}
50
50
Original file line number Diff line number Diff line change 7
7
import android .content .Intent ;
8
8
import android .content .IntentFilter ;
9
9
import android .content .ServiceConnection ;
10
+ import android .os .Build ;
10
11
import android .os .Bundle ;
11
12
import android .os .Handler ;
12
13
import android .os .IBinder ;
@@ -259,7 +260,7 @@ private boolean initService(boolean isBoot) {
259
260
260
261
private void prepareBroadcastReceiver () {
261
262
IntentFilter filter = new IntentFilter (ACTION_DEPLOYGATE_STARTED );
262
- mApplicationContext . registerReceiver ( new BroadcastReceiver () {
263
+ BroadcastReceiver receiver = new BroadcastReceiver () {
263
264
@ Override
264
265
public void onReceive (
265
266
Context context ,
@@ -272,7 +273,13 @@ public void onReceive(
272
273
bindToService (false );
273
274
}
274
275
}
275
- }, filter );
276
+ };
277
+
278
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
279
+ mApplicationContext .registerReceiver (receiver , filter , Context .RECEIVER_EXPORTED );
280
+ } else {
281
+ mApplicationContext .registerReceiver (receiver , filter );
282
+ }
276
283
}
277
284
278
285
private void bindToService (final boolean isBoot ) {
You can’t perform that action at this time.
0 commit comments