Skip to content

Commit 9504209

Browse files
committed
plugin: bump min sdk to 21 + update test dependencies + proguard rules
1 parent b79a866 commit 9504209

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

hms-plugin/build.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ext {
99
android {
1010
namespace = "com.batch.android.plugin.hms"
1111
defaultConfig {
12-
minSdkVersion 17
12+
minSdkVersion 21
1313
compileSdk 34
1414
targetSdkVersion 34
1515
versionCode 1
@@ -44,15 +44,13 @@ dependencies {
4444
implementation "androidx.annotation:annotation:$androidXLibraryVersion"
4545

4646
// Optional
47-
compileOnly 'com.huawei.hms:ads-identifier:3.4.30.307'
48-
4947
compileOnly "com.google.firebase:firebase-messaging:22.0.0"
5048

51-
testImplementation 'junit:junit:4.13'
52-
testImplementation 'androidx.test.ext:junit:1.1.1'
53-
testImplementation 'org.mockito:mockito-core:3.2.4'
54-
testImplementation 'org.robolectric:robolectric:4.4'
55-
testImplementation 'androidx.test.espresso:espresso-core:3.2.0'
49+
testImplementation 'junit:junit:4.13.2'
50+
testImplementation 'androidx.test.ext:junit:1.2.1'
51+
testImplementation 'org.mockito:mockito-core:5.4.0'
52+
testImplementation 'org.robolectric:robolectric:4.11.1'
53+
testImplementation 'androidx.test.espresso:espresso-core:3.6.1'
5654
}
5755

5856
apply from: 'maven-publish.gradle'

hms-plugin/consumer-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
-keep class com.huawei.updatesdk.**{*;}
1010
-keep class com.huawei.hms.**{*;}
1111
-keep class com.huawei.hms.ads.** { *; }
12+
-keep class com.huawei.hms.api.** { *; }
1213
-keep interface com.huawei.hms.ads.** { *; }

0 commit comments

Comments
 (0)