Skip to content

Commit

Permalink
chore: update sign (#457)
Browse files Browse the repository at this point in the history
* Update android sign

* Change appName to SparX Wallet

* Change app id

* pubspec.yaml update description

* money2_fixer

* Add main.dart

* Update deploy workflow

* Update deploy workflow if sections

* utils.dart remove unnecessary import

* Rename ios and android workflows

* Use fastlane provision

* DEPLOY_TARGET: ${{ inputs.deploy_target }}

* mesos deploy target

* echo "DEPLOY_TARGET is set to: $DEPLOY_TARGET"

* Update ios codesign

* Left only iPhone destination

* Add push notifications iOS

* Update ios displayed name

* FLAVOR_APP_NAME fix quotes

* firebase_app_distribution update app values

* Fastlane ipa_path change to SparX Wallet.ipa

* Add log ipa name in store build script

* Remove flag DEPLOY_TARGET

* fix analyze result

* After merge
  • Loading branch information
knightsforce authored Aug 31, 2024
1 parent 3c5e87c commit 598413f
Show file tree
Hide file tree
Showing 35 changed files with 12,189 additions and 11,835 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/app-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- "fad"
- "store"
- "fad_store"
- "ios_store"
- "android_store"

jobs:
build_and_deploy:
Expand All @@ -37,6 +39,7 @@ jobs:
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- uses: bluefireteam/melos-action@v3
- uses: actions/setup-java@v4
if: inputs.deploy_target != 'store_ios'
with:
distribution: zulu
java-version: "17.x"
Expand All @@ -47,6 +50,7 @@ jobs:

# iOS certs
- name: Making sure the iOS certificates and profiles are installed
if: inputs.deploy_target != 'store_android'
run: melos build:ios_match_assure

# Dart/Flutter
Expand All @@ -64,7 +68,7 @@ jobs:
# Build and deploy to FAD
- name: Build and deploy to FAD
if: inputs.deploy_target == 'fad' || inputs.deploy_target == ''
if: inputs.deploy_target == 'fad'
run: melos build:deploy_fad
env:
SENTRY_DSN: ${{ env.SENTRY_DSN }}
Expand All @@ -82,3 +86,17 @@ jobs:
run: melos build:deploy_fad_store
env:
SENTRY_DSN: ${{ env.SENTRY_DSN }}

# Build and deploy to Test Flight
- name: Build and deploy to Test Flight
if: inputs.deploy_target == 'ios_store'
run: melos build:deploy_ios_store
env:
SENTRY_DSN: ${{ env.SENTRY_DSN }}

# Build and deploy to Google Play
- name: Build and deploy to Google Play
if: inputs.deploy_target == 'android_store'
run: melos build:deploy_android_store
env:
SENTRY_DSN: ${{ env.SENTRY_DSN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pubspec_overrides.yaml
.idea

# Secrets
android/crystal.keystore
android/sparx.keystore
android/key.properties
android/fastlane/GooglePlayServiceAccount.json
ios/fastlane/AuthKey_L4N29B6Z42.p8
Expand Down
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.broxus.crystal.app"
applicationId "com.broxus.sparx.app"
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
Expand Down Expand Up @@ -78,17 +78,17 @@ android {
production {
dimension "default"
applicationIdSuffix ""
manifestPlaceholders = [appName: "App"]
manifestPlaceholders = [appName: "SparX Wallet"]
}
staging {
dimension "default"
applicationIdSuffix ".stg"
manifestPlaceholders = [appName: "[STG] App"]
manifestPlaceholders = [appName: "[STG] SparX Wallet"]
}
development {
dimension "default"
applicationIdSuffix ".dev"
manifestPlaceholders = [appName: "[DEV] App"]
manifestPlaceholders = [appName: "[DEV] SparX Wallet"]
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.broxus.crystal.app">
package="com.broxus.sparx.app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.broxus.crystal.app">
package="com.broxus.sparx.app">
<application
android:label="${appName}"
android:icon="@mipmap/ic_launcher">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.broxus.crystal.app
package com.broxus.sparx.app

import io.flutter.embedding.android.FlutterFragmentActivity

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.broxus.crystal.app">
package="com.broxus.sparx.app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion android/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file("fastlane/GooglePlayServiceAccount.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.broxus.crystal.app") # e.g. com.krausefx.app
package_name("com.broxus.sparx.app") # e.g. com.krausefx.app
2 changes: 1 addition & 1 deletion android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ platform :android do
desc "Deploy a new build to the FAD"
lane :deploy_fad do |options|
firebase_app_distribution(
app: "1:1017783238389:android:23c9e07bee6cc2ef2e4fbc",
app: "1:1017783238389:android:de95e7bcfdb82f8f2e4fbc",
groups: "qa",
android_artifact_type: "APK",
android_artifact_path: "../build/app/outputs/flutter-apk/app-production-release.apk",
Expand Down
Loading

0 comments on commit 598413f

Please sign in to comment.