Splited the test report job for forks
Refactored fastlane for both ios and android Refactored github workflows (cherry picked from commit c3ff622af05f87e16ae1cadec0c95c87cca3d763)
This commit is contained in:
+12
-58
@@ -11,53 +11,24 @@
|
||||
#
|
||||
|
||||
# Uncomment the line if you want fastlane to automatically update itself
|
||||
# update_fastlane
|
||||
update_fastlane
|
||||
|
||||
opt_out_usage
|
||||
default_platform(:ios)
|
||||
setup_ci if ENV['CI']
|
||||
|
||||
# Import signing certificate
|
||||
import_certificate(
|
||||
certificate_path: "cert.p12",
|
||||
certificate_password: ENV["CERTIFICATE_PASSWORD"],
|
||||
keychain_name: ENV["MATCH_KEYCHAIN_NAME"]
|
||||
)
|
||||
|
||||
# 2 provisioning profiles, 1 for the main app and 1 for the share extension
|
||||
install_provisioning_profile(path: "buildpp.mobileprovision")
|
||||
install_provisioning_profile(path: "shareextpp.mobileprovision")
|
||||
|
||||
|
||||
platform :ios do
|
||||
desc "Build development version"
|
||||
lane :dev do
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: "Runner.xcodeproj",
|
||||
code_sign_identity: "Apple Development"
|
||||
)
|
||||
# Update the provisioning profile for both the main app and extension
|
||||
update_project_provisioning(
|
||||
xcodeproj: "Runner.xcodeproj",
|
||||
profile: "./buildpp.mobileprovision",
|
||||
target_filter: ".*Runner.*"
|
||||
)
|
||||
update_project_provisioning(
|
||||
xcodeproj: "Runner.xcodeproj",
|
||||
profile: "./shareextpp.mobileprovision",
|
||||
target_filter: ".*TeamMailShareExtension.*"
|
||||
sync_code_signing(
|
||||
type: "development",
|
||||
git_private_key: ENV["APPLE_CERTIFICATES_SSH_KEY"]
|
||||
)
|
||||
build_app(
|
||||
scheme: "Runner",
|
||||
configuration: "Debug",
|
||||
workspace: "Runner.xcworkspace",
|
||||
export_method: "development",
|
||||
export_options: {
|
||||
provisioningProfiles: {
|
||||
"com.linagora.ios.teammail": "tmail.development.profile",
|
||||
"com.linagora.ios.teammail.TeamMailShareExtension": "tmail.share.ext.development.profile"
|
||||
}
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
@@ -67,7 +38,11 @@ platform :ios do
|
||||
app_store_connect_api_key(
|
||||
key_id: ENV["APPLE_KEY_ID"],
|
||||
issuer_id: ENV["APPLE_ISSUER_ID"],
|
||||
key_filepath: "./apiKey.p8"
|
||||
key_content: ENV["APPLE_KEY_CONTENT"]
|
||||
)
|
||||
sync_code_signing(
|
||||
type: "appstore",
|
||||
git_private_key: ENV["APPLE_CERTIFICATES_SSH_KEY"]
|
||||
)
|
||||
increment_build_number(
|
||||
build_number: latest_testflight_build_number + 1
|
||||
@@ -75,32 +50,11 @@ platform :ios do
|
||||
increment_version_number(
|
||||
version_number: last_git_tag.gsub("v", "")
|
||||
)
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: "Runner.xcodeproj",
|
||||
code_sign_identity: "Apple Distribution"
|
||||
)
|
||||
# Update the provisioning profile for both the main app and extension
|
||||
update_project_provisioning(
|
||||
xcodeproj: "Runner.xcodeproj",
|
||||
profile: "./buildpp.mobileprovision",
|
||||
target_filter: ".*Runner.*"
|
||||
)
|
||||
update_project_provisioning(
|
||||
xcodeproj: "Runner.xcodeproj",
|
||||
profile: "./shareextpp.mobileprovision",
|
||||
target_filter: ".*TeamMailShareExtension.*"
|
||||
)
|
||||
build_app(
|
||||
scheme: "Runner",
|
||||
configuration: "Release",
|
||||
workspace: "Runner.xcworkspace",
|
||||
export_method: "app-store",
|
||||
export_options: {
|
||||
provisioningProfiles: {
|
||||
"com.linagora.ios.teammail": "tmail.distribution.profile",
|
||||
"com.linagora.ios.teammail.TeamMailShareExtension": "tmail.share.ext.distribution.profile"
|
||||
}
|
||||
}
|
||||
export_method: "app-store"
|
||||
)
|
||||
upload_to_testflight(
|
||||
skip_waiting_for_build_processing: true,
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
git_url("git@github.com:linagora/apple-certificates.git")
|
||||
|
||||
storage_mode("git")
|
||||
|
||||
type("development") # The default type, can be: appstore, adhoc, enterprise or development
|
||||
|
||||
app_identifier(["com.linagora.ios.teammail", "com.linagora.ios.teammail.TeamMailShareExtension"])
|
||||
# username("user@fastlane.tools") # Your Apple Developer Portal username
|
||||
|
||||
# For all available options run `fastlane match --help`
|
||||
# Remove the # in the beginning of the line to enable the other options
|
||||
|
||||
# The docs are available on https://docs.fastlane.tools/actions/match
|
||||
@@ -0,0 +1,40 @@
|
||||
fastlane documentation
|
||||
----
|
||||
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```sh
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
||||
|
||||
# Available Actions
|
||||
|
||||
## iOS
|
||||
|
||||
### ios dev
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane ios dev
|
||||
```
|
||||
|
||||
Build development version
|
||||
|
||||
### ios release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane ios release
|
||||
```
|
||||
|
||||
Build and deploy release version
|
||||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
|
||||
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
|
||||
|
||||
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
||||
Reference in New Issue
Block a user