Skip to content

Commit

Permalink
Release/1.1.10 (#178)
Browse files Browse the repository at this point in the history
* fix: ๋ฉ”๋‰ด ๋ฆฌ์ŠคํŠธ๊ฐ€ ๋น„์—ˆ์œผ๋ฉด ์‹๋‹น ์•„์ดํ…œ ์ž์ฒด๋ฅผ ๋นผ๋ฒ„๋ฆผ

* version: 1.1.9(11)

* setting: timber

* fix: ์•ฑ ์—…๋ฐ์ดํŠธ ๋กœ์ง์„ ๋ณ€๊ฒฝ

๋ฒ„์ „ ๋„ค์ž„ -> ๋ฒ„์ „ ์ฝ”๋“œ

* Revert "version: 1.1.9(11)"

This reverts commit c393543.

* version: 1.1.9

* AGP 8.2.2

* delete: ๋ ˆ๊ฑฐ์‹œ ์ œ๊ฑฐ

* delete: ๋ ˆ๊ฑฐ์‹œ ์ œ๊ฑฐ ์ค‘

* Update android.yml

* version: 1.1.10

* chore: ์ฝ”๋“œ ํฌ๋งคํ„ฐ

* Update release_tag.yml

* Update release_tag.yml
  • Loading branch information
HI-JIN2 authored Apr 2, 2024
1 parent d9d89c8 commit f3dd9e0
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:

- name: Access Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
DEV_BASE_URL: ${{ secrets.DEV_BASE_URL }}
PROD_BASE_URL: ${{ secrets.PROD_BASE_URL }}
KAKAO_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
run: |
echo BASE_URL=\"$BASE_URL\" >> local.properties
echo DEV_BASE_URL=\"$DEV_BASE_URL\" >> local.properties
echo PROD_BASE_URL=\"$PROD_BASE_URL\" >> local.properties
echo KAKAO_NATIVE_APP_KEY=$KAKAO_NATIVE_APP_KEY >> local.properties
- name: Generate google-services.json
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Release Tag
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]


jobs:
Expand Down
17 changes: 9 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ android {
minSdk 23
compileSdkVersion 34
targetSdk 34
versionCode 11
versionName "1.1.9"

versionCode 12
versionName "1.1.10"


buildConfigField "String", "BASE_URL", properties["BASE_URL"]

buildConfigField("String", "KAKAO_NATIVE_APP_KEY", "\"${properties.get('KAKAO_NATIVE_APP_KEY')}\"")
manifestPlaceholders = [KAKAO_NATIVE_APP_KEY: properties.get('KAKAO_NATIVE_APP_KEY')]
Expand All @@ -35,12 +35,18 @@ android {
}

buildFeatures {
buildConfig = true
viewBinding = true
dataBinding = true
}

buildTypes {
debug {
buildConfigField("String", "BASE_URL", properties["DEV_BASE_URL"])
}
release {
buildConfigField("String", "BASE_URL", properties["PROD_BASE_URL"])

minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
Expand Down Expand Up @@ -110,11 +116,6 @@ dependencies {
kapt "com.google.dagger:hilt-android-compiler:2.50"
annotationProcessor 'com.google.dagger:hilt-compiler:2.50'

// implementation "androidx.hilt:hilt-common:1.2.0"
// implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03"
// kapt "androidx.hilt:hilt-compiler:1.2.0"


// viewmodel๊ณผ livedata
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.7.0"
Expand Down
20 changes: 20 additions & 0 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.eatssu.android",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 11,
"versionName": "1.1.9",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class VersionViewModel(private val repository: FirebaseRemoteConfigRepository) :
val versionCode = checkVersionCode() //์–˜๊ฐ€ ํŒŒ์ด์–ด๋ฒ ์ด์Šค์— ์žˆ๋Š” ์ตœ์‹  ๋ฒ„์ „
val thisCheckVersionCode = VERSION_CODE

Timber.d("์•ฑ์˜ versionCode๋Š” " + thisCheckVersionCode + " ๋ฐฐํฌ๋œ ์ตœ์‹  ๋ฒ„์ „์€ " + versionCode)
Timber.d("์•ฑ์˜ versionCode๋Š” $thisCheckVersionCode ๋ฐฐํฌ๋œ ์ตœ์‹  ๋ฒ„์ „์€ $versionCode")

if (thisCheckVersionCode < versionCode) { //๋ฐฐํฌ๋œ ๋ฒ„์ „์ด ํฌ๋ฉด ๊ฐ•์ œ ์—…๋ฐ์ดํŠธ
Timber.d("๊ฐ•์ œ์—…๋ฐ์ดํŠธ")
Expand All @@ -30,8 +30,9 @@ class VersionViewModel(private val repository: FirebaseRemoteConfigRepository) :
return false
}

fun checkAppVersion(): String {
return repository.getAppVersion()

fun checkVersionCode(): Long {
return repository.getVersionCode()
}

fun checkVersionCode(): Long {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'com.android.application' version '8.2.2' apply false
id 'com.android.library' version '8.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
id 'com.google.gms.google-services' version "4.3.15" apply false
id 'com.google.firebase.crashlytics' version "2.9.9" apply false
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Feb 17 11:26:14 KST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit f3dd9e0

Please sign in to comment.