Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:
jobs:
google-play-publish:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/'))
uses: personaclick/workflow/.github/workflows/reusable-android-google-play-publish.yaml@7907f21814b2f998ffd80451754ce026e3553265
uses: personaclick/workflow/.github/workflows/reusable-android-google-play-publish.yaml@1cfee7e2e762eed3a3d7d67c413aa0bae7f5ffae
with:
githubAppId: ${{ vars.PERSONACLICK_COURIER_ID }}
packageName: "personaClick.demo_shop"
packageName: "personaclick.demo_shop"
aabReleasePath: "app/build/outputs/bundle/prodRelease/app-prod-release.aab"
propertiesFilePath: "version.properties"
secrets:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/repo-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Repository synchronization

on:
pull_request:
types:
- closed
branches:
- master
workflow_dispatch:

jobs:
prepare:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: ubuntu-latest
outputs:
replacements: ${{ steps.getReplacementsStep.outputs.replacements }}
steps:
# TODO uncomment
# - uses: personaclick/workflow/.github/actions/sync/read-replacements@master
- uses: personaclick/workflow/.github/actions/sync/read-replacements@refactor/replacements
id: getReplacementsStep
with:
appId: ${{ vars.PERSONACLICK_COURIER_ID }}
appSecret: ${{ secrets.PERSONACLICK_COURIER_SECRET }}
replacementsPath: github/repo-sync-replacements/android-sdk.yml

repoSync:
needs: prepare
uses: personaclick/workflow/.github/workflows/reusable-repo-sync.yml@master
secrets:
appSecret: ${{ secrets.PERSONACLICK_COURIER_SECRET }}
with:
appId: ${{ vars.PERSONACLICK_COURIER_ID }}
replacements: ${{ needs.prepare.outputs.replacements }}
targetRepository: personaclick/demo-android
repositoryOwner: personaclick
reviewerUsername: iwwwanow
1 change: 1 addition & 0 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
permissions: write-all
secrets:
appSecret: ${{ secrets.PERSONACLICK_COURIER_SECRET }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
with:
appId: ${{ vars.PERSONACLICK_COURIER_ID }}
reviewerUsername: iwwwanow
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
namespace = "personaclick.demo_android.app"

defaultConfig {
applicationId = "personaClick.demo_shop"
applicationId = "personaclick.demo_shop"
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package personaclick.demo_android.core.settings

object SdkSettings {
const val API_URL = "https://api.personaclick.com/"
const val API_URL = "https://api.personaclick.ru/"
const val PREFERENCES_KEY = "demo android"
const val TAG = "DEMO TAG"
const val STREAM = "android"
Expand Down