Skip to content

Commit f83492e

Browse files
chore: upgraded gradle (#2294)
* Upgraded gradle and substituted previously used feaatures * Update build.gradle Co-authored-by: Padmal <CloudyPadmal@users.noreply.github.com> * Update build.gradle Co-authored-by: Padmal <CloudyPadmal@users.noreply.github.com> Co-authored-by: Padmal <CloudyPadmal@users.noreply.github.com>
1 parent d9f4a2d commit f83492e

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

app/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ dependencies {
7676
implementation fileTree(include: ['*.jar'], dir: 'libs')
7777

7878
// Android stock libraries
79-
implementation 'androidx.appcompat:appcompat:1.3.1'
79+
implementation 'androidx.appcompat:appcompat:1.4.0'
8080
implementation 'androidx.cardview:cardview:1.0.0'
8181
implementation 'androidx.recyclerview:recyclerview:1.2.1'
8282
implementation 'com.google.android.material:material:1.4.0'
8383
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
8484
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
8585
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
86-
implementation 'androidx.browser:browser:1.3.0'
86+
implementation 'androidx.browser:browser:1.4.0'
8787
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
8888

8989
// Custom tools libraries
@@ -121,7 +121,6 @@ dependencies {
121121

122122
implementation 'androidx.multidex:multidex:2.0.1'
123123
implementation "io.realm:android-adapters:$rootProject.realmAdapter"
124-
125124
testImplementation "junit:junit:$rootProject.junitVersion"
126125
androidTestImplementation('androidx.test.ext:junit:1.1.3') {
127126
exclude group: 'com.android.support', module: 'support-annotations'
@@ -142,7 +141,4 @@ dependencies {
142141
exclude group: 'com.android.support', module: 'appcompat-v7'
143142
exclude group: 'com.android.support', module: 'design'
144143
}
145-
146-
implementation 'com.android.support:appcompat-v7:28.0.0'
147-
implementation 'com.android.support:design:28.0.0'
148144
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
<activity
4545
android:name=".activity.SplashActivity"
4646
android:screenOrientation="user"
47-
android:theme="@style/AppThemeSplash">
47+
android:theme="@style/AppThemeSplash"
48+
android:exported="true">
4849
<intent-filter>
4950
<action android:name="android.intent.action.MAIN" />
5051

@@ -54,7 +55,8 @@
5455
<activity
5556
android:name=".activity.MainActivity"
5657
android:configChanges="orientation|screenSize|keyboardHidden"
57-
android:launchMode="singleTask">
58+
android:launchMode="singleTask"
59+
android:exported="false">
5860
<intent-filter>
5961
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
6062
</intent-filter>

build.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,30 @@
33
buildscript {
44

55
repositories {
6-
jcenter()
76
google()
7+
mavenCentral()
8+
maven { url "https://jitpack.io" }
89
maven { url "https://plugins.gradle.org/m2/" }
910
}
1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.0.3'
12+
classpath 'com.android.tools.build:gradle:7.0.4'
1213
classpath "io.realm:realm-gradle-plugin:10.8.1"
1314
classpath "gradle.plugin.com.github.b3er.local.properties:local-properties-plugin:1.1"
1415
// NOTE: Do not place your application dependencies here; they belong
1516
// in the individual module build.gradle files
1617
}
1718
}
1819

20+
1921
allprojects {
2022
repositories {
21-
jcenter()
2223
google()
24+
mavenCentral()
2325
maven { url "https://jitpack.io" }
26+
maven { url "https://plugins.gradle.org/m2/" }
2427
}
25-
}
28+
}
29+
2630

2731
task clean(type: Delete) {
2832
delete rootProject.buildDir
@@ -32,8 +36,8 @@ task clean(type: Delete) {
3236
ext {
3337
// Sdk and tools
3438
minSdkVersion = 23
35-
targetSdkVersion = 28
36-
compileSdkVersion = 28
39+
targetSdkVersion = 31
40+
compileSdkVersion = 31
3741

3842
// App dependencies
3943
androidAboutPageVersion = '1.3.1'

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ google_key = "AIzaSyBFvrqI8_J108WntI7surDGqCUcd1RbHPQ"
1414
android.useAndroidX=true
1515
android.enableJetifier=true
1616
kapt.incremental.apt=true
17+
org.gradle.warning.mode=all
1718
# When configured, Gradle will run in incubating parallel mode.
1819
# This option should only be used with decoupled projects. More details, visit
1920
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

0 commit comments

Comments
 (0)