Skip to content

Commit b0e2a5f

Browse files
committed
update gradle and targetSdkVersion (WIP)
still need to make some changes for the higher SDK version
1 parent 003ec8c commit b0e2a5f

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript
88

99
dependencies
1010
{
11-
classpath 'com.android.tools.build:gradle:3.4.0'
11+
classpath 'com.android.tools.build:gradle:8.0.1'
1212
}
1313
}
1414

client/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ apply plugin: 'com.android.application'
33
android
44
{
55
compileSdkVersion 27
6-
buildToolsVersion "28.0.3"
76
defaultConfig
87
{
98
applicationId "net.kzxiv.notify.client"
109
minSdkVersion 21
11-
targetSdkVersion 21
10+
targetSdkVersion 33
1211
versionCode 2
1312
versionName "1.1"
1413
}
1514
lintOptions
1615
{
1716
abortOnError false
1817
}
18+
namespace 'net.kzxiv.notify.client'
1919
}

client/src/main/AndroidManifest.xml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.kzxiv.notify.client">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<uses-permission android:name="android.permission.INTERNET" />
33
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
44

@@ -9,7 +9,9 @@
99
android:theme="@style/AppTheme">
1010
<service
1111
android:name=".NotificationService"
12-
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
12+
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
13+
android:exported="true">
14+
1315
<intent-filter>
1416
<action android:name="android.service.notification.NotificationListenerService" />
1517
</intent-filter>
@@ -19,7 +21,9 @@
1921
android:name=".HttpTransportService"
2022
android:exported="false" />
2123

22-
<activity android:name=".ConfigurationActivity">
24+
<activity android:name=".ConfigurationActivity"
25+
android:exported="true">
26+
2327
<intent-filter>
2428
<action android:name="android.intent.action.MAIN" />
2529
<action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
android.defaults.buildfeatures.buildconfig=true
2+
android.nonFinalResIds=false
3+
android.nonTransitiveRClass=false

gradle/wrapper/gradle-wrapper.properties

+1-1
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-8.0-all.zip

0 commit comments

Comments
 (0)