Skip to content

Commit

Permalink
Update profile
Browse files Browse the repository at this point in the history
Update build number

Clean-up, load_asc_api_key

Rework bump_build_number

Fix var name

pilot => deliver

xcodeproj for increment_build_number

Add metadata

Enable metadata

UIRequiresFullScreen

screenshots

Ipad screenshot

app_store_build_number
  • Loading branch information
KuznetsovNikita committed Dec 7, 2024
1 parent f641b02 commit 18a3995
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ipad-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
APPLE_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_API_ISSUER }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_API_KEY }}
APPLE_PROFILE_NAME: GitHub CI/Cd iPad
APPLE_PROFILE_NAME: GitHub CI/CD iPad
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }}

- name: Upload logs to artifacts
Expand Down
63 changes: 31 additions & 32 deletions apps/tablet/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ platform :ios do

begin
setup_signing(keychain_info)
load_asc_api_key
bump_build_number
build_app_with_signing(keychain_info)
submit_to_testflight
Expand All @@ -26,33 +27,38 @@ platform :ios do
install_profile
update_project_settings
end

lane :bump_build_number do
file = File.read('../package.json')
data_hash = JSON.parse(file)
connect_api_key = app_store_connect_api_key(

desc "Load ASC API Key information to use in subsequent lanes"
private_lane :load_asc_api_key do
app_store_connect_api_key(
key_id: ENV['APPLE_KEY_ID'],
issuer_id: ENV['APPLE_ISSUER_ID'],
key_content: Base64.decode64(ENV['APPLE_KEY_CONTENT']),
duration: 1200,
in_house: false
)
end

lane :bump_build_number do
api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]

build_num = 0

# build_num = app_store_build_number(
# api_key: connect_api_key,
# app_identifier: ENV['BUNDLE_IDENTIFIER'],
# live: false
# )
xcodeproj = "./ios/App/App.xcodeproj";
current_version = get_version_number(xcodeproj: xcodeproj)
latest_build_number = app_store_build_number(
api_key: api_key,
version: current_version,
app_identifier: ENV['BUNDLE_IDENTIFIER']
)

build_num = build_num + 1
UI.message("Bumped build number to #{build_num}")
build_number = latest_build_number + 1

increment_build_number(
build_number: build_num,
xcodeproj: "./ios/App/App.xcodeproj",
skip_info_plist: true
xcodeproj: xcodeproj,
build_number: build_number
)

UI.message("Bumped build number to #{build_number}")
sh("echo VERSION_CODE=#{build_number} >> $GITHUB_ENV")
end

private_lane :import_cert do |options|
Expand Down Expand Up @@ -93,8 +99,6 @@ platform :ios do
profile_name: ENV['APPLE_PROFILE_NAME'],
)



update_project_team(
path: "./ios/App/App.xcodeproj",
teamid: ENV['APP_STORE_CONNECT_TEAM_ID']
Expand Down Expand Up @@ -125,20 +129,15 @@ platform :ios do
end

private_lane :submit_to_testflight do
api_key = app_store_connect_api_key(
key_id: ENV['APPLE_KEY_ID'],
issuer_id: ENV['APPLE_ISSUER_ID'],
key_content: Base64.decode64(ENV['APPLE_KEY_CONTENT']),
duration: 1200,
in_house: false
)
pilot(
api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]

deliver(
api_key: api_key,
skip_waiting_for_build_processing: true,
skip_submission: true,
distribute_external: false,
notify_external_testers: false,
ipa: "./App.ipa"
skip_screenshots: false,
skip_metadata: false,
skip_app_version_update: true,
force: true, # skips verification of HTML preview file (since this will be run from a CI machine)
run_precheck_before_submit: false # not supported through ASC API yet
)
end
end
1 change: 1 addition & 0 deletions apps/tablet/fastlane/metadata/copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024 Ton APPS UK Limited
1 change: 1 addition & 0 deletions apps/tablet/fastlane/metadata/default/description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tonkeeper Pro is the easiest way to store, send, and receive Toncoin on The Open Network, which is a powerful new blockchain that offers unprecedented transaction speeds and throughput while offering a robust programming environment for smart contract applications.
1 change: 1 addition & 0 deletions apps/tablet/fastlane/metadata/default/keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TON, Toncoin, TON Wallet, TON Coin, Ton keeper, crypto
1 change: 1 addition & 0 deletions apps/tablet/fastlane/metadata/default/marketing_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://tonkeeper.com
1 change: 1 addition & 0 deletions apps/tablet/fastlane/metadata/default/name.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tonkeeper Pro
1 change: 1 addition & 0 deletions apps/tablet/fastlane/metadata/default/support_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://tonkeeper.com
Binary file added apps/tablet/fastlane/screenshots/0x2ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions apps/tablet/ios/App/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
</array>
<key>UIStatusBarHidden</key>
<true/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
Expand Down

0 comments on commit 18a3995

Please sign in to comment.