Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: ios variants. #525

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions apps/mobile/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ platform :ios do
use_automatic_signing: false,
sdk: "iphoneos*",
path: './ios/RabbyMobile.xcodeproj',
profile_name: opts[:profile_name],
bundle_identifier: "com.debank.rabby-mobile",
profile_name: opts[:type] == 'adhoc' ? 'RabbyMobileAdHocRegression' : 'RabbyMobileAppStore',
bundle_identifier: opts[:type] == 'adhoc' ? 'com.debank.rabby-mobile-regression' : 'com.debank.rabby-mobile',
)

ENV['CONFIGURATION'] = 'release'
ENV['CONFIGURATION'] = opts[:type] == 'adhoc' ? 'Regression' : 'Release'

match(
type: opts[:type],
app_identifier: opts[:type] == 'adhoc' ? 'com.debank.rabby-mobile-regression' : 'com.debank.rabby-mobile',
profile_name: opts[:type] == 'adhoc' ? 'RabbyMobileAdHocRegression' : 'RabbyMobileAppStore',
readonly: true,
shallow_clone: true,
verbose: false,
Expand All @@ -25,12 +28,12 @@ platform :ios do

desc "Release for the iOS adhoc"
lane :adhoc do
prepare_apple_sign(type: 'adhoc', profile_name: "RabbyMobileAdHoc")
prepare_apple_sign(type: 'adhoc', profile_name: "RabbyMobileAdHocRegression")

gym(
scheme: 'RabbyMobile',
scheme: 'RabbyMobileRegression',
workspace: './ios/RabbyMobile.xcworkspace',
configuration: 'Release',
configuration: 'Regression',
output_directory: "./ios/Package/adhoc",
build_path: "./ios/Package/adhoc",
destination: "generic/platform=iOS",
Expand All @@ -44,9 +47,9 @@ platform :ios do
export_options: {
method: 'ad-hoc',
signingStyle: 'manual',
# provisioningProfiles: {
# "com.debank.rabby-mobile": "RabbyMobileAdHoc"
# }
provisioningProfiles: {
"com.debank.rabby-mobile-regression": "RabbyMobileAdHocRegression"
},
manifest: {
appURL: "https://download.rabby.io/downloads/wallet-mobile/ios/rabbymobile.ipa",
displayImageURL: "https://download.rabby.io/downloads/wallet-mobile/ios/[email protected]",
Expand Down Expand Up @@ -80,6 +83,7 @@ platform :ios do
method: "app-store",
signingStyle: 'manual',
provisioningProfiles: {
"com.debank.rabby-mobile-regression": "RabbyMobileAdHocRegression",
"com.debank.rabby-mobile": "RabbyMobileAppStore"
}
})
Expand Down
18 changes: 10 additions & 8 deletions apps/mobile/fastlane/Matchfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
## Pull certificates
# bundle exec fastlane match --readonly
# [CONFIGURATION=development] bundle exec fastlane match --readonly
# CONFIGURATION=release [TYPE=appstore] bundle exec fastlane match --readonly
# CONFIGURATION=release TYPE=adhoc bundle exec fastlane match --readonly
# CONFIGURATION=release [TYPE=adhoc] bundle exec fastlane match --readonly
# CONFIGURATION=release TYPE=appstore bundle exec fastlane match --readonly

## Create, update certificates
# [CONFIGURATION=development] bundle exec fastlane match --readonly
# CONFIGURATION=release [TYPE=appstore] bundle exec fastlane match --readonly
# CONFIGURATION=release TYPE=adhoc bundle exec fastlane match --readonly
# CONFIGURATION=release [TYPE=adhoc] bundle exec fastlane match --readonly
# CONFIGURATION=release TYPE=appstore bundle exec fastlane match --readonly

## self-hosted certificates' storage repo for debank frontend group
## use https:// if basic MATCH_GIT_BASIC_AUTHORIZATION environment variable setup
Expand All @@ -43,6 +43,8 @@ case ENV["CONFIGURATION"]
ENV["CONFIGURATION"] = "release"
when "debug", "dev", "development"
ENV["CONFIGURATION"] = "debug"
when "reg", "regression"
ENV["CONFIGURATION"] = "regression"
else
ENV["CONFIGURATION"] = "debug"
end
Expand All @@ -51,20 +53,20 @@ if ENV["CONFIGURATION"] == "debug"
profile_name = "RabbyMobileDevelopment"
run_type = "development"
app_identifiers = ["com.debank.rabby-mobile-debug"]
elsif ENV["CONFIGURATION"] == "release"
else
if ENV["TYPE"] == nil
ENV["TYPE"] = "adhoc"
end

app_identifiers = ["com.debank.rabby-mobile"]

case ENV["TYPE"]
when "adhoc"
run_type = "adhoc"
profile_name = "RabbyMobileAdHoc"
profile_name = "RabbyMobileAdHocRegression"
app_identifiers = ["com.debank.rabby-mobile-regression"]
when "appstore"
run_type = "appstore"
profile_name = "RabbyMobileAppStore"
app_identifiers = ["com.debank.rabby-mobile"]
else
print("Invalid ENV[\"TYPE\"] value" + ENV["TYPE"])
end
Expand Down
168 changes: 165 additions & 3 deletions apps/mobile/ios/RabbyMobile.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@
5709B34CF0A7D63546082F79 /* Pods-RabbyMobile.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RabbyMobile.release.xcconfig"; path = "Target Support Files/Pods-RabbyMobile/Pods-RabbyMobile.release.xcconfig"; sourceTree = "<group>"; };
5B7EB9410499542E8C5724F5 /* Pods-RabbyMobile-RabbyMobileTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RabbyMobile-RabbyMobileTests.debug.xcconfig"; path = "Target Support Files/Pods-RabbyMobile-RabbyMobileTests/Pods-RabbyMobile-RabbyMobileTests.debug.xcconfig"; sourceTree = "<group>"; };
5B9880A4659D4B78872720D4 /* SF-Pro-Rounded-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "SF-Pro-Rounded-Bold.otf"; path = "../assets/fonts/SF-Pro-Rounded-Bold.otf"; sourceTree = "<group>"; };
6B576D0FC998649BFE6FCB60 /* Pods-RabbyMobile-RabbyMobileTests.regression.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RabbyMobile-RabbyMobileTests.regression.xcconfig"; path = "Target Support Files/Pods-RabbyMobile-RabbyMobileTests/Pods-RabbyMobile-RabbyMobileTests.regression.xcconfig"; sourceTree = "<group>"; };
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RabbyMobile/LaunchScreen.storyboard; sourceTree = "<group>"; };
821CAA7F3D014D818B010EC1 /* vconsole.min.js */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = vconsole.min.js; path = ../assets/custom/vconsole.min.js; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-RabbyMobile-RabbyMobileTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RabbyMobile-RabbyMobileTests.release.xcconfig"; path = "Target Support Files/Pods-RabbyMobile-RabbyMobileTests/Pods-RabbyMobile-RabbyMobileTests.release.xcconfig"; sourceTree = "<group>"; };
A4836FAFC22B499AAA2E435D /* SF-Pro-Rounded-Medium.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "SF-Pro-Rounded-Medium.otf"; path = "../assets/fonts/SF-Pro-Rounded-Medium.otf"; sourceTree = "<group>"; };
A8D4D12C2C7EFDA1002B827D /* RabbyMobile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = RabbyMobile.entitlements; path = RabbyMobile/RabbyMobile.entitlements; sourceTree = "<group>"; };
ACB2DE2C2B72015F00A5516C /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
C6BA4F495157A98E3F4D95B4 /* Pods-RabbyMobile.regression.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RabbyMobile.regression.xcconfig"; path = "Target Support Files/Pods-RabbyMobile/Pods-RabbyMobile.regression.xcconfig"; sourceTree = "<group>"; };
CA3D14902716EB42CC78905B /* Pods_RabbyMobile.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RabbyMobile.framework; sourceTree = BUILT_PRODUCTS_DIR; };
EAEC992AC950B3ACACBDE0F2 /* Pods_RabbyMobile_RabbyMobileTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RabbyMobile_RabbyMobileTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -197,6 +199,8 @@
5709B34CF0A7D63546082F79 /* Pods-RabbyMobile.release.xcconfig */,
5B7EB9410499542E8C5724F5 /* Pods-RabbyMobile-RabbyMobileTests.debug.xcconfig */,
89C6BE57DB24E9ADA2F236DE /* Pods-RabbyMobile-RabbyMobileTests.release.xcconfig */,
C6BA4F495157A98E3F4D95B4 /* Pods-RabbyMobile.regression.xcconfig */,
6B576D0FC998649BFE6FCB60 /* Pods-RabbyMobile-RabbyMobileTests.regression.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand Down Expand Up @@ -592,11 +596,164 @@
};
name = Release;
};
0169DF5C2D1286360098402E /* Regression */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 01C69DD82C2C93CA007C7A6E /* AppConfig.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
DEVELOPMENT_TEAM = ZPNP2SF27Q;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers",
"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
"${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios",
"${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers",
"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios",
);
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
);
LIBRARY_SEARCH_PATHS = (
"\"$(SDKROOT)/usr/lib/swift\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_CFLAGS = "$(inherited)";
OTHER_CPLUSPLUSFLAGS = (
"$(OTHER_CFLAGS)",
"-DFOLLY_NO_CONFIG",
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Regression;
};
0169DF5D2D1286360098402E /* Regression */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C6BA4F495157A98E3F4D95B4 /* Pods-RabbyMobile.regression.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconRegression;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = RabbyMobile/RabbyMobile.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution: DeBank Global Pte. Ltd. (ZPNP2SF27Q)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: DeBank Global Pte. Ltd. (ZPNP2SF27Q)";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ZPNP2SF27Q;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = ZPNP2SF27Q;
INFOPLIST_FILE = RabbyMobile/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Rabby Wallet";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.1.0;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.debank.rabby-mobile-regression";
PRODUCT_NAME = RabbyMobile;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = RabbyMobileAdHocRegression;
RABBY_MOBILE_DISPLAY_NAME = "Reg Wallet";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
VERSIONING_SYSTEM = "apple-generic";
};
name = Regression;
};
0169DF5E2D1286360098402E /* Regression */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 6B576D0FC998649BFE6FCB60 /* Pods-RabbyMobile-RabbyMobileTests.regression.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
INFOPLIST_FILE = RabbyMobileTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
OTHER_LDFLAGS = (
"-ObjC",
"-lc++",
"$(inherited)",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.debank.rabby-mobile-regression";
PRODUCT_NAME = "$(TARGET_NAME)";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = RabbyMobileAdHocRegression;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RabbyMobile.app/RabbyMobile";
};
name = Regression;
};
13B07F941A680F5B00A75B9A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-RabbyMobile.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDebug;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = RabbyMobile/RabbyMobileDebug.entitlements;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand All @@ -621,7 +778,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "com.debank.rabby-mobile-debug";
PRODUCT_NAME = RabbyMobile;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = RabbyMobileDevelopment;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = RabbyMobileDevelopment;
RABBY_MOBILE_DISPLAY_NAME = "Debug Rabby";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
Expand Down Expand Up @@ -662,7 +820,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "com.debank.rabby-mobile";
PRODUCT_NAME = RabbyMobile;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = RabbyMobileAdHoc;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = RabbyMobileAppStore;
RABBY_MOBILE_DISPLAY_NAME = "Rabby Wallet";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
Expand Down Expand Up @@ -855,6 +1014,7 @@
buildConfigurations = (
00E356F61AD99517003FC87E /* Debug */,
00E356F71AD99517003FC87E /* Release */,
0169DF5E2D1286360098402E /* Regression */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
Expand All @@ -864,6 +1024,7 @@
buildConfigurations = (
13B07F941A680F5B00A75B9A /* Debug */,
13B07F951A680F5B00A75B9A /* Release */,
0169DF5D2D1286360098402E /* Regression */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
Expand All @@ -873,6 +1034,7 @@
buildConfigurations = (
83CBBA201A601CBA00E9B192 /* Debug */,
83CBBA211A601CBA00E9B192 /* Release */,
0169DF5C2D1286360098402E /* Regression */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
Expand Down
Loading