File tree 11 files changed +46
-22
lines changed
augmented-reality/src/main/resources/META-INF/substrate/dalvik
barcode-scan/src/main/resources/META-INF/substrate/dalvik
local-notifications/src/main
resources/META-INF/substrate/dalvik
push-notifications/src/main
resources/META-INF/substrate/dalvik
store-review/src/main/resources/META-INF/substrate/dalvik
11 files changed +46
-22
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
4
4
google()
5
5
}
6
6
dependencies {
7
- classpath ' com.android.tools.build:gradle:7.3.0 '
7
+ classpath ' com.android.tools.build:gradle:8.1.1 '
8
8
}
9
9
}
10
10
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
3
zipStoreBase =GRADLE_USER_HOME
4
4
zipStorePath =wrapper/dists
5
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5 -bin.zip
5
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.3 -bin.zip
Original file line number Diff line number Diff line change @@ -4,18 +4,19 @@ android {
4
4
5
5
namespace ' com.gluonhq.helloandroid'
6
6
7
- compileSdkVersion 31
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
minSdkVersion 21
11
- targetSdkVersion 31
11
+ targetSdkVersion 33
12
12
}
13
13
14
14
dependencies {
15
15
compileOnly fileTree(dir : ' ../libs' , include : ' *.jar' )
16
16
}
17
17
18
- afterEvaluate {
19
- generateDebugBuildConfig. enabled = false
18
+ buildFeatures {
19
+ buildConfig = false
20
+ resValues = false
20
21
}
21
22
}
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ android {
4
4
5
5
namespace ' com.gluonhq.helloandroid'
6
6
7
- compileSdkVersion 31
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
minSdkVersion 21
11
- targetSdkVersion 31
11
+ targetSdkVersion 33
12
12
}
13
13
14
14
compileOptions {
@@ -22,7 +22,8 @@ android {
22
22
implementation ' de.javagl:obj:0.3.0'
23
23
}
24
24
25
- afterEvaluate {
26
- generateDebugBuildConfig. enabled = false
25
+ buildFeatures {
26
+ buildConfig = false
27
+ resValues = false
27
28
}
28
29
}
Original file line number Diff line number Diff line change @@ -4,19 +4,20 @@ android {
4
4
5
5
namespace ' com.gluonhq.helloandroid'
6
6
7
- compileSdkVersion 31
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
minSdkVersion 21
11
- targetSdkVersion 31
11
+ targetSdkVersion 33
12
12
}
13
13
14
14
dependencies {
15
15
compileOnly fileTree(dir : ' ../libs' , include : ' *.jar' )
16
16
implementation ' com.google.zxing:core:3.4.1'
17
17
}
18
18
19
- afterEvaluate {
20
- generateDebugBuildConfig. enabled = false
19
+ buildFeatures {
20
+ buildConfig = false
21
+ resValues = false
21
22
}
22
23
}
Original file line number Diff line number Diff line change 27
27
*/
28
28
package com .gluonhq .helloandroid ;
29
29
30
+ import android .Manifest ;
30
31
import android .app .Activity ;
31
32
import android .app .AlarmManager ;
32
33
import android .app .Notification ;
40
41
import android .graphics .Color ;
41
42
import android .net .Uri ;
42
43
import android .os .Build ;
44
+ import android .util .Log ;
43
45
44
46
public class DalvikLocalNotificationsService {
45
47
@@ -50,6 +52,13 @@ public class DalvikLocalNotificationsService {
50
52
51
53
public DalvikLocalNotificationsService (Activity activity ) {
52
54
DalvikLocalNotificationsService .this .activity = activity ;
55
+
56
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
57
+ boolean notificationsEnabled = Util .verifyPermissions (Manifest .permission .POST_NOTIFICATIONS );
58
+ if (!notificationsEnabled ) {
59
+ Log .v (TAG , "Post notifications disabled. POST_NOTIFICATIONS permission is required" );
60
+ }
61
+ }
53
62
}
54
63
55
64
static Activity getActivity () {
Original file line number Diff line number Diff line change 2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android" xmlns : tools =" http://schemas.android.com/tools" >
3
3
<uses-sdk android : minSdkVersion =" 21" />
4
4
<uses-permission android : name =" android.permission.SCHEDULE_EXACT_ALARM" />
5
+ <uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
5
6
<application >
6
7
<activity android : name =' com.gluonhq.helloandroid.MainActivity'
7
8
android : exported =" true"
Original file line number Diff line number Diff line change 27
27
*/
28
28
package com .gluonhq .helloandroid ;
29
29
30
+ import android .Manifest ;
30
31
import android .app .Activity ;
31
32
import android .app .job .JobInfo ;
32
33
import android .app .job .JobScheduler ;
@@ -51,6 +52,13 @@ public class DalvikPushNotificationsService {
51
52
52
53
public DalvikPushNotificationsService (Activity activity ) {
53
54
DalvikPushNotificationsService .this .activity = activity ;
55
+
56
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
57
+ boolean notificationsEnabled = Util .verifyPermissions (Manifest .permission .POST_NOTIFICATIONS );
58
+ if (!notificationsEnabled ) {
59
+ Log .v (TAG , "Post notifications disabled. POST_NOTIFICATIONS permission is required" );
60
+ }
61
+ }
54
62
}
55
63
56
64
static Activity getActivity () {
Original file line number Diff line number Diff line change 4
4
<uses-permission android : name =" com.google.android.c2dm.permission.RECEIVE" />
5
5
<uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
6
6
<uses-permission android : name =" android.permission.RECEIVE_BOOT_COMPLETED" />
7
+ <uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
7
8
<application >
8
9
<activity android : name =' com.gluonhq.helloandroid.MainActivity'
9
10
android : exported =" true"
Original file line number Diff line number Diff line change @@ -4,15 +4,16 @@ android {
4
4
5
5
namespace ' com.gluonhq.helloandroid'
6
6
7
- compileSdkVersion 31
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
minSdkVersion 21
11
- targetSdkVersion 31
11
+ targetSdkVersion 33
12
12
}
13
13
14
- afterEvaluate {
15
- generateDebugBuildConfig. enabled = false
14
+ buildFeatures {
15
+ buildConfig = false
16
+ resValues = false
16
17
}
17
18
18
19
}
Original file line number Diff line number Diff line change @@ -4,15 +4,16 @@ android {
4
4
5
5
namespace ' com.gluonhq.helloandroid'
6
6
7
- compileSdkVersion 31
7
+ compileSdkVersion 33
8
8
9
9
defaultConfig {
10
10
minSdkVersion 21
11
- targetSdkVersion 31
11
+ targetSdkVersion 33
12
12
}
13
13
14
- afterEvaluate {
15
- generateDebugBuildConfig. enabled = false
14
+ buildFeatures {
15
+ buildConfig = false
16
+ resValues = false
16
17
}
17
18
18
19
}
You can’t perform that action at this time.
0 commit comments