plugins { id 'com.android.application' id 'androidx.navigation.safeargs' } 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 : "" android { namespace "com.majinnaibu.monstercards" compileSdk 37 defaultConfig { applicationId "com.majinnaibu.monstercards" minSdkVersion 24 targetSdk 36 versionCode 1 versionName "1.0" buildConfigField "String", "APPCENTER_SECRET", "\"${appCenterSecret}\"" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { arguments += ["room.schemaLocation": "$projectDir/schemas".toString()] } } } 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' } } compileOptions { sourceCompatibility JavaVersion.VERSION_21 targetCompatibility JavaVersion.VERSION_21 } buildFeatures { viewBinding true buildConfig true } } java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } dependencies { // Included libs implementation fileTree(dir: "libs", include: ["*.jar"]) // Google implementation 'androidx.appcompat:appcompat:1.8.0' implementation 'com.google.android.material:material:1.14.0' implementation 'androidx.constraintlayout:constraintlayout:2.2.2' implementation "androidx.navigation:navigation-fragment:2.10.1" implementation "androidx.navigation:navigation-ui:2.10.1" implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.4.0' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.11.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.11.0' // Testing testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0' // Room DB implementation "io.reactivex.rxjava3:rxjava:3.1.12" implementation "io.reactivex.rxjava3:rxandroid:3.0.2" implementation "androidx.room:room-runtime:2.8.5" annotationProcessor "androidx.room:room-compiler:2.8.5" implementation "androidx.room:room-rxjava3:2.8.5" //testImplementation "androidx.room:room-testing:2.8.5" // AppCenter debugImplementation "com.microsoft.appcenter:appcenter-analytics:5.0.6" debugImplementation "com.microsoft.appcenter:appcenter-crashes:5.0.6" // Other 3rd Party implementation 'com.atlassian.commonmark:commonmark:0.17.0' implementation "com.google.code.gson:gson:2.14.0" }