|
| 1 | +plugins { |
| 2 | + id("com.android.application") |
| 3 | + id("com.google.gms.google-services") |
| 4 | + id("io.sentry.android.gradle") version "6.2.0" |
| 5 | +} |
| 6 | + |
| 7 | +val gitHash = providers.exec { |
| 8 | + commandLine("git", "rev-parse", "--short", "HEAD") |
| 9 | +}.standardOutput.asText.map { it.trim() } |
| 10 | + |
| 11 | +android { |
| 12 | + compileSdk = 36 |
| 13 | + |
| 14 | + defaultConfig { |
| 15 | + applicationId = "com.httpsms" |
| 16 | + minSdk = 28 |
| 17 | + targetSdk = 35 |
| 18 | + versionCode = 1 |
| 19 | + versionName = gitHash.getOrElse("unknown") |
| 20 | + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 21 | + } |
| 22 | + |
| 23 | + buildTypes { |
| 24 | + getByName("debug") { |
| 25 | + manifestPlaceholders["sentryEnvironment"] = "development" |
| 26 | + } |
| 27 | + getByName("release") { |
| 28 | + manifestPlaceholders["sentryEnvironment"] = "production" |
| 29 | + isMinifyEnabled = false |
| 30 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") |
| 31 | + } |
| 32 | + } |
| 33 | + compileOptions { |
| 34 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 35 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 36 | + } |
| 37 | + namespace = "com.httpsms" |
| 38 | + |
| 39 | + buildFeatures { |
| 40 | + buildConfig = true |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +dependencies { |
| 45 | + implementation(platform("com.google.firebase:firebase-bom:34.11.0")) |
| 46 | + implementation("com.journeyapps:zxing-android-embedded:4.3.0") |
| 47 | + implementation("com.google.firebase:firebase-analytics") |
| 48 | + implementation("com.google.firebase:firebase-messaging") |
| 49 | + implementation("com.squareup.okhttp3:okhttp:5.3.2") |
| 50 | + implementation("com.jakewharton.timber:timber:5.0.1") |
| 51 | + implementation("androidx.preference:preference-ktx:1.2.1") |
| 52 | + implementation("androidx.work:work-runtime-ktx:2.11.1") |
| 53 | + implementation("androidx.core:core-ktx:1.18.0") |
| 54 | + implementation("androidx.cardview:cardview:1.0.0") |
| 55 | + implementation("com.beust:klaxon:5.6") |
| 56 | + implementation("androidx.appcompat:appcompat:1.7.1") |
| 57 | + implementation("org.apache.commons:commons-text:1.15.0") |
| 58 | + implementation("com.google.android.material:material:1.13.0") |
| 59 | + implementation("androidx.constraintlayout:constraintlayout:2.2.1") |
| 60 | + implementation("com.googlecode.libphonenumber:libphonenumber:9.0.26") |
| 61 | + implementation("com.klinkerapps:android-smsmms:5.2.6") |
| 62 | + testImplementation("junit:junit:4.13.2") |
| 63 | + androidTestImplementation("androidx.test.ext:junit:1.3.0") |
| 64 | + androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0") |
| 65 | +} |
0 commit comments