Skip to content

Commit

Permalink
chore: fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 27, 2024
1 parent 5553a05 commit ef43484
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ lane :build_flavor do |params|
# end
when 'alpha','beta','production'
upload_store(changelog:changelog, version: version, versionCode: versionCode, flavor:flavor, options:options, build_output:build_output)
if (platform == 'ios')
if (platform == 'ios' && options[:github] != false)
# we now github create releases on iOS for european users
changelog = get_changelog(platform:platform, flavor:'github')
set_github_release(
Expand All @@ -283,7 +283,7 @@ lane :build_flavor do |params|
end
end
# yarn lock might have change we dont want to commit it
reset_git_repo( force: true, files: ["yarn.lock"])
reset_git_repo( force: true, files: ["yarn.lock", "package.json"])
# we need to pull to be able to push again
git_pull
# push any change
Expand Down
9 changes: 7 additions & 2 deletions scripts/ci.prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,20 @@ else
fi


git clone -b alpimaps https://github.com/nativescript-community/ui-carto.git
git clone --recurse-submodules -b alpimaps https://github.com/nativescript-community/ui-carto.git

if ["${PLATFORM}" -eq "android"]
then
wget https://github.com/Akylas/mobile-sdk/releases/download/v$CARTO_SDK_VERSION/carto-mobile-sdk-$CARTO_SDK_VERSION.aar
mv carto-mobile-sdk-$CARTO_SDK_VERSION.aar ./ui-carto/packages/ui-carto/platforms/android
else
wget https://github.com/Akylas/mobile-sdk/releases/download/v$CARTO_SDK_VERSION/carto-mobile-sdk-ios-$CARTO_SDK_VERSION.zip
unzip -o-d ./ui-carto/packages/ui-carto/platforms/io carto-mobile-sdk-ios-$CARTO_SDK_VERSION.zip
unzip -o -d ./ui-carto/packages/ui-carto/platforms/io carto-mobile-sdk-ios-$CARTO_SDK_VERSION.zip
fi

cd ui-carto
touch yarn.lock
yarn
npm run build
cd ..git
yarn link -r ./ui-carto/packages/ui-carto
2 changes: 1 addition & 1 deletion tools
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ __metadata:

"@akylas/nativescript-app-tools@file:tools::locator=root-workspace-0b6124%40workspace%3A.":
version: 1.0.0
resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=42e9d5&locator=root-workspace-0b6124%40workspace%3A."
resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=e3f389&locator=root-workspace-0b6124%40workspace%3A."
dependencies:
"@dotenvx/dotenvx": "npm:1.19.3"
"@nativescript-community/fontmin": "npm:0.9.11"
Expand Down Expand Up @@ -90,7 +90,7 @@ __metadata:
typescript: "npm:5.6.3"
typescript-eslint: "npm:^8.9.0"
webpack-bundle-analyzer: "npm:^4.10.2"
checksum: 10/4c172a24dbc008cc67b5633feba6f6f72dd2ecc8a503e2c8963f9a373744525dee6334eda6cf56048d60394f5b65b9cbd8a12e8db75d97e09cb696fda0f3e681
checksum: 10/439d77603e16706b9ea41e6526940a727fb37d0668abe5385855b00f3a550f2d1c4b318c7e9ceb456e463f6cbe56b4f326b038be1fa0d91c6fdea5e7a1a6ffb4
languageName: node
linkType: hard

Expand Down

0 comments on commit ef43484

Please sign in to comment.