Skip to content

Commit

Permalink
feat: update compileOptions to java 11 and add test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
iamageo committed Feb 11, 2024
1 parent f731c0c commit 8c1cfb9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
20 changes: 17 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}

viewBinding {
Expand All @@ -46,5 +46,19 @@ dependencies {
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
debugImplementation "androidx.test:core:1.5.0"

// Required -- JUnit 4 framework
testImplementation "junit:junit:4.13.2"
// Optional -- Robolectric environment
testImplementation "androidx.test:core:1.5.0"
// Optional -- Mockito framework
testImplementation "org.mockito:mockito-core:5.1.1"
// Optional -- Mockk framework
testImplementation "io.mockk:mockk:1.10.5"

implementation project(':library')
}
24 changes: 19 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.github.iamageo'
version = '1.0.4'
version = '1.0.5'

android {
namespace 'com.iamageo.library'
Expand All @@ -28,11 +28,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand All @@ -41,6 +41,20 @@ dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'

androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
debugImplementation "androidx.test:core:1.5.0"

// Required -- JUnit 4 framework
testImplementation "junit:junit:4.13.2"
// Optional -- Robolectric environment
testImplementation "androidx.test:core:1.5.0"
// Optional -- Mockito framework
testImplementation "org.mockito:mockito-core:5.1.1"
// Optional -- Mockk framework
testImplementation "io.mockk:mockk:1.10.5"
}

afterEvaluate {
Expand All @@ -50,7 +64,7 @@ afterEvaluate {
from components.release
groupId = 'com.github.iamageo'
artifactId = 'another_read_more'
version = '1.0.4'
version = '1.0.5'
}
}
}
Expand Down

0 comments on commit 8c1cfb9

Please sign in to comment.