Skip to content

Commit

Permalink
1.0.0-beta01
Browse files Browse the repository at this point in the history
feat: app - Calendar
feat: app - Login/Logout
feat: app - Online/Offline Sync Memo
feat: server - Login/Logout
feat: server - Upsert/Fetch Memo
feat: server - Migrate Memo
  • Loading branch information
taetae98coding committed Nov 7, 2024
1 parent bb64565 commit 17678d6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/firebase_app_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
appId: ${{ secrets.FIREBASE_ANDROID_REAL_RELEASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_APP_DISTRIBUTION_KEY }}
groups: Developer,Tester
groups: Developer,Android
file: app/platform/android/build/outputs/apk/real/release/android-real-release.apk
releaseNotesFile: CHANGELOG.md

Expand Down Expand Up @@ -116,12 +116,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Diary.ipa
path: Diary/build/Diary.ipa
path: Diary/build/Apps/Diary.ipa

iOS-Distribution:
needs: [iOS-Build]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download ipa
uses: actions/download-artifact@v4
with:
Expand All @@ -130,9 +133,9 @@ jobs:
- name: Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_ANDROID_REAL_RELEASE_APP_ID }}
appId: ${{ secrets.FIREBASE_IOS_REAL_RELEASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_APP_DISTRIBUTION_KEY }}
groups: Developer,Tester
groups: Developer,iOS
file: Diary.ipa
releaseNotesFile: CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion Diary/Diary.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.github.taetae98coding.diary;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = Provision;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = adhoc;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
10 changes: 4 additions & 6 deletions Diary/ExportOptions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
<dict>
<key>destination</key>
<string>export</string>
<key>manageAppVersionAndBuildNumber</key>
<true/>
<key>method</key>
<string>app-store-connect</string>
<string>release-testing</string>
<key>provisioningProfiles</key>
<dict>
<key>io.github.taetae98coding.diary</key>
<string>Provision</string>
<string>adhoc</string>
</dict>
<key>signingCertificate</key>
<string>Apple Distribution</string>
Expand All @@ -21,7 +19,7 @@
<true/>
<key>teamID</key>
<string>4TV6L66XZ8</string>
<key>uploadSymbols</key>
<true/>
<key>thinning</key>
<string>&lt;thin-for-all-variants&gt;</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private fun Message(
uiState.isLoginFinish -> onLoginFinish()
uiState.isExistEmail -> state.showMessage(existEmailMessage)
uiState.isNetworkError -> state.showMessage(networkErrorMessage)
uiState.isUnknownError -> state.showMessage(unknownErrorMessage)
uiState.isUnknownError -> state.showMessage(uiState.unknownMessage)
}

uiState.onMessageShow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal class JoinViewModel(
when (throwable) {
is ExistEmailException -> _uiState.update { it.copy(isProgress = false, isExistEmail = true) }
is NetworkException -> _uiState.update { it.copy(isProgress = false, isNetworkError = true) }
else -> _uiState.update { it.copy(isProgress = false, isUnknownError = true) }
else -> _uiState.update { it.copy(isProgress = false, isUnknownError = true, unknownMessage = throwable.toString()) }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ internal data class JoinUiState(
val isExistEmail: Boolean = false,
val isNetworkError: Boolean = false,
val isUnknownError: Boolean = false,
val unknownMessage: String = "",
val onMessageShow: () -> Unit = {},
) {
val hasMessage = isLoginFinish || isExistEmail || isNetworkError || isUnknownError
Expand Down

0 comments on commit 17678d6

Please sign in to comment.