Skip to content

Commit

Permalink
🛠️ CI/CD | signingConfig Setting
Browse files Browse the repository at this point in the history
  • Loading branch information
moondev03 committed Sep 4, 2024
1 parent 846c1dc commit 827a4da
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions ThinkerBell/presentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,35 @@ android {
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

versionName = "0.0.1"
versionCode = if (project.hasProperty("versionCode")) {
project.property("versionCode").toString().toInt()
} else {
1
}
}

applicationVariants.all {
outputs.all {
val outputImpl = this as com.android.build.gradle.internal.api.ApkVariantOutputImpl
val newFileName = "3days-${name}.apk"
outputImpl.outputFileName = newFileName
}
}

signingConfigs {
create("release") {
keyAlias = properties["SIGNED_KEY_ALIAS"] as String?
keyPassword = properties["SIGNED_KEY_PASSWORD"] as String?
storeFile = properties["SIGNED_STORE_FILE"]?.let { file(it) }
storePassword = properties["SIGNED_STORE_PASSWORD"] as String?
}
}

buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
android:layout_width="124dp"
android:layout_height="42dp"

app:layout_constraintTop_toBottomOf="@id/tv_dialog_contact_title"
app:layout_constraintTop_toBottomOf="@id/tv_dialog_title"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintVertical_bias="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/btn_dialog_contact_call"
app:layout_constraintEnd_toStartOf="@id/btn_dialog_delete"
app:layout_constraintHorizontal_chainStyle="packed"
android:layout_marginEnd="8dp"

Expand All @@ -50,10 +50,10 @@
android:layout_width="124dp"
android:layout_height="42dp"

app:layout_constraintTop_toBottomOf="@id/tv_dialog_contact_title"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="@id/btn_dialog_cancel"
app:layout_constraintBottom_toBottomOf="@id/btn_dialog_cancel"
app:layout_constraintVertical_bias="1"
app:layout_constraintStart_toEndOf="@id/btn_dialog_contact_copy"
app:layout_constraintStart_toEndOf="@id/btn_dialog_cancel"
app:layout_constraintEnd_toEndOf="parent"

android:background="@drawable/shape_dialog_contact_btn_bg"
Expand Down

0 comments on commit 827a4da

Please sign in to comment.