63 lines
1.7 KiB
Groovy
63 lines
1.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.2.0'
|
|
}
|
|
}
|
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
def keystoreProperties = new Properties()
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 32
|
|
|
|
defaultConfig {
|
|
minSdkVersion 32
|
|
targetSdkVersion 32
|
|
}
|
|
|
|
|
|
sourceSets {
|
|
main {
|
|
res.srcDirs = ['res']
|
|
java.srcDirs = ['src']
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
signingConfigs {
|
|
debug {
|
|
keyAlias keystoreProperties['keyAlias']
|
|
keyPassword keystoreProperties['keyPassword']
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
lint {
|
|
ignore 'ProtectedPermissions', 'ExtraTranslation', 'ImpliedQuantity', 'MissingQuantity', 'MissingTranslation'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'androidx.preference:preference:1.1.0'
|
|
|
|
implementation project(path: ':SettingsLib')
|
|
implementation files('libs/vendor.mediatek.hardware.aguiledbelt-V1.0-java.jar')
|
|
|
|
// This is only here to allow vendor.mediatek.hardware.aguiledbelt-V1.0-java to compile properly
|
|
// It does not reveal all hidden API interfaces in Android Studio; unfortunately
|
|
compileOnly files('libs/framework.jar')
|
|
}
|