Merge pull request #526 from theimpulson/android13-dependencyUpdates
Android13 QPR2 Dependency & Misc Updates
This commit is contained in:
commit
da5205c0e9
14 changed files with 129 additions and 110 deletions
22
.github/workflows/client.yml
vendored
22
.github/workflows/client.yml
vendored
|
@ -7,29 +7,23 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout the code
|
||||||
|
uses: actions/checkout@v3
|
||||||
- name: Gradle dependency cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
|
||||||
restore-keys: ${{ runner.os }}-gradle-
|
|
||||||
|
|
||||||
- name: Android build cache
|
- name: Android build cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.android/build-cache
|
~/.android/build-cache
|
||||||
key: ${{ runner.os }}-android
|
key: ${{ runner.os }}-android
|
||||||
restore-keys: ${{ runner.os }}-android
|
restore-keys: ${{ runner.os }}-android
|
||||||
|
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
distribution: 'corretto'
|
||||||
|
java-version: 17
|
||||||
|
cache: 'gradle'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck
|
run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id "com.android.application"
|
id 'com.android.application'
|
||||||
id "kotlin-android"
|
id 'org.jetbrains.kotlin.android'
|
||||||
id "org.jlleitschuh.gradle.ktlint" version "10.2.0"
|
id 'org.jlleitschuh.gradle.ktlint'
|
||||||
}
|
}
|
||||||
|
|
||||||
def gitDescribe = { ->
|
def gitDescribe = { ->
|
||||||
|
@ -14,12 +14,12 @@ def gitDescribe = { ->
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
namespace 'com.stevesoltys.seedvault'
|
||||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
compileSdk rootProject.ext.compileSdk
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 32 // leave at 32 for robolectric tests
|
minSdk 32 // leave at 32 for robolectric tests
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdk rootProject.ext.targetSdk
|
||||||
versionNameSuffix "-$gitDescribe"
|
versionNameSuffix "-$gitDescribe"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
||||||
|
@ -31,7 +31,7 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lint {
|
||||||
disable "DialogFragmentCallbacksDetector",
|
disable "DialogFragmentCallbacksDetector",
|
||||||
"InvalidFragmentVersionForActivityResult",
|
"InvalidFragmentVersionForActivityResult",
|
||||||
"CheckedExceptions"
|
"CheckedExceptions"
|
||||||
|
@ -43,7 +43,7 @@ android {
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
languageVersion = "1.6"
|
languageVersion = "1.7"
|
||||||
}
|
}
|
||||||
testOptions {
|
testOptions {
|
||||||
unitTests.all {
|
unitTests.all {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
package="com.stevesoltys.seedvault">
|
|
||||||
|
|
||||||
<application android:extractNativeLibs="true" />
|
<application android:extractNativeLibs="true" />
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
41
build.gradle
41
build.gradle
|
@ -2,40 +2,31 @@ buildscript {
|
||||||
// 1.3.61 Android 11
|
// 1.3.61 Android 11
|
||||||
// 1.4.30 Android 12
|
// 1.4.30 Android 12
|
||||||
// 1.6.10 Android 13
|
// 1.6.10 Android 13
|
||||||
|
// 1.7.20 Android 13 (QPR2)
|
||||||
// Check:
|
// Check:
|
||||||
// https://android.googlesource.com/platform/external/kotlinc/+/refs/tags/android-13.0.0_r3/build.txt
|
// https://android.googlesource.com/platform/external/kotlinc/+/refs/tags/android-13.0.0_r32/build.txt
|
||||||
ext.aosp_kotlin_version = '1.6.10' // 1.6.10-release-923 in AOSP
|
ext.aosp_kotlin_version = '1.7.20' // 1.7.20-release-201 in AOSP
|
||||||
ext.kotlin_version = '1.6.10'
|
ext.kotlin_version = '1.7.20'
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
plugins {
|
||||||
mavenCentral()
|
id 'com.android.application' version '8.1.0' apply false
|
||||||
google()
|
id 'com.android.library' version '8.1.0' apply false
|
||||||
}
|
id 'com.google.protobuf' version '0.9.4' apply false
|
||||||
dependencies {
|
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
|
||||||
//noinspection DifferentKotlinGradleVersion
|
id 'org.jetbrains.kotlin.kapt' version "$kotlin_version" apply false
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
id 'org.jetbrains.dokka' version "$kotlin_version" apply false
|
||||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.17"
|
id 'org.jlleitschuh.gradle.ktlint' version '11.5.0' apply false
|
||||||
classpath 'com.android.tools.build:gradle:7.2.2'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
buildToolsVersion = '33.0.0'
|
compileSdk = 33
|
||||||
compileSdkVersion = 33
|
minSdk = 32
|
||||||
minSdkVersion = 32
|
targetSdk = 33
|
||||||
targetSdkVersion = 33
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'gradle/dependencies.gradle'
|
apply from: 'gradle/dependencies.gradle'
|
||||||
|
|
||||||
allprojects {
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
google()
|
|
||||||
maven { url 'https://jitpack.io' }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
task clean(type: Delete) {
|
task clean(type: Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,17 +3,19 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
plugins {
|
||||||
apply plugin: 'kotlin-android'
|
id 'com.android.application'
|
||||||
|
id 'org.jetbrains.kotlin.android'
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
namespace 'org.calyxos.backup.contacts'
|
||||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
compileSdk rootProject.ext.compileSdk
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.calyxos.backup.contacts"
|
applicationId "org.calyxos.backup.contacts"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdk rootProject.ext.minSdk
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdk rootProject.ext.targetSdk
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
SPDX-FileCopyrightText: 2020 The Calyx Institute
|
SPDX-FileCopyrightText: 2020 The Calyx Institute
|
||||||
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0
|
||||||
-->
|
-->
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
package="org.calyxos.backup.contacts.test">
|
|
||||||
|
|
||||||
<application android:extractNativeLibs="true" />
|
<application android:extractNativeLibs="true" />
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,5 @@ org.gradle.configureondemand=true
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=false
|
android.enableJetifier=false
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
|
android.nonTransitiveRClass=false
|
||||||
|
android.enableR8.fullMode=false
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#3901
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#3901
|
||||||
ext.room_version = "2.4.0-alpha05"
|
ext.room_version = "2.4.0-alpha05" // 2.5.0-alpha01 in AOSP but needs testing
|
||||||
// https://android.googlesource.com/platform/external/protobuf/+/refs/tags/android-13.0.0_r3/java/pom.xml#7
|
// https://android.googlesource.com/platform/external/protobuf/+/refs/tags/android-13.0.0_r32/java/pom.xml#7
|
||||||
ext.protobuf_version = "3.9.1"
|
ext.protobuf_version = "3.9.1"
|
||||||
|
|
||||||
// test dependencies below - these do not care about AOSP and can be freely updated
|
// test dependencies below - these do not care about AOSP and can be freely updated
|
||||||
|
@ -39,58 +39,58 @@ ext.kotlin_libs = [
|
||||||
],
|
],
|
||||||
coroutines: [
|
coroutines: [
|
||||||
dependencies.create('org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm') {
|
dependencies.create('org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm') {
|
||||||
// https://android.googlesource.com/platform/external/kotlinx.coroutines/+/refs/tags/android-13.0.0_r3/CHANGES.md
|
// https://android.googlesource.com/platform/external/kotlinx.coroutines/+/refs/tags/android-13.0.0_r32/CHANGES.md
|
||||||
version { strictly '1.5.2' }
|
version { strictly '1.6.4' }
|
||||||
},
|
},
|
||||||
dependencies.create('org.jetbrains.kotlinx:kotlinx-coroutines-android') {
|
dependencies.create('org.jetbrains.kotlinx:kotlinx-coroutines-android') {
|
||||||
// https://android.googlesource.com/platform/external/kotlinx.coroutines/+/refs/tags/android-13.0.0_r3/CHANGES.md
|
// https://android.googlesource.com/platform/external/kotlinx.coroutines/+/refs/tags/android-13.0.0_r32/CHANGES.md
|
||||||
version { strictly '1.5.2' }
|
version { strictly '1.6.4' }
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
ext.std_libs = [
|
ext.std_libs = [
|
||||||
androidx_core: [
|
androidx_core: [
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#1761
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#2275
|
||||||
dependencies.create('androidx.core:core') {
|
dependencies.create('androidx.core:core') {
|
||||||
version { strictly '1.9.0-alpha03' }
|
version { strictly '1.9.0-alpha05' } // 1.9.0-alpha03 in AOSP but has SDK version issues
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#1727
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#2241
|
||||||
dependencies.create('androidx.core:core-ktx') {
|
dependencies.create('androidx.core:core-ktx') {
|
||||||
version { strictly '1.9.0-alpha03' }
|
version { strictly '1.9.0-alpha05' } // 1.9.0-alpha03 in AOSP but has SDK version issues
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#2159
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#2705
|
||||||
androidx_fragment: dependencies.create('androidx.fragment:fragment-ktx') {
|
androidx_fragment: dependencies.create('androidx.fragment:fragment-ktx') {
|
||||||
version { strictly '1.4.0-alpha09' }
|
version { strictly '1.5.0-alpha03' }
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#57
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#61
|
||||||
androidx_activity: dependencies.create('androidx.activity:activity-ktx') {
|
androidx_activity: dependencies.create('androidx.activity:activity-ktx') {
|
||||||
version { strictly '1.4.0-alpha02' }
|
version { strictly '1.5.0-alpha03' }
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#3597
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#4275
|
||||||
androidx_preference: dependencies.create('androidx.preference:preference') {
|
androidx_preference: dependencies.create('androidx.preference:preference') {
|
||||||
version { strictly '1.2.0-alpha01' }
|
version { strictly '1.2.0-alpha01' }
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#2754
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#3376
|
||||||
androidx_lifecycle_viewmodel_ktx: dependencies.create('androidx.lifecycle:lifecycle-viewmodel-ktx') {
|
androidx_lifecycle_viewmodel_ktx: dependencies.create('androidx.lifecycle:lifecycle-viewmodel-ktx') {
|
||||||
version { strictly '2.4.0-alpha03' } // 2.4.0-alpha04 in AOSP but was never released
|
version { strictly '2.5.0-alpha03' }
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#2550
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#3134
|
||||||
androidx_lifecycle_livedata_ktx: dependencies.create('androidx.lifecycle:lifecycle-livedata-ktx') {
|
androidx_lifecycle_livedata_ktx: dependencies.create('androidx.lifecycle:lifecycle-livedata-ktx') {
|
||||||
version { strictly '2.4.0-alpha03' } // 2.4.0-alpha04 in AOSP but was never released
|
version { strictly '2.5.0-alpha03' }
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/extras/constraint-layout-x/Android.bp#39
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/extras/constraint-layout-x/Android.bp#64
|
||||||
androidx_constraintlayout: dependencies.create('androidx.constraintlayout:constraintlayout') {
|
androidx_constraintlayout: dependencies.create('androidx.constraintlayout:constraintlayout') {
|
||||||
version { strictly '2.0.0-beta7' }
|
version { strictly '2.2.0-alpha05' }
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/androidx/Android.bp#1865
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/androidx/Android.bp#2411
|
||||||
androidx_documentfile: dependencies.create('androidx.documentfile:documentfile') {
|
androidx_documentfile: dependencies.create('androidx.documentfile:documentfile') {
|
||||||
version { strictly '1.1.0-alpha01' } // 1.1.0-alpha02 in AOSP but not released yet
|
version { strictly '1.1.0-alpha01' } // 1.1.0-alpha02 in AOSP but not released yet
|
||||||
},
|
},
|
||||||
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r3/current/extras/material-design-x/Android.bp#6
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-13.0.0_r32/current/extras/material-design-x/Android.bp#6
|
||||||
com_google_android_material: dependencies.create('com.google.android.material:material') {
|
com_google_android_material: dependencies.create('com.google.android.material:material') {
|
||||||
version { strictly '1.6.0-alpha03' } // 1.6.0-alpha0301 in AOSP
|
version { strictly '1.7.0-alpha03' }
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,7 +1,7 @@
|
||||||
#Fri Aug 19 10:56:09 IST 2022
|
#Fri Aug 19 10:56:09 IST 2022
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
distributionSha256Sum=b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302
|
distributionSha256Sum=03ec176d388f2aa99defcadc3ac6adf8dd2bce5145a129659537c0874dea5ad1
|
||||||
|
|
|
@ -1,4 +1,20 @@
|
||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rootProject.name = 'Seedvault'
|
||||||
include ':app'
|
include ':app'
|
||||||
include ':contactsbackup'
|
include ':contactsbackup'
|
||||||
include ':storage:lib'
|
include ':storage:lib'
|
||||||
include ':storage:demo'
|
include ':storage:demo'
|
||||||
|
|
|
@ -6,18 +6,18 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.android.application'
|
id 'com.android.application'
|
||||||
id 'com.google.protobuf'
|
id 'com.google.protobuf'
|
||||||
id 'kotlin-android'
|
id 'org.jetbrains.kotlin.android'
|
||||||
id 'kotlin-kapt'
|
id 'org.jetbrains.kotlin.kapt'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
namespace 'de.grobox.storagebackuptester'
|
||||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
compileSdk rootProject.ext.compileSdk
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "de.grobox.storagebackuptester"
|
applicationId "de.grobox.storagebackuptester"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdk rootProject.ext.minSdk
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdk rootProject.ext.targetSdk
|
||||||
versionCode 20
|
versionCode 20
|
||||||
versionName "0.9.7"
|
versionName "0.9.7"
|
||||||
|
|
||||||
|
@ -37,17 +37,24 @@ android {
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
||||||
}
|
}
|
||||||
lintOptions {
|
lint {
|
||||||
disable "DialogFragmentCallbacksDetector",
|
disable "DialogFragmentCallbacksDetector",
|
||||||
"InvalidFragmentVersionForActivityResult"
|
"InvalidFragmentVersionForActivityResult"
|
||||||
}
|
}
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
exclude 'META-INF/*.kotlin_module'
|
jniLibs {
|
||||||
exclude 'META-INF/androidx.*.version'
|
excludes += ['META-INF/services/kotlin*']
|
||||||
exclude 'META-INF/services/kotlin*'
|
}
|
||||||
exclude 'kotlin/internal/internal.kotlin_builtins'
|
resources {
|
||||||
|
excludes += [
|
||||||
|
'META-INF/*.kotlin_module',
|
||||||
|
'META-INF/androidx.*.version',
|
||||||
|
'META-INF/services/kotlin*',
|
||||||
|
'kotlin/internal/internal.kotlin_builtins'
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ android_library {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
kotlincflags: [
|
kotlincflags: [
|
||||||
"-Xopt-in=kotlin.RequiresOptIn",
|
"-opt-in=kotlin.RequiresOptIn",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,19 +6,19 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.android.library'
|
id 'com.android.library'
|
||||||
id 'com.google.protobuf'
|
id 'com.google.protobuf'
|
||||||
id 'kotlin-android'
|
id 'org.jetbrains.kotlin.android'
|
||||||
id 'kotlin-kapt'
|
id 'org.jetbrains.kotlin.kapt'
|
||||||
id "org.jlleitschuh.gradle.ktlint" version "10.2.0"
|
id 'org.jetbrains.dokka'
|
||||||
id 'org.jetbrains.dokka' version "$kotlin_version"
|
id 'org.jlleitschuh.gradle.ktlint'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
namespace 'org.calyxos.backup.storage'
|
||||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
compileSdk rootProject.ext.compileSdk
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdk rootProject.ext.minSdk
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdk rootProject.ext.targetSdk
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
testInstrumentationRunnerArguments disableAnalytics: 'true'
|
||||||
|
@ -38,13 +38,19 @@ android {
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
languageVersion = "1.6"
|
languageVersion = "1.7"
|
||||||
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
|
freeCompilerArgs += '-opt-in=kotlin.RequiresOptIn'
|
||||||
freeCompilerArgs += '-Xexplicit-api=strict'
|
freeCompilerArgs += '-Xexplicit-api=strict'
|
||||||
}
|
}
|
||||||
protobuf {
|
protobuf {
|
||||||
protoc {
|
protoc {
|
||||||
artifact = "com.google.protobuf:protoc:$protobuf_version"
|
if ("aarch64" == System.getProperty("os.arch")) {
|
||||||
|
// mac m1
|
||||||
|
artifact = "com.google.protobuf:protoc:$protobuf_version:osx-x86_64"
|
||||||
|
} else {
|
||||||
|
// other
|
||||||
|
artifact = "com.google.protobuf:protoc:$protobuf_version"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
generateProtoTasks {
|
generateProtoTasks {
|
||||||
all().each { task ->
|
all().each { task ->
|
||||||
|
@ -56,7 +62,7 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lintOptions {
|
lint {
|
||||||
disable "DialogFragmentCallbacksDetector",
|
disable "DialogFragmentCallbacksDetector",
|
||||||
"InvalidFragmentVersionForActivityResult",
|
"InvalidFragmentVersionForActivityResult",
|
||||||
"CheckedExceptions"
|
"CheckedExceptions"
|
||||||
|
|
3
storage/lib/proguard-rules.pro
vendored
3
storage/lib/proguard-rules.pro
vendored
|
@ -24,3 +24,6 @@
|
||||||
#-renamesourcefileattribute SourceFile
|
#-renamesourcefileattribute SourceFile
|
||||||
|
|
||||||
-keep class org.calyxos.backup.storage.** {*;}
|
-keep class org.calyxos.backup.storage.** {*;}
|
||||||
|
|
||||||
|
# Ignore StringConcatFactory
|
||||||
|
-dontwarn java.lang.invoke.StringConcatFactory
|
||||||
|
|
Loading…
Reference in a new issue