File tree Expand file tree Collapse file tree 8 files changed +289
-157
lines changed
CriticalPermissionsHelper
src/main/java/com/zebra/criticalpermissionshelper Expand file tree Collapse file tree 8 files changed +289
-157
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,18 @@ plugins {
44ext {
55 PUBLISH_GROUP_ID = ' com.zebra.criticalpermissionshelper'
66 PUBLISH_ARTIFACT_ID = ' criticalpermissionshelper'
7- PUBLISH_VERSION = ' 0.8.2 '
7+ PUBLISH_VERSION = ' 0.9.0 '
88}
99
1010android {
11- compileSdkVersion 34
11+ namespace " com.zebra.criticalpermissionshelper"
12+ compileSdkVersion 35
1213
1314 defaultConfig {
1415 minSdkVersion 30
15- targetSdkVersion 34
16- versionCode 10
17- versionName " 0.8.3 "
16+ targetSdkVersion 35
17+ versionCode 11
18+ versionName " 0.9.0 "
1819
1920 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
2021
@@ -30,7 +31,12 @@ android {
3031 sourceCompatibility JavaVersion . VERSION_1_8
3132 targetCompatibility JavaVersion . VERSION_1_8
3233 }
33-
34+ publishing{
35+ singleVariant(" release" ) {
36+ withSourcesJar()
37+ withJavadocJar()
38+ }
39+ }
3440}
3541
3642dependencies {
@@ -40,3 +46,24 @@ dependencies {
4046 androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
4147 compileOnly ' com.symbol:emdk:9.1.1'
4248}
49+
50+ afterEvaluate {
51+ publishing {
52+ publications {
53+ release(MavenPublication ) {
54+ groupId = ' com.zebra.criticalpermissionshelper'
55+ artifactId = ' criticalpermissionshelper'
56+ version = ' 0.9.0'
57+
58+ afterEvaluate {
59+ from components. findByName(' release' )
60+ }
61+ }
62+ }
63+ }
64+ }
65+ java {
66+ toolchain {
67+ languageVersion = JavaLanguageVersion . of(17 )
68+ }
69+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ public enum EPermissionType
1010 MANAGE_EXTERNAL_STORAGE ( "android.permission.MANAGE_EXTERNAL_STORAGE" ),
1111 BIND_NOTIFICATION_LISTENER ( "android.permission.BIND_NOTIFICATION_LISTENER" ),
1212 READ_LOGS ( "android.permission.READ_LOGS" ),
13- ALL_DANGEROUS_PERMISSIONS ( "ALL_DANGEROUS_PERMISSIONS" );
13+ ALL_DANGEROUS_PERMISSIONS ( "ALL_DANGEROUS_PERMISSIONS" ),
14+ ACCESS_RX_LOGGER ( "com.zebra.permission.ACCESS_RXLOGGER" ),
15+ SCHEDULE_EXACT_ALARM ( "android.permission.SCHEDULE_EXACT_ALARM" ),
16+ WRITE_SETTINGS ( "android.permission.WRITE_SETTINGS" );
1417
1518 String stringContent = "" ;
1619 EPermissionType (String stringContent )
@@ -45,6 +48,12 @@ public static EPermissionType fromString(String permissionType)
4548 return READ_LOGS ;
4649 case "ALL_DANGEROUS_PERMISSIONS" :
4750 return ALL_DANGEROUS_PERMISSIONS ;
51+ case "com.zebra.permission.ACCESS_RXLOGGER" :
52+ return ACCESS_RX_LOGGER ;
53+ case "android.permission.SCHEDULE_EXACT_ALARM" :
54+ return SCHEDULE_EXACT_ALARM ;
55+ case "android.permission.WRITE_SETTINGS" :
56+ return WRITE_SETTINGS ;
4857 default :
4958 return null ;
5059 }
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
33plugins {
4- id ' com.android.application' version ' 7.2.2' apply false
5- id ' com.android.library' version ' 7.2.2' apply false
4+ id ' com.android.application' version ' 8.7.0' apply false
5+ id ' com.android.library' version ' 8.7.0' apply false
6+ id ' maven-publish'
67}
78
89task clean (type : Delete ) {
Original file line number Diff line number Diff line change 1- # Tue Jun 09 09:22:20 BST 2020
21distributionBase =GRADLE_USER_HOME
32distributionPath =wrapper/dists
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.12-bin.zip
4+ networkTimeout =10000
5+ validateDistributionUrl =true
46zipStoreBase =GRADLE_USER_HOME
57zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
You can’t perform that action at this time.
0 commit comments