Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]Backup: use firestore #1396

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e69a8cb
Backup Firestore
ppupha Nov 23, 2023
18504d7
Firestore config
ppupha Nov 23, 2023
695554b
Replace Cloud Database
ppupha Nov 24, 2023
444c7b8
Replace CloudFirestoreDatabase
ppupha Nov 27, 2023
0b639ea
Update
ppupha Nov 28, 2023
d092cb5
Revert Migration Util
ppupha Nov 28, 2023
5288a3c
Merge branch 'develop' into Sang/backup/use_fireStore
ppupha Nov 28, 2023
77a8e4e
Fix lint
ppupha Nov 28, 2023
196535b
Check if backup from sqlite
ppupha Nov 29, 2023
ecf9fd2
Update Path
ppupha Nov 29, 2023
a8a7d3d
Forget i exist
ppupha Nov 29, 2023
6837d41
Remove unuse code
ppupha Nov 29, 2023
35be763
integrate JWT
ppupha Dec 18, 2023
0bd26e3
Merge branch 'develop' into Sang/backup/auth_firebase
ppupha Dec 19, 2023
1b822f8
Merge branch 'develop' into Sang/backup/use_fireStore
ppupha Dec 19, 2023
31b0b1b
Auth User
ppupha Dec 27, 2023
08935a9
Fix: getDefaultAccount
ppupha Jan 4, 2024
b9effbd
Fix lint
ppupha Jan 4, 2024
64525e5
Mixpanel: Fix identify user
ppupha Jan 4, 2024
52da9a0
Merge branch 'develop' into Sang/backup/auth_firebase
ppupha Jan 4, 2024
3d75bd0
Merge branch 'develop' into Sang/backup/use_fireStore
ppupha Jan 17, 2024
1671701
Merge branch 'Sang/backup/use_fireStore' into Sang/backup/auth_firebase
ppupha Jan 17, 2024
6f64b1a
Merge branch 'develop' into Sang/backup/use_fireStore
ppupha Jan 23, 2024
cf0d1aa
Merge branch 'Sang/backup/use_fireStore' into Sang/backup/auth_firebase
ppupha Jan 23, 2024
7a9d39c
Merge branch 'Sang/backup/auth_firebase' into Sang/backup/use_fireStore
ppupha Jan 23, 2024
3177a94
Fix lint
ppupha Jan 23, 2024
ca87b74
User env for apiKey
ppupha Jan 23, 2024
8e10495
Update CI and git ignore
ppupha Jan 23, 2024
14a17a5
Merge branch 'develop' into Sang/backup/use_fireStore
ppupha Jan 26, 2024
fa0f12e
Update Project
ppupha Jan 26, 2024
39e7511
Merge branch 'develop' into Sang/backup/use_fireStore
ppupha Feb 22, 2024
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
4 changes: 4 additions & 0 deletions .github/workflows/android-release-appcenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
echo APP_TESTNET_CONFIG=${{ github.event.inputs.testnet == 'true' }} >> .env
cat .env

- name: Create android/app/google-services.json
run: |
touch android/app/google-services.json
echo ${{ secrets.GOOGLE_SERVICE_JSON }} >> android/app/google-services.json
- name: Submoudles update
run: git -c submodule.auto-test.update=none submodule update --init --recursive
- run: flutter pub cache repair
Expand Down
136 changes: 70 additions & 66 deletions .github/workflows/auto_test_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
# - update_autotest
jobs:
build:
runs-on: [self-hosted, Linux, ci-local-bmvn, X64]
runs-on: [ self-hosted, Linux, ci-local-bmvn, X64 ]
steps:
# Checkout code and get packages.
- name: Checkout code
Expand Down Expand Up @@ -80,6 +80,10 @@ jobs:

cat .env

- name: Create android/app/google-services.json
run: |
touch android/app/google-services.json
echo ${{ secrets.GOOGLE_SERVICE_JSON }} >> android/app/google-services.json
- name: Submoudles update
run: git submodule update --init --recursive
- run: flutter pub cache repair
Expand All @@ -89,11 +93,11 @@ jobs:
run: flutter build apk --flavor inhouse

# Run flutter test
# - name: Run auto tests for Suite "Link account from MetaMask app"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_app/linkaccountbyMetamaskapp_test.dart
# - name: Run auto tests for Suite "Link account from MetaMask app"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_app/linkaccountbyMetamaskapp_test.dart
- name: Run auto tests for Suite "Import accounts from seeds"
if: success() || failure()
run: |
Expand All @@ -109,66 +113,66 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
flutter test auto-test/mobile_external_webs/linkEthereumAccountWallet_test.dart
# - name: Run Flutter Driver tests for Suite "Link Ethereum Wallet" without finishing Onboarding
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/linkEthereumAccountWalletOnboarding_test.dart
# - name: Run auto tests for Suite "Purchase Feral File Ethereum NFT"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/purchaseFeralFileEthereumToken_test.dart
# - name: Run auto tests for Suite "Purchase Tez NFT in outside exchanges"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/purchase_tez_nft_test.dart
# - name: Run auto tests for Suite "Purchase Feral File Tez NFT"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/purchaseFeralfileTezosToken_test.dart
# - name: Run auto tests for Suite "Send/transfer artworks"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/send_artwork_test.dart
# - name: Run auto tests for Suite "Check static pages, build"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/setting_footer_test.dart
# - name: Run auto tests for Suite "Check artwork preview"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/check_artwork_detail_test.dart
# - name: Run auto tests for Suite "Create new account"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/create_new_account_test.dart
# - name: Run auto tests for Suite "Customer support"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/customer_support_test.dart
# - name: Run auto tests for Suite "Check artwork metadata compare with indexer. Other cases check with blockchain we need implement in Unit test"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/check_artwork_info_test.dart
# - name: Run auto tests for Suite "Check deposit testcases"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/send_xtz_test.dart
# - name: Run auto tests for Suite "Check deposit ETH testcases"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/send_eth_test.dart
# - name: Run Flutter Driver tests for Suite "Link Ethereum Wallet" without finishing Onboarding
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/linkEthereumAccountWalletOnboarding_test.dart
# - name: Run auto tests for Suite "Purchase Feral File Ethereum NFT"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/purchaseFeralFileEthereumToken_test.dart
# - name: Run auto tests for Suite "Purchase Tez NFT in outside exchanges"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/purchase_tez_nft_test.dart
# - name: Run auto tests for Suite "Purchase Feral File Tez NFT"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/mobile_external_webs/purchaseFeralfileTezosToken_test.dart
# - name: Run auto tests for Suite "Send/transfer artworks"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/send_artwork_test.dart
# - name: Run auto tests for Suite "Check static pages, build"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/setting_footer_test.dart
# - name: Run auto tests for Suite "Check artwork preview"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/check_artwork_detail_test.dart
# - name: Run auto tests for Suite "Create new account"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/create_new_account_test.dart
# - name: Run auto tests for Suite "Customer support"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/customer_support_test.dart
# - name: Run auto tests for Suite "Check artwork metadata compare with indexer. Other cases check with blockchain we need implement in Unit test"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/check_artwork_info_test.dart
# - name: Run auto tests for Suite "Check deposit testcases"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/send_xtz_test.dart
# - name: Run auto tests for Suite "Check deposit ETH testcases"
# if: success() || failure()
# run: |
# cd $GITHUB_WORKSPACE
# flutter test auto-test/tests/send_eth_test.dart
- name: Run auto tests for Suite "Link Autonomy Connect from FeralFile to Autonomy Wallet"
if: success() || failure()
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/auto_test_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
# - develop
jobs:
build:
runs-on: [self-hosted, macOS, X64, ci-local-bmvn-macos]
runs-on: [ self-hosted, macOS, X64, ci-local-bmvn-macos ]
steps:
# Checkout code and get packages.
- name: Checkout code
Expand Down Expand Up @@ -80,6 +80,10 @@ jobs:

cat .env

- name: Create ios/Runner/GoogleService-Info.plist
run: |
touch ios/Runner/GoogleService-Info.plist
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} >> ios/Runner/GoogleService-Info.plist
- name: Submoudles update
run: git submodule update --init --recursive
- run: flutter pub cache repair
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/bmvn_build_appcenter_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
${{ inputs.testnet == true }} && echo APPCENTER_APP_ID=support-zzd0-28/Autonomy-Android-Test >> $GITHUB_ENV || echo APPCENTER_APP_ID=support-zzd0-28/Autonomy-Android-1 >> $GITHUB_ENV
${{ inputs.testnet == true }} && echo NAME_SUFFIX=test-${{env.FLUTTER_VERSION_CODE}} >> $GITHUB_ENV || echo NAME_SUFFIX=main-${{env.FLUTTER_VERSION_CODE}} >> $GITHUB_ENV

- name: Create android/app/google-services.json
run: |
touch android/app/google-services.json
echo ${{ secrets.GOOGLE_SERVICE_JSON }} >> android/app/google-services.json
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_ASSETS_KEY }}
Expand Down Expand Up @@ -148,7 +152,7 @@ jobs:
release_notes: ${{ inputs.message }}

- name: Upload Sentry debug symbols
env:
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH }}
run: |
flutter packages pub run sentry_dart_plugin
6 changes: 5 additions & 1 deletion .github/workflows/bmvn_build_appcenter_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ jobs:
echo APP_TESTNET_CONFIG=${{ inputs.testnet == true }} >> .env
cat .env

- name: Create ios/Runner/GoogleService-Info.plist
run: |
touch ios/Runner/GoogleService-Info.plist
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} >> ios/Runner/GoogleService-Info.plist
- name: Flutter doctor
run: flutter doctor
- name: Submoudles update
Expand Down Expand Up @@ -173,7 +177,7 @@ jobs:
working-directory: ios

- name: Upload Sentry debug symbols
env:
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH }}
run: |
flutter packages pub run sentry_dart_plugin
4 changes: 4 additions & 0 deletions .github/workflows/ios-release-appcenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ jobs:
echo APP_TESTNET_CONFIG=${{ github.event.inputs.testnet == 'true' }} >> .env
cat .env

- name: Create ios/Runner/GoogleService-Info.plist
run: |
touch ios/Runner/GoogleService-Info.plist
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} >> ios/Runner/GoogleService-Info.plist
- name: Flutter doctor
run: flutter doctor
- name: Submoudles update
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ios-release-testflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:

cat .env

- name: Create ios/Runner/GoogleService-Info.plist
run: |
touch ios/Runner/GoogleService-Info.plist
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} >> ios/Runner/GoogleService-Info.plist
- name: Flutter doctor
run: flutter doctor
- name: Submoudles update
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ app.*.symbols
# Obfuscation related
app.*.map.json

#firebase related
/android/app/google-services.json
/ios/Runner/GoogleService-Info.plist

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
Expand Down
69 changes: 0 additions & 69 deletions android/app/google-services.json

This file was deleted.

5 changes: 4 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
// START: FlutterFire Configuration
classpath 'com.google.gms:google-services:4.3.15'
// END: FlutterFire Configuration
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
Expand All @@ -26,7 +29,7 @@ allprojects {
}
}
maven { url 'https://jitpack.io' }
maven { url "${project(':background_fetch').projectDir}/libs"}
maven { url "${project(':background_fetch').projectDir}/libs" }
}
}

Expand Down
4 changes: 4 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ post_install do |installer|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
end
Loading