Skip to content

Commit

Permalink
release-1.0.0 chore: 실배포 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Heonbyeong committed Feb 9, 2024
1 parent a3e6b4a commit 669b3e9
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.iml
.gradle
/local.properties
/keystore.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
Expand All @@ -13,3 +14,4 @@
.externalNativeBuild
.cxx
local.properties
keystore.properties
32 changes: 28 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import java.io.FileInputStream
import java.util.Properties

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
Expand All @@ -11,11 +13,16 @@ plugins {

}

fun getApiKey(propertyKey : String): String {
return gradleLocalProperties(rootDir).getProperty(propertyKey)
}

android {
signingConfigs {
create("release") {
storeFile =
file(getKeyStore("storeFile"))
storePassword = getKeyStore("storePassword")
keyAlias = getKeyStore("keyAlias")
keyPassword = getKeyStore("keyPassword")
}
}
namespace = "com.moneymong.moneymong"
compileSdk = 34

Expand Down Expand Up @@ -43,6 +50,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("release")
}
}
packaging {
Expand Down Expand Up @@ -84,4 +92,20 @@ dependencies {
testImplementation(libs.junit4)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.test.espresso.core)
}

fun keystoreProperties(projectRootDir : File) : Properties {
val keystorePropertiesFile = rootProject.file("keystore.properties")
val keystoreProperties = Properties()
keystoreProperties.load(FileInputStream(keystorePropertiesFile))

return keystoreProperties
}

fun getApiKey(propertyKey : String): String {
return gradleLocalProperties(rootDir).getProperty(propertyKey)
}

fun getKeyStore(keystoreKey : String): String {
return keystoreProperties(rootDir).getProperty(keystoreKey)
}
18 changes: 17 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,20 @@
# https://github.com/square/okhttp/pull/6792
-dontwarn org.bouncycastle.jsse.**
-dontwarn org.conscrypt.*
-dontwarn org.openjsse.**
-dontwarn org.openjsse.**

# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

# Kotlin Result Wrapper 예외
-keep class kotlin.Result { *; }

# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>

# With R8 full mode generic signatures are stripped for classes that are not kept.
-keep,allowobfuscation,allowshrinking class retrofit2.Response
48 changes: 48 additions & 0 deletions app/src/live/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"project_info": {
"project_number": "1091533625653",
"project_id": "moneymong-9e794",
"storage_bucket": "moneymong-9e794.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1091533625653:android:f8c3edecf6f6108fad547c",
"android_client_info": {
"package_name": "com.moneymong.moneymong.live"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAb9dOMs-B-u9YynEWdtV9nrq_VbMpAXtg"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:1091533625653:android:435637da7f3d4352ad547c",
"android_client_info": {
"package_name": "com.moneymong.moneymong.tb"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAb9dOMs-B-u9YynEWdtV9nrq_VbMpAXtg"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
File renamed without changes.
9 changes: 9 additions & 0 deletions core/network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ android {
buildConfigField("String", "MONEYMONG_BASE_URL", "\"https://dev.moneymong.site/\"")
}

buildTypes {
debug {
buildConfigField("String", "MONEYMONG_BASE_URL", "\"https://dev.moneymong.site/\"")
}
release {
buildConfigField("String", "MONEYMONG_BASE_URL", "\"https://moneymong.site/\"")
}
}

buildFeatures {
buildConfig = true
}
Expand Down
Binary file removed keystore/moneymong-keystore
Binary file not shown.
Binary file added keystore/moneymong-keystore2
Binary file not shown.

0 comments on commit 669b3e9

Please sign in to comment.