diff --git a/.github/workflows/check-build-deploy-to-test-users.yml b/.github/workflows/check-build-deploy-to-test-users.yml index f42ec93..7e2f68e 100644 --- a/.github/workflows/check-build-deploy-to-test-users.yml +++ b/.github/workflows/check-build-deploy-to-test-users.yml @@ -4,12 +4,12 @@ on: pull_request: branches: - master -# types: -# - closed + types: + - closed jobs: tsc: -# if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Checkout code @@ -61,3 +61,8 @@ jobs: APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }} + APPLE_APP_IDENTIFIER: ${{ secrets.APPLE_APP_IDENTIFIER }} + TEAM_NAME: ${{ secrets.TEAM_NAME }} + TEAM_ID: ${{ secrets.TEAM_ID }} + ITC_TEAM_NAME: ${{ secrets.ITC_TEAM_NAME }} + ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }} diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 7491e14..d978703 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -3,7 +3,7 @@ name: CI Pipeline on: pull_request: branches: - - masterDontUseMe + - master jobs: tsc: diff --git a/App.tsx b/App.tsx index 416e3a5..c3611ab 100644 --- a/App.tsx +++ b/App.tsx @@ -1,6 +1,11 @@ import React, { ReactElement } from 'react'; import { MainRouterNavigation } from './app/navigation/MainRouter.tsx'; +/** + * This is main app point + * r + * @constructor + */ function App(): ReactElement { return ; } diff --git a/ios/Gemfile.lock b/ios/Gemfile.lock index 41266b9..1739457 100644 --- a/ios/Gemfile.lock +++ b/ios/Gemfile.lock @@ -212,7 +212,7 @@ PLATFORMS DEPENDENCIES dotenv - fastlane + fastlane (~> 2.224.0) BUNDLED WITH 2.5.3 diff --git a/ios/fastlane/Appfile b/ios/fastlane/Appfile index 723b6e0..f8b27c1 100644 --- a/ios/fastlane/Appfile +++ b/ios/fastlane/Appfile @@ -3,7 +3,7 @@ #For more information about the Appfile, see: #https://docs.fastlane.tools/advanced/#appfile -team_name "Dawid Wyrkowski" -team_id "5G4M55X26F" -itc_team_name "Dawid Wyrkowski" -itc_team_id "127349639" +team_name ENV["TEAM_NAME"] +team_id ENV["TEAM_ID"] +itc_team_name ENV["ITC_TEAM_NAME"] +itc_team_id ENV["ITC_TEAM_ID"] diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 85db692..d387f13 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -1,4 +1,8 @@ GIT_AUTHORIZATION = ENV["GIT_AUTHORIZATION"] +KEY_ID = ENV["APP_STORE_CONNECT_API_KEY_KEY_ID"] +ISSUER_ID = ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"] +KEY_CONTENT = ENV["APP_STORE_CONNECT_API_KEY_KEY"] +APP_IDENTIFIER = ENV["APPLE_APP_IDENTIFIER"] default_platform(:ios) @@ -7,7 +11,7 @@ platform :ios do lane :certificates do sync_code_signing( type: "appstore", - app_identifier: "com.dawidcompany.simpleweatherapp", + app_identifier: APP_IDENTIFIER, git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION), force_for_new_devices: true, readonly: true @@ -19,7 +23,7 @@ platform :ios do lane :generate_new_certificates do sync_code_signing( type: "appstore", - app_identifier: "com.dawidcompany.simpleweatherapp", + app_identifier: APP_IDENTIFIER, git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION), force_for_new_devices: true, readonly: false @@ -28,24 +32,35 @@ platform :ios do end desc "deploy" - lane :deploy do - setup_ci + lane :deploy do + setup_ci + api_key = app_store_connect_api_key( + key_id: KEY_ID, + issuer_id: ISSUER_ID, + key_content: KEY_CONTENT, + is_key_content_base64: true + ) + build_num = app_store_build_number( + live: false, + api_key: api_key, + app_identifier: APP_IDENTIFIER + ) - increment_build_number(xcodeproj: "CkOnboardinApp.xcodeproj", build_number: latest_testflight_build_number + 1) + increment_build_number(xcodeproj: "CkOnboardinApp.xcodeproj", build_number: build_num + 1) - sync_code_signing( - type: "appstore", - app_identifier: 'com.dawidcompany.simpleweatherapp', - git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION), - force_for_new_devices: true, - readonly: true - ) + sync_code_signing( + type: "appstore", + app_identifier: APP_IDENTIFIER, + git_basic_authorization: Base64.strict_encode64(GIT_AUTHORIZATION), + force_for_new_devices: true, + readonly: true + ) - build_app(scheme: "CkOnboardinApp") - app_store_connect_api_key( - is_key_content_base64: true, - in_house: false, - ) - upload_to_testflight() - end + build_app(scheme: "CkOnboardinApp") + app_store_connect_api_key( + is_key_content_base64: true, + in_house: false, + ) + upload_to_testflight() + end end diff --git a/ios/fastlane/Matchfile b/ios/fastlane/Matchfile index 4f6c46d..a05c104 100644 --- a/ios/fastlane/Matchfile +++ b/ios/fastlane/Matchfile @@ -1,4 +1,6 @@ git_url("https://github.com/Dawqss/FastlaneCerts.git") +#git@github.com:Dawqss/FastlaneCerts.git +#https://github.com/Dawqss/FastlaneCerts.git storage_mode("git")