-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from rafsanjani/development
Sync main with develop
- Loading branch information
Showing
137 changed files
with
1,476 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Save Release APK | ||
|
||
on: | ||
push: | ||
branches: [ development ] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
persistReleaseApk: | ||
env: | ||
SENTRY_BASE_URL_ANDROID: ${{secrets.SENTRY_BASE_URL_ANDROID}} | ||
SENTRY_AUTH_TOKEN: ${{secrets.SENTRY_AUTH_TOKEN}} | ||
GOOGLE_SERVER_CLIENT_ID: ${{secrets.GOOGLE_SERVER_CLIENT_ID}} | ||
MAPS_API_KEY_ANDROID: ${{secrets.MAPS_API_KEY_ANDROID}} | ||
OPENAI_KEY: ${{secrets.OPENAI_KEY}} | ||
STORE_FILE_BASE64: ${{secrets.SIGNING_KEY_BASE64}} | ||
STORE_PASSWORD: ${{secrets.SIGNING_KEYSTORE_PASSWORD}} | ||
KEY_ALIAS: ${{secrets.SIGNING_KEY_ALIAS}} | ||
KEY_PASSWORD: ${{secrets.SIGNING_KEY_PASSWORD}} | ||
SUPABASE_URL: ${{secrets.SUPABASE_URL}} | ||
SUPABASE_KEY: ${{secrets.SUPABASE_KEY}} | ||
|
||
name: Save Release APK artifact | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Setup secrets.properties and Configurations/Release.xcconfig | ||
run: ./environments.sh | ||
|
||
- name: Decode keystore file from secrets | ||
run: echo "$STORE_FILE_BASE64" | base64 --decode > keystore | ||
|
||
- name: Inject Signing params into gradle.properties | ||
run: | | ||
echo STORE_FILE=keystore >> gradle.properties | ||
echo STORE_PASSWORD="$STORE_PASSWORD" >> gradle.properties | ||
echo KEY_PASSWORD="$KEY_PASSWORD" >> gradle.properties | ||
echo KEY_ALIAS="$KEY_ALIAS" >> gradle.properties | ||
cat gradle.properties | ||
- name: Build Android App (Release) | ||
run: ./gradlew androidApp:app:assembleRelease | ||
|
||
- name: Upload APK artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: apk-release | ||
path: androidApp/app/build/outputs/apk/release/app-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/com/foreverrafs/superdiary/ui/Utils.kt → ...afs/superdiary/common/coroutines/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,8 @@ plugins { | |
kotlin { | ||
androidTarget() | ||
|
||
iosX64() | ||
jvm() | ||
iosX64() | ||
iosArm64() | ||
iosSimulatorArm64() | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...rc/androidMain/kotlin/com/foreverrafs/superdiary/design/components/BackHandler.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.foreverrafs.superdiary.design.components | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
actual fun BackHandler(onBack: () -> Unit) { | ||
androidx.activity.compose.BackHandler( | ||
enabled = true, | ||
onBack = onBack, | ||
) | ||
} |
60 changes: 60 additions & 0 deletions
60
...droidMain/kotlin/com/foreverrafs/superdiary/design/components/SuperDiaryDialog.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.foreverrafs.superdiary.design.components | ||
|
||
import androidx.compose.runtime.Composable | ||
import org.jetbrains.compose.resources.stringResource | ||
import superdiary.design_system.generated.resources.Res | ||
import superdiary.design_system.generated.resources.confirm_delete_diary_dialog_message | ||
import superdiary.design_system.generated.resources.confirm_delete_diary_dialog_title | ||
import superdiary.design_system.generated.resources.confirm_delete_diary_negative_button | ||
import superdiary.design_system.generated.resources.confirm_delete_diary_positive_button | ||
import superdiary.design_system.generated.resources.confirm_save_diary_dialog_message | ||
import superdiary.design_system.generated.resources.confirm_save_diary_dialog_title | ||
import superdiary.design_system.generated.resources.confirm_save_diary_negative_button | ||
import superdiary.design_system.generated.resources.confirm_save_diary_positive_button | ||
|
||
@Composable | ||
actual fun ConfirmSaveDialog( | ||
onDismiss: () -> Unit, | ||
onConfirm: () -> Unit, | ||
onDismissRequest: () -> Unit, | ||
) { | ||
BasicMaterialDialog( | ||
onNegativeButton = onDismiss, | ||
onPositiveButton = onConfirm, | ||
title = stringResource(Res.string.confirm_save_diary_dialog_title), | ||
message = stringResource(Res.string.confirm_save_diary_dialog_message), | ||
positiveButtonText = stringResource(Res.string.confirm_save_diary_positive_button), | ||
negativeButtonText = stringResource(Res.string.confirm_save_diary_negative_button), | ||
onDismissRequest = onDismissRequest, | ||
) | ||
} | ||
|
||
@Composable | ||
actual fun ConfirmDeleteDialog(onDismiss: () -> Unit, onConfirm: () -> Unit) { | ||
BasicMaterialDialog( | ||
onNegativeButton = onDismiss, | ||
onPositiveButton = onConfirm, | ||
title = stringResource(Res.string.confirm_delete_diary_dialog_title), | ||
message = stringResource(Res.string.confirm_delete_diary_dialog_message), | ||
negativeButtonText = stringResource(Res.string.confirm_delete_diary_negative_button), | ||
positiveButtonText = stringResource(Res.string.confirm_delete_diary_positive_button), | ||
onDismissRequest = onDismiss, | ||
) | ||
} | ||
|
||
@Composable | ||
actual fun ConfirmBiometricAuthDialog( | ||
onDismiss: () -> Unit, | ||
onEnableBiometric: () -> Unit, | ||
onDismissRequest: () -> Unit, | ||
) { | ||
BasicMaterialDialog( | ||
onNegativeButton = onDismiss, | ||
onPositiveButton = onEnableBiometric, | ||
title = "Biometric Authentication", | ||
message = "Do you want to enable biometric authentication?", | ||
negativeButtonText = "No", | ||
positiveButtonText = "Yes", | ||
onDismissRequest = onDismissRequest, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../foreverrafs/superdiary/ui/BackHandler.kt → ...perdiary/design/components/BackHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.