Skip to content

Commit

Permalink
upgrade java runtime to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
duanju committed Oct 8, 2024
1 parent af8ea4c commit e22f688
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
8 changes: 7 additions & 1 deletion SplitEditTextView/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

// Specify Java version compatibility
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.7.0'
}
}
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ buildscript {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}

dependencies {
Expand All @@ -32,4 +33,4 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}
11 changes: 9 additions & 2 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

// Specify Java version compatibility
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = "1.8" // or "17" to match Kotlin JVM version
jvmTarget = "11" // or "17" to match Kotlin JVM version
}

viewBinding {
Expand All @@ -38,9 +44,10 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation project(path: ':SplitEditTextView')
// implementation 'com.github.duanju:SplitEditTextView:v1.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
implementation 'com.google.android.material:material:1.12.0'

}
}

0 comments on commit e22f688

Please sign in to comment.