Skip to content

Commit 8422355

Browse files
authored
downgrade to gradle 7 (#77)
1 parent 2bd4359 commit 8422355

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = "1.8.10"
3+
ext.kotlin_version = "1.8.0"
44
repositories {
55
maven { url "https://plugins.gradle.org/m2/" }
66
google()
77
mavenCentral()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:8.1.4'
10+
classpath 'com.android.tools.build:gradle:7.4.2'
1111
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1313
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'

demo/build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-kapt'
3+
//apply plugin: 'kotlin-kapt'
44
apply plugin: 'androidx.navigation.safeargs'
55

66
android {
77

88
defaultConfig {
99
applicationId "com.apphud.demo"
1010
minSdkVersion 26
11-
compileSdk 34
12-
targetSdk 34
11+
compileSdk 33
12+
targetSdk 33
1313
versionCode 1
1414
versionName "1.0.0"
1515

@@ -24,29 +24,29 @@ android {
2424
}
2525

2626
compileOptions {
27-
targetCompatibility JavaVersion.VERSION_17
28-
sourceCompatibility JavaVersion.VERSION_17
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
sourceCompatibility JavaVersion.VERSION_1_8
2929
}
3030

3131
buildFeatures {
3232
buildConfig = true
3333
viewBinding true
3434
}
3535
kotlinOptions {
36-
jvmTarget = '17'
36+
jvmTarget = '1.8'
3737
}
3838
namespace 'com.apphud.demo'
3939
}
4040

4141
dependencies {
42-
implementation 'androidx.core:core-ktx:1.12.0'
42+
implementation 'androidx.core:core-ktx'
4343
implementation 'androidx.appcompat:appcompat:1.6.1'
44-
implementation 'com.google.android.material:material:1.10.0'
44+
implementation 'com.google.android.material:material:1.8.0'
4545
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4646
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2'
4747
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2'
48-
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.5'
49-
implementation 'androidx.navigation:navigation-ui-ktx:2.7.5'
48+
implementation 'androidx.navigation:navigation-fragment-ktx:2.6.0'
49+
implementation 'androidx.navigation:navigation-ui-ktx:2.6.0'
5050
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
5151
implementation("org.greenrobot:eventbus:3.3.1")
5252

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ android.useAndroidX=true
1919
android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
kotlin.code.style=official
22-
23-
sdkVersion=2.3.8
22+
sdkVersion=2.3.9

sdk/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ ext {
2323
android {
2424
defaultConfig {
2525
minSdkVersion 26
26-
targetSdk 34
27-
compileSdk 34
26+
targetSdk 33
27+
compileSdk 33
2828
versionName project.properties.sdkVersion
2929
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3030
consumerProguardFiles "consumer-rules.pro"
@@ -46,11 +46,11 @@ android {
4646
}
4747

4848
compileOptions {
49-
sourceCompatibility JavaVersion.VERSION_17
50-
targetCompatibility JavaVersion.VERSION_17
49+
sourceCompatibility JavaVersion.VERSION_1_8
50+
targetCompatibility JavaVersion.VERSION_1_8
5151
}
5252
kotlinOptions {
53-
jvmTarget = '17'
53+
jvmTarget = '1.8'
5454
}
5555
namespace 'com.apphud.sdk'
5656
}

0 commit comments

Comments
 (0)