Skip to content

Commit 47d0a6a

Browse files
committed
update gradle and agp
1 parent 5aea7f0 commit 47d0a6a

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

app/build.gradle

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 32
4+
compileSdkVersion 36
5+
56
defaultConfig {
67
applicationId "io.github.ratul.topactivity"
78
minSdkVersion 24
8-
targetSdkVersion 33
9-
versionCode 18
10-
versionName "1.5.8"
9+
targetSdkVersion 36
10+
versionCode 20
11+
versionName "2.0.0"
1112
}
1213

1314
buildTypes {
@@ -24,12 +25,16 @@ android {
2425
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2526
}
2627
}
28+
29+
buildFeatures {
30+
buildConfig true
31+
}
2732
}
2833

2934
dependencies {
30-
implementation 'androidx.appcompat:appcompat:1.4.1'
31-
implementation 'com.google.android.material:material:1.6.1'
32-
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
33-
implementation 'androidx.preference:preference:1.2.0'
34-
implementation 'androidx.core:core:1.7.0'
35+
implementation 'androidx.appcompat:appcompat:1.7.1'
36+
implementation 'com.google.android.material:material:1.12.0'
37+
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
38+
implementation 'androidx.preference:preference:1.2.1'
39+
implementation 'androidx.core:core:1.17.0'
3540
}

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:7.2.1'
8+
classpath 'com.android.tools.build:gradle:8.11.1'
99
}
1010
}
1111

@@ -16,6 +16,6 @@ allprojects {
1616
}
1717
}
1818

19-
task clean(type: Delete) {
20-
delete rootProject.buildDir
19+
tasks.register('clean', Delete) {
20+
delete rootProject.getBuildDir()
2121
}

gradle.properties

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
# Project-wide Gradle settings.
2-
32
# IDE (e.g. Android Studio) users:
43
# Gradle settings configured through the IDE *will override*
54
# any settings specified in this file.
6-
75
# For more details on how to configure your build environment visit
86
# http://www.gradle.org/docs/current/userguide/build_environment.html
9-
107
# Specifies the JVM arguments used for the daemon process.
118
# The setting is particularly useful for tweaking memory settings.
12-
org.gradle.jvmargs=-Xmx1536m
13-
9+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
1410
# When configured, Gradle will run in incubating parallel mode.
15-
# This option should only be used with decoupled projects. More details, visit
16-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
11+
# This option should only be used with decoupled projects. For more details, visit
12+
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
1713
# org.gradle.parallel=true
14+
# AndroidX package structure to make it clearer which packages are bundled with the
15+
# Android operating system, and which are packaged with your app's APK
16+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1817
android.useAndroidX=true
19-
android.R8=true
20-
android.enableJetifier=true
18+
# Enables namespacing of each library's R class so that its R class includes only the
19+
# resources declared in the library itself and none from the library's dependencies,
20+
# thereby reducing the size of the R class for that library
21+
android.nonTransitiveRClass=true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Aug 30 15:20:07 CST 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)