Skip to content

Commit be384ce

Browse files
authored
Merge pull request #201 from Team-Wable/develop
v.1.5.0
2 parents e8d1897 + 32dbcde commit be384ce

File tree

821 files changed

+33103
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

821 files changed

+33103
-2
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
max_line_length = off
5+
insert_final_newline = true
6+
7+
[*.{kt,kts}]
8+
ktlint_code_style = intelli_idea
9+
ktlint_standard_class-signature = disabled
10+
ktlint_standard_parameter-list-wrapping = disabled
11+
ktlint_standard_function-signature = disabled
12+
ktlint_standard_function-expression-body = disabled
13+
ktlint_standard_function-literal = disabled
14+
ktlint_standard_multiline-if-else = disabled
15+
ktlint_standard_if-else-wrapping = disabled
16+
ktlint_standard_argument-list-wrapping = disabled
17+
ktlint_standard_binary-expression-wrapping = disabled
18+
ktlint_standard_max-line-length = disabled
19+
ktlint_standard_function-naming = disabled
20+
ktlint_standard_chain-method-continuation = disabled
21+
ktlint_standard_multiline-expression-wrapping = disabled
22+
ktlint_standard_annotation = disabled
23+
ktlint_function_naming_ignore_when_annotated_with = Composable

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Team-Wable/wable-android.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Issue Template
3+
about: "기능, UI, 문서 개선을 위한 이슈 템플릿"
4+
title: "[FEAT] : "
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## 📌𝗧𝗮𝘀𝗸
11+
- [ ]
12+
- [ ]
13+
14+
## 💡𝗥𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗲

.github/auto_assign.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
addReviewers: false
2+
addAssignees: author

.github/pull_request_template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## ✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁
2+
- merge할 브랜치의 위치를 확인해 주세요(main❌/develop⭕)
3+
- 리뷰가 필요한 경우 리뷰어를 지정해 주세요
4+
- P1 단계의 리뷰는 필수로 반영합니다.
5+
- Approve된 PR은 assigner가 머지하고, 수정 요청이 온 경우 수정 후 다시 push를 합니다.
6+
7+
## 📌 𝗜𝘀𝘀𝘂𝗲𝘀
8+
- closed #이슈번호
9+
10+
## 📎𝗪𝗼𝗿𝗸 𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻
11+
-
12+
13+
## 📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁
14+
15+
16+
## 💬 𝗧𝗼 𝗥𝗲𝘃𝗶𝗲𝘄𝗲𝗿𝘀

.github/renovate.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"packageRules": [
3+
{
4+
"matchUpdateTypes": [
5+
"minor",
6+
"patch"
7+
],
8+
"automerge": true,
9+
"prConcurrentLimit": 2,
10+
"ignoreTests": true
11+
}
12+
]
13+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Wable PR Builder
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
working-directory: .
11+
12+
jobs:
13+
build:
14+
name: PR Checker
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: set up JDK 17
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: "zulu"
25+
java-version: 17
26+
27+
- name: Setup Android SDK
28+
uses: android-actions/setup-android@v3
29+
30+
- name: Grant execute permission for gradlew
31+
run: chmod +x gradlew
32+
33+
- name: Add Network Base Url
34+
env:
35+
WABLE_DEV_BASE_URL: ${{ secrets.WABLE_DEV_BASE_URL }}
36+
WABLE_REL_BASE_URL: ${{ secrets.WABLE_REL_BASE_URL }}
37+
run: |
38+
echo wable.dev.base.url=$WABLE_DEV_BASE_URL >> ./local.properties
39+
echo wable.rel.base.url=$WABLE_REL_BASE_URL >> ./local.properties
40+
41+
- name: Access Google Services JSON (Debug)
42+
env:
43+
GOOGLE_SERVICES_JSON_DEV: ${{ secrets.GOOGLE_SERVICES_JSON_DEV }}
44+
run: echo $GOOGLE_SERVICES_JSON_DEV | base64 -di > ./app/src/debug/google-services.json
45+
46+
- name: Access Google Services JSON (Release)
47+
env:
48+
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
49+
run: echo "$GOOGLE_SERVICES_JSON" | base64 -d > ./app/src/release/google-services.json
50+
51+
- name: Setup Google Services for benchmark
52+
run: |
53+
mkdir -p ./app/src/benchmark
54+
cp ./app/src/release/google-services.json ./app/src/benchmark/google-services.json
55+
56+
- name: Verify google-services.json files
57+
run: |
58+
ls -l ./app/src/debug/google-services.json
59+
ls -l ./app/src/release/google-services.json
60+
61+
- name: Access Keystore
62+
env:
63+
DEBUG_KEY_STORE: ${{ secrets.DEBUG_KEY_STORE }}
64+
RELEASE_JKS: ${{ secrets.RELEASE_JKS }}
65+
RELEASE_KEY_STORE_PROPERTIES: ${{ secrets.RELEASE_KEY_STORE_PROPERTIES }}
66+
run: |
67+
echo $RELEASE_JKS | base64 -di > ./app/keystore/release.jks
68+
echo $RELEASE_KEY_STORE_PROPERTIES | base64 -di > ./keystore.properties
69+
echo $DEBUG_KEY_STORE | base64 -di > ./app/keystore/debug.keystore
70+
71+
- name: Cache Gradle packages
72+
uses: actions/cache@v4
73+
with:
74+
path: |
75+
~/.gradle/caches
76+
~/.gradle/wrapper
77+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
78+
restore-keys: |
79+
${{ runner.os }}-gradle-
80+
81+
- name: Build with Gradle
82+
run: ./gradlew build -PcompileSdkVersion=36 --stacktrace --parallel
83+
84+
- name: On Success, Notify in Slack
85+
if: ${{ success() }}
86+
uses: rtCamp/action-slack-notify@v2
87+
env:
88+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
89+
SLACK_TITLE: '✅ PR check Success ✅'
90+
SLACK_COLOR: '#36a64f'
91+
MSG_MINIMAL: true
92+
SLACK_USERNAME: Wable Android
93+
SLACK_MESSAGE: '🎉💟 PR 완료 💟🎉'
94+
95+
- name: On Failed, Notify in Slack
96+
if: ${{ failure() }}
97+
uses: rtCamp/action-slack-notify@v2
98+
env:
99+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
100+
SLACK_TITLE: '🚫 PR check Failed 🚫'
101+
SLACK_COLOR: '#FF0000'
102+
MSG_MINIMAL: true
103+
SLACK_USERNAME: Wable Android
104+
SLACK_MESSAGE: '️🚫⚠️ PR 에러 ️⚠️🚫'
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
name: Wable Release Note
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
working-directory: .
11+
12+
jobs:
13+
build:
14+
name: Generate Release APK, Note
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: set up JDK 17
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: "zulu"
25+
java-version: 17
26+
27+
- name: Setup Android SDK
28+
uses: android-actions/setup-android@v3
29+
30+
- name: Add Network Base Url
31+
env:
32+
WABLE_DEV_BASE_URL: ${{ secrets.WABLE_DEV_BASE_URL }}
33+
WABLE_REL_BASE_URL: ${{ secrets.WABLE_REL_BASE_URL }}
34+
run: |
35+
echo wable.dev.base.url=$WABLE_DEV_BASE_URL >> ./local.properties
36+
echo wable.rel.base.url=$WABLE_REL_BASE_URL >> ./local.properties
37+
38+
- name: Access Google Services JSON (Debug)
39+
env:
40+
GOOGLE_SERVICES_JSON_DEV: ${{ secrets.GOOGLE_SERVICES_JSON_DEV }}
41+
run: echo $GOOGLE_SERVICES_JSON_DEV | base64 -di > ./app/src/debug/google-services.json
42+
43+
- name: Access Google Services JSON (Release)
44+
env:
45+
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
46+
run: echo $GOOGLE_SERVICES_JSON | base64 -di > ./app/src/release/google-services.json
47+
48+
- name: Verify google-services.json files
49+
run: |
50+
ls -l ./app/src/debug/google-services.json
51+
ls -l ./app/src/release/google-services.json
52+
53+
- name: Access Keystore
54+
env:
55+
DEBUG_KEY_STORE: ${{ secrets.DEBUG_KEY_STORE }}
56+
RELEASE_JKS: ${{ secrets.RELEASE_JKS }}
57+
RELEASE_KEY_STORE_PROPERTIES: ${{ secrets.RELEASE_KEY_STORE_PROPERTIES }}
58+
run: |
59+
echo $RELEASE_JKS | base64 -di > ./app/keystore/release.jks
60+
echo $RELEASE_KEY_STORE_PROPERTIES | base64 -di > ./keystore.properties
61+
echo $DEBUG_KEY_STORE | base64 -di > ./app/keystore/debug.keystore
62+
63+
- name: Cache Gradle packages
64+
uses: actions/cache@v4
65+
with:
66+
path: |
67+
~/.gradle/caches
68+
~/.gradle/wrapper
69+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
70+
restore-keys: |
71+
${{ runner.os }}-gradle-
72+
73+
- name: Grant execute permission for gradlew
74+
run: chmod +x gradlew
75+
76+
- name: Extract Version Name
77+
run: |
78+
VERSION=$(grep -oP 'appVersion\s*=\s*"\K[0-9]+\.[0-9]+\.[0-9]+' gradle/libs.versions.toml)
79+
echo "##[set-output name=version;]v$VERSION"
80+
id: extract_version
81+
82+
- name: Build release APK
83+
run: ./gradlew assembleRelease --stacktrace
84+
85+
- name: Upload Release Build to APK
86+
uses: actions/upload-artifact@v4
87+
with:
88+
name: release-apk
89+
path: app/build/outputs/apk/release/
90+
if-no-files-found: error
91+
92+
- name: Create Github Release note
93+
uses: softprops/action-gh-release@v1
94+
with:
95+
tag_name: ${{ steps.extract_version.outputs.version }}
96+
release_name: ${{ steps.extract_version.outputs.version }}
97+
generate_release_notes: true
98+
files: |
99+
app/build/outputs/apk/release/app-release.apk`
100+
101+
- name: On Success, Notify in Slack
102+
if: ${{ success() }}
103+
uses: MeilCli/slack-upload-file@v3
104+
with:
105+
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}
106+
channel_id: ${{ secrets.SLACK_GENERAL_CHANNEL_ID }}
107+
file_path: 'app/build/outputs/apk/release/app-release.apk'
108+
file_name: 'WABLE-ANDROID.apk'
109+
file_type: 'apk'
110+
initial_comment: '💟 최종 Release가 완료되었습니다 💟'
111+
112+
- name: On Failed, Notify in Slack
113+
if: ${{ failure() }}
114+
uses: rtCamp/action-slack-notify@v2
115+
env:
116+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
117+
SLACK_TITLE: '🚫 Release PR check Failed 🚫'
118+
SLACK_COLOR: '#FF0000'
119+
MSG_MINIMAL: true
120+
SLACK_USERNAME: Wable Android
121+
SLACK_MESSAGE: '️🚫⚠️ Release PR 에러 ️⚠️🚫'

0 commit comments

Comments
 (0)