Skip to content

Commit

Permalink
update crashy deps
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyMuse committed Jul 29, 2021
1 parent 6cbb518 commit 65b2842
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 31 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ allprojects {

2. Add the dependency in the application build.gradle

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

```gradle
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 11
targetCompatibility = 11
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
```
4. Inside your AndroidManifest.xml file
Expand Down
16 changes: 7 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,25 @@ android {
}

compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 11
targetCompatibility = 11
}

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}

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

testImplementation "junit:junit:$junitVersion"
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

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

}
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext.kotlin_version = "1.4.30"
ext.kotlin_version = "1.5.21"
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -25,8 +25,8 @@ ext {
//tests
junitVersion = '4.13.2'
hamcrestVersion = '1.3'
androidXTestCoreVersion = '1.3.0'
androidXTestExtKotlinRunnerVersion = '1.1.2'
androidXTestCoreVersion = '1.4.0'
androidXTestExtKotlinRunnerVersion = '1.1.3'
androidXTestRulesVersion = '1.2.0-beta01'
robolectricVersion = '4.4'
archTestingVersion = '2.1.0'
Expand Down
17 changes: 7 additions & 10 deletions crashyreporter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand All @@ -26,25 +24,24 @@ android {
}

compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 11
targetCompatibility = 11
}

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}

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

implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.core:core-ktx:1.6.0'

androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

implementation "androidx.startup:startup-runtime:$startup"
api "androidx.startup:startup-runtime:$startup"


// Dependencies for local unit tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ internal object DeviceUtils {
null
}

@SuppressLint("HardwareIds")
private fun getDeviceID(context: Context): String? = Settings.Secure.getString(context.contentResolver, Settings.Secure.ANDROID_ID)
private fun getAppVersion(context: Context) = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
context.packageManager.getPackageInfo(context.packageName, 0).longVersionCode
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip

0 comments on commit 65b2842

Please sign in to comment.