2021-06-27 19:53:47 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021, microG Project Team
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
apply plugin: 'signing'
|
|
|
|
|
|
|
|
dependencies {
|
2021-07-03 08:15:40 +00:00
|
|
|
// TODO: Embedding the API causes random crashes as the Android AOT compiler will link the native implementation to
|
|
|
|
// out API classes even if embedded by a third-party app that comes with their own API classes.
|
|
|
|
// Need to find a better way to disable AOT for Cronet. Could be by packaging cronet as it's own apk that is
|
|
|
|
// embedded in the main APK but only loaded at runtime so that the AOT compiler has no way to become active.
|
|
|
|
// implementation("org.microg:cronet-api:$cronetVersion")
|
2022-01-26 05:26:56 +00:00
|
|
|
implementation("org.microg:cronet-common:91.0.4472.120.1")
|
|
|
|
implementation("org.microg:cronet-native:91.0.4472.120.1")
|
2021-06-27 19:53:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion androidCompileSdk
|
2022-01-26 05:26:56 +00:00
|
|
|
buildToolsVersion "30.0.3"
|
2021-06-27 19:53:47 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion androidMinSdk
|
|
|
|
targetSdkVersion androidTargetSdk
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
}
|
|
|
|
}
|