Skip to content

Commit

Permalink
chore: fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Dec 11, 2024
1 parent 4b13723 commit 60fcba5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ dev_assets/styles/base/fonts/osm.ttf
dev_assets/styles/inner_cleaned/fonts/materialdesignicons-webfont.ttf
dev_assets/styles/**/*.xml
dev_assets/styles/test*
/css2xml_*
/dev_assets/styles/inner/fonts/osm.ttf
/dev_assets/styles/osm/fonts/osm.ttf
/dev_assets/styles/inner/fonts/materialdesignicons-webfont.ttf

#documents
opencv/**/*
Expand Down
2 changes: 2 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ lane :build_flavor do |params|
FileUtils.mkdir dist_path
end
FileUtils.cp_r(Dir.glob(File.join(project_root_path, app_build_path, "android/app/build/outputs/apk/release/*.apk")),dist_path )
FileUtils.cp_r(Dir.glob(File.join(project_root_path, app_build_path, "android/app/build/outputs/bundle/release/*.aab")),dist_path )
end

if (ENV["GITHUB_ACTIONS"] != 'true')
Expand Down Expand Up @@ -285,6 +286,7 @@ lane :build_flavor do |params|
# yarn lock might have change we dont want to commit it
reset_git_repo( force: true, files: ["yarn.lock", "package.json"])
# we need to pull to be able to push again
Actions.sh("git fetch --tags -f")
git_pull
# push any change
push_to_git_remote(tags:false)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"prepare": "ts-patch install -s",
"prepare.ios": "PLAY_STORE_BUILD=1 ns prepare ios --release --env.adhoc",
"prepare.ios.sentry": "NS_SENTRY=1 PLAY_STORE_BUILD=1 ns prepare ios --release --env.adhoc_sentry",
"run.ios.production": "PLAY_STORE_BUILD=1 ns run ios --release --env.production --env.adhoc",
"run.ios.production": "NS_LOGGING=1 PLAY_STORE_BUILD=1 ns run ios --release --env.production --env.adhoc",
"run.ios.production.sentry": "NS_SENTRY=1 PLAY_STORE_BUILD=1 ns run ios --release --env.production --env.adhoc_sentry",
"sentry-set-commits": "sentry-cli releases set-commits --auto --ignore-missing",
"run.android.production": "NS_LOGGING=1 cross-var ns run android --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.sentry=0 --env.sourceMap=0 --env.noconsole=0 --env.devlog",
Expand Down
2 changes: 1 addition & 1 deletion tools

0 comments on commit 60fcba5

Please sign in to comment.