Skip to content

Commit

Permalink
refactor: Reinitialize mobile_app repo with KMM (#12)
Browse files Browse the repository at this point in the history
* refactor: Purge flutter

* refactor: Add KMM scaffolding

* fix: Remove failing test coverage step

Also fix renamed directory
  • Loading branch information
EmmaSimon authored Dec 18, 2023
1 parent b97c5dd commit f5a6fd8
Show file tree
Hide file tree
Showing 115 changed files with 1,202 additions and 2,606 deletions.
1 change: 0 additions & 1 deletion .envrc.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export SENTRY_DSN= # Find under the Client Keys settings of the mobile_app project in Sentry
export SENTRY_ENVIRONMENT=debug
export FLUTTER_ROOT="$(asdf where flutter)"
33 changes: 1 addition & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ jobs:
- name: Read asdf versions
id: asdf
run: cat .tool-versions | sed 's/ /=/' | tee -a "$GITHUB_OUTPUT"
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ steps.asdf.outputs.flutter }}
cache: true
- name: Get dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze .
- name: Format
run: dart format lib test --set-exit-if-changed
- name: Test
run: flutter test --coverage
- name: Report test coverage
uses: mbta/github-actions-report-lcov@v1
with:
coverage-files: coverage/lcov.info
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -63,21 +44,9 @@ jobs:
mobile-app-android-upload-key-passphrase
- name: Load code signing key
run: |
cd android
cd androidApp
aws secretsmanager get-secret-value --secret-id mobile-app-android-upload-key --output json | jq -r '.SecretBinary' | base64 --decode > upload-keystore.jks
echo "storePassword=$MOBILE_APP_ANDROID_UPLOAD_KEY_PASSPHRASE" >> key.properties
echo "keyPassword=$MOBILE_APP_ANDROID_UPLOAD_KEY_PASSPHRASE" >> key.properties
echo "keyAlias=upload" >> key.properties
echo "storeFile=$(pwd)/upload-keystore.jks" >> key.properties
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Patch Fastlane to pick up application default credentials
run: bin/patch-fastlane.sh
- name: Build and ${{ github.event_name == 'pull_request' && 'validate on' || 'upload to' }} Google Play
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_ENVIRONMENT: staging
run: |
bundle exec fastlane android internal validate_only:${{ github.event_name == 'pull_request' }}
56 changes: 9 additions & 47 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,49 +1,11 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
*.iml
.gradle
.idea
.DS_Store
.atom/
.buildlog/
build
captures
.externalNativeBuild
.cxx
local.properties
xcuserdata
.envrc
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
/coverage/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# Fastlane related
/fastlane/report.xml
33 changes: 0 additions & 33 deletions .metadata

This file was deleted.

24 changes: 10 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: pretty-format-json
types: [text]
files: \.(json|arb)$
args: ['--autofix']
- repo: https://github.com/fluttercommunity/import_sorter
rev: 'f350497a11b1285c695595049e95a420068e7a9f'
hooks:
- id: dart-import-sorter
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: pretty-format-json
types: [text]
files: \.(json|arb)$
args: ["--autofix"]
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ruby 3.2.2
flutter 3.13.9
37 changes: 0 additions & 37 deletions .vscode/launch.json

This file was deleted.

4 changes: 0 additions & 4 deletions Gemfile

This file was deleted.

Loading

0 comments on commit f5a6fd8

Please sign in to comment.