Skip to content

Commit

Permalink
Use App Store Connect API key to generate provisioning profile (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson authored Nov 24, 2024
1 parent 8e8fdad commit 88f3fbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Binary file modified ios/fastlane/4TV2PTBPVG.json
Binary file not shown.
15 changes: 12 additions & 3 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
default_platform(:ios)

api_key_path = 'fastlane/4TV2PTBPVG.json'

platform :ios do
lane :devices do
register_devices(devices_file: "./fastlane/devices.txt")
match(type: "adhoc", force_for_new_devices: true)
register_devices(
api_key_path: api_key_path,
devices_file: "./fastlane/devices.txt"
)
match(
api_key_path: api_key_path,
type: "adhoc",
force_for_new_devices: true
)
end

lane :build_ipa do
Expand Down Expand Up @@ -51,7 +60,7 @@ platform :ios do

commit = last_git_commit
upload_to_testflight(
api_key_path: "fastlane/4TV2PTBPVG.json",
api_key_path: api_key_path,
changelog: commit[:message],
distribute_external: true,
groups: "Public group"
Expand Down

1 comment on commit 88f3fbe

@github-actions
Copy link

@github-actions github-actions bot commented on 88f3fbe Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux build

# Generated code do not commit.
file(TO_CMAKE_PATH "/opt/hostedtoolcache/flutter/stable-3.19.4-x64" FLUTTER_ROOT)
file(TO_CMAKE_PATH "/home/runner/work/flutter-tinhte_demo/flutter-tinhte_demo" PROJECT_DIR)

set(FLUTTER_VERSION "2.1.0+7821" PARENT_SCOPE)
set(FLUTTER_VERSION_MAJOR 2 PARENT_SCOPE)
set(FLUTTER_VERSION_MINOR 1 PARENT_SCOPE)
set(FLUTTER_VERSION_PATCH 0 PARENT_SCOPE)
set(FLUTTER_VERSION_BUILD 7821 PARENT_SCOPE)

# Environment variables to pass to tool_backend.sh
list(APPEND FLUTTER_TOOL_ENVIRONMENT
  "FLUTTER_ROOT=/opt/hostedtoolcache/flutter/stable-3.19.4-x64"
  "PROJECT_DIR=/home/runner/work/flutter-tinhte_demo/flutter-tinhte_demo"
  "DART_OBFUSCATION=false"
  "TRACK_WIDGET_CREATION=true"
  "TREE_SHAKE_ICONS=true"
  "PACKAGE_CONFIG=/home/runner/work/flutter-tinhte_demo/flutter-tinhte_demo/.dart_tool/package_config.json"
  "FLUTTER_TARGET=lib/main.dart"
)

bundle.zip

iOS build

// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/runner/hostedtoolcache/flutter/stable-3.19.4-arm64
FLUTTER_APPLICATION_PATH=/Users/runner/work/flutter-tinhte_demo/flutter-tinhte_demo
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=2.1.0
FLUTTER_BUILD_NUMBER=7821
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=false
TREE_SHAKE_ICONS=true
PACKAGE_CONFIG=/Users/runner/work/flutter-tinhte_demo/flutter-tinhte_demo/.dart_tool/package_config.json

manifest.plist

Android builds

sdk.dir=/usr/local/lib/android/sdk
flutter.sdk=/opt/hostedtoolcache/flutter/stable-3.19.4-x64
flutter.buildMode=release
flutter.versionName=2.1.0
flutter.versionCode=7821

Windows build

# Generated code do not commit.
file(TO_CMAKE_PATH "C:\\hostedtoolcache\\windows\\flutter\\stable-3.19.4-x64" FLUTTER_ROOT)
file(TO_CMAKE_PATH "D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo" PROJECT_DIR)

set(FLUTTER_VERSION "2.1.0+7821" PARENT_SCOPE)
set(FLUTTER_VERSION_MAJOR 2 PARENT_SCOPE)
set(FLUTTER_VERSION_MINOR 1 PARENT_SCOPE)
set(FLUTTER_VERSION_PATCH 0 PARENT_SCOPE)
set(FLUTTER_VERSION_BUILD 7821 PARENT_SCOPE)

# Environment variables to pass to tool_backend.sh
list(APPEND FLUTTER_TOOL_ENVIRONMENT
  "FLUTTER_ROOT=C:\\hostedtoolcache\\windows\\flutter\\stable-3.19.4-x64"
  "PROJECT_DIR=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo"
  "FLUTTER_ROOT=C:\\hostedtoolcache\\windows\\flutter\\stable-3.19.4-x64"
  "FLUTTER_EPHEMERAL_DIR=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo\\windows\\flutter\\ephemeral"
  "PROJECT_DIR=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo"
  "FLUTTER_TARGET=lib\\main.dart"
  "DART_OBFUSCATION=false"
  "TRACK_WIDGET_CREATION=true"
  "TREE_SHAKE_ICONS=true"
  "PACKAGE_CONFIG=D:\\a\\flutter-tinhte_demo\\flutter-tinhte_demo\\.dart_tool\\package_config.json"
)

  1. Installing a test certificate directly from an MSIX package
  2. Then run the installer

Please sign in to comment.