1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
plugins {
id "com.android.application"
id "com.github.triplet.play" version "3.12.0"
}
description = """
"${project.name}" implements the accessibility service for "${rootProject.name}" on Android.
"""
apply from: "brltty-config.gradle"
apply from: "brltty-assets.gradle"
dependencies {
implementation project(":core")
implementation "androidx.core:core:1.5.0"
}
android {
namespace "org.a11y.brltty.android"
compileSdkVersion "android-34"
buildToolsVersion "29.0.3"
//ndkVersion "21.4.7075529" // r21e - LTS
//ndkVersion "22.1.7171670" // r22b - stable
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
warning "MissingTranslation"
error "Untranslatable"
}
buildFeatures {
buildConfig = true
}
defaultConfig {
targetSdkVersion 34
minSdkVersion 16
versionName brltty.config.versionName
versionCode brltty.config.versionCode as int
ndk {
splits {
abi {
enable true
universalApk true
reset()
brltty.native.abiList.each { abi ->
include abi
}
}
}
}
}
signingConfigs {
release {
def signingProperties = brltty.loadProperties("credentials/sign-gradle.properties")
storeFile signingProperties.storeFile
storePassword signingProperties.storePassword
keyAlias signingProperties.keyAlias
keyPassword signingProperties.keyPassword
}
}
buildTypes {
debug {
ndk {
abiFilters "armeabi-v7a"
}
}
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFile getDefaultProguardFile("proguard-android.txt")
ndk {
debugSymbolLevel "FULL" // FULL, SYMBOL_TABLE
}
}
}
play {
track = "production" // internal, alpha, beta, production
defaultToAppBundles = true
serviceAccountCredentials = rootProject.file("credentials/publish-play.json")
}
}
|