diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 232f124..c621ff3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,12 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v2 - + + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' # This is the Ubuntu Default + java-version: '17' + - name: Build library run: 'bash ./gradlew clean :library:assembleRelease' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7677452..d37cd80 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,11 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' # This is the Ubuntu Default + java-version: '17' + - name: Run checks if: success() || failure() run: ./gradlew check diff --git a/app/build.gradle b/app/build.gradle index 5de4eac..e7f2ce4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,16 +1,15 @@ plugins { - id 'com.android.application' - id 'kotlin-android' + alias libs.plugins.com.android.application + alias libs.plugins.kotlin.android } android { - compileSdkVersion 33 - //noinspection GradleDependency + compileSdk 34 defaultConfig { applicationId "com.telefonica.androidlogger.app" minSdkVersion 21 - targetSdkVersion 33 + targetSdkVersion 34 versionCode 1 versionName "1.0.0" @@ -23,16 +22,16 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '11' + jvmTarget = '17' } namespace 'com.telefonica.androidlogger.app' } dependencies { - implementation 'androidx.appcompat:appcompat:1.2.0' + implementation libs.androidx.appcompat implementation project(':library') } diff --git a/app/src/main/java/com/telefonica/androidlogger/app/MainActivity.kt b/app/src/main/java/com/telefonica/androidlogger/app/MainActivity.kt index 63aaa4f..5b91732 100644 --- a/app/src/main/java/com/telefonica/androidlogger/app/MainActivity.kt +++ b/app/src/main/java/com/telefonica/androidlogger/app/MainActivity.kt @@ -20,7 +20,7 @@ class MainActivity : AppCompatActivity() { private fun setupViews() { findViewById