64 lines
2.5 KiB
Groovy
64 lines
2.5 KiB
Groovy
Properties properties = new Properties()
|
|
def propertiesFile = project.rootProject.file('local.properties')
|
|
if (propertiesFile.exists()) {
|
|
properties.load(propertiesFile.newDataInputStream())
|
|
}
|
|
def appCenterLocalSecret = properties.getProperty('appCenter.localSecret')
|
|
def appCenterEnvSecret = System.getenv('APPCENTER_SECRET')
|
|
def appCenterSecret = appCenterLocalSecret != null ? appCenterLocalSecret : appCenterEnvSecret != null ? appCenterEnvSecret : ""
|
|
def appCenterSdkVersion = '3.3.0'
|
|
def nav_version = "2.3.0"
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: "androidx.navigation.safeargs"
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion '30.0.2'
|
|
|
|
defaultConfig {
|
|
applicationId "com.majinnaibu.monstercards"
|
|
minSdkVersion 22
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
buildConfigField "String", "APPCENTER_SECRET", "\"${appCenterSecret}\""
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// Enables code shrinking, obfuscation, and optimization for only
|
|
// your project's release build type.
|
|
minifyEnabled true
|
|
|
|
// Enables resource shrinking, which is performed by the
|
|
// Android Gradle plugin.
|
|
shrinkResources true
|
|
|
|
// Includes the default ProGuard rules files that are packaged with
|
|
// the Android Gradle plugin. To learn more, go to the section about
|
|
// R8 configuration files.
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
|
|
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
|
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'com.google.android.material:material:1.2.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
|
implementation "androidx.navigation:navigation-fragment:$nav_version"
|
|
implementation "androidx.navigation:navigation-ui:$nav_version"
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
implementation 'com.atlassian.commonmark:commonmark:0.15.2'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
} |