Skip to content

Commit 6bf7384

Browse files
committed
update graddle
1 parent 8f17198 commit 6bf7384

7 files changed

Lines changed: 86 additions & 101 deletions

File tree

android/app/build.gradle

Lines changed: 0 additions & 69 deletions
This file was deleted.

android/app/build.gradle.kts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
}

android/app/src/main/java/com/httpsms/MainActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import com.google.android.material.card.MaterialCardView
2828
import com.google.android.material.progressindicator.LinearProgressIndicator
2929
import com.httpsms.services.StickyNotificationService
3030
import com.httpsms.worker.HeartbeatWorker
31-
import okhttp3.internal.format
3231
import timber.log.Timber
3332
import java.time.Instant
3433
import java.time.ZoneId
@@ -79,7 +78,7 @@ class MainActivity : AppCompatActivity() {
7978

8079
private fun setVersion() {
8180
val appVersionView = findViewById<TextView>(R.id.mainAppVersion)
82-
appVersionView.text = format(getString(R.string.app_version), BuildConfig.VERSION_NAME)
81+
appVersionView.text = getString(R.string.app_version, BuildConfig.VERSION_NAME)
8382
}
8483

8584
private fun setCardContent(context: Context) {

android/build.gradle

Lines changed: 0 additions & 27 deletions
This file was deleted.

android/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
google()
5+
mavenCentral()
6+
}
7+
dependencies {
8+
classpath("com.google.gms:google-services:4.4.2")
9+
}
10+
}
11+
12+
plugins {
13+
id("com.android.application") version "9.1.0" apply false
14+
id("com.android.library") version "9.1.0" apply false
15+
}
16+
17+
tasks.register<Delete>("clean") {
18+
delete(rootProject.layout.buildDirectory)
19+
}

android/gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,3 @@ android.uniquePackageNames=false
3030
android.dependency.useConstraints=true
3131
android.r8.strictFullModeForKeepRules=false
3232
android.r8.optimizedResourceShrinking=false
33-
android.builtInKotlin=false
34-
android.newDsl=false
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ dependencyResolutionManagement {
1313
}
1414
}
1515
rootProject.name = "httpSMS"
16-
include ':app'
16+
include(":app")

0 commit comments

Comments
 (0)