Skip to content

Commit 65b2842

Browse files
author
FunkyMuse
committed
update crashy deps
1 parent 6cbb518 commit 65b2842

File tree

6 files changed

+23
-31
lines changed

6 files changed

+23
-31
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ allprojects {
2121

2222
2. Add the dependency in the application build.gradle
2323

24-
[Find the latest AndroidX startup version here](https://developer.android.com/jetpack/androidx/releases/startup)
2524
```gradle
2625
dependencies {
27-
// androidX startup for auto-init or find the latest version at the link above
28-
implementation "androidx.startup:startup-runtime:1.0.0"
29-
3026
//crashy
3127
implementation 'com.github.FunkyMuse:Crashy:$version'
3228
}
@@ -36,12 +32,12 @@ dependencies {
3632

3733
```gradle
3834
compileOptions {
39-
sourceCompatibility = 1.8
40-
targetCompatibility = 1.8
35+
sourceCompatibility = 11
36+
targetCompatibility = 11
4137
}
4238
4339
kotlinOptions {
44-
jvmTarget = "1.8"
40+
jvmTarget = "11"
4541
}
4642
```
4743
4. Inside your AndroidManifest.xml file

app/build.gradle

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,25 @@ android {
2727
}
2828

2929
compileOptions {
30-
sourceCompatibility = 1.8
31-
targetCompatibility = 1.8
30+
sourceCompatibility = 11
31+
targetCompatibility = 11
3232
}
3333

3434
kotlinOptions {
35-
jvmTarget = "1.8"
35+
jvmTarget = "11"
3636
}
3737
}
3838

3939
dependencies {
4040
implementation fileTree(dir: "libs", include: ["*.jar"])
41-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
42-
implementation 'androidx.core:core-ktx:1.5.0-beta01'
43-
implementation 'androidx.appcompat:appcompat:1.2.0'
41+
implementation 'androidx.core:core-ktx:1.7.0-alpha01'
42+
implementation 'androidx.appcompat:appcompat:1.3.1'
4443
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
4544

4645
testImplementation "junit:junit:$junitVersion"
47-
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
48-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
46+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
47+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
4948

5049
implementation project(path: ':crashyreporter')
51-
implementation "androidx.startup:startup-runtime:$startup"
5250

5351
}

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript {
2-
ext.kotlin_version = "1.4.30"
2+
ext.kotlin_version = "1.5.21"
33
repositories {
44
google()
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:4.1.2'
8+
classpath 'com.android.tools.build:gradle:7.0.0'
99
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1010
}
1111
}
@@ -25,8 +25,8 @@ ext {
2525
//tests
2626
junitVersion = '4.13.2'
2727
hamcrestVersion = '1.3'
28-
androidXTestCoreVersion = '1.3.0'
29-
androidXTestExtKotlinRunnerVersion = '1.1.2'
28+
androidXTestCoreVersion = '1.4.0'
29+
androidXTestExtKotlinRunnerVersion = '1.1.3'
3030
androidXTestRulesVersion = '1.2.0-beta01'
3131
robolectricVersion = '4.4'
3232
archTestingVersion = '2.1.0'

crashyreporter/build.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ android {
77
defaultConfig {
88
minSdkVersion 21
99
targetSdkVersion 30
10-
versionCode 1
11-
versionName "1.0"
1210

1311
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1412
consumerProguardFiles "consumer-rules.pro"
@@ -26,25 +24,24 @@ android {
2624
}
2725

2826
compileOptions {
29-
sourceCompatibility = 1.8
30-
targetCompatibility = 1.8
27+
sourceCompatibility = 11
28+
targetCompatibility = 11
3129
}
3230

3331
kotlinOptions {
34-
jvmTarget = "1.8"
32+
jvmTarget = "11"
3533
}
3634
}
3735

3836
dependencies {
3937
implementation fileTree(dir: "libs", include: ["*.jar"])
40-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
4138

42-
implementation 'androidx.core:core-ktx:1.3.2'
39+
implementation 'androidx.core:core-ktx:1.6.0'
4340

44-
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
45-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
41+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
42+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
4643

47-
implementation "androidx.startup:startup-runtime:$startup"
44+
api "androidx.startup:startup-runtime:$startup"
4845

4946

5047
// Dependencies for local unit tests

crashyreporter/src/main/java/com/crazylegend/crashyreporter/utils/DeviceUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ internal object DeviceUtils {
125125
null
126126
}
127127

128+
@SuppressLint("HardwareIds")
128129
private fun getDeviceID(context: Context): String? = Settings.Secure.getString(context.contentResolver, Settings.Secure.ANDROID_ID)
129130
private fun getAppVersion(context: Context) = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
130131
context.packageManager.getPackageInfo(context.packageName, 0).longVersionCode

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
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-6.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip

0 commit comments

Comments
 (0)