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

IOS-7955 DEX Protector #4108

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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
34 changes: 34 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,40 @@ lane :refresh_dsyms do |options|
clean_build_artifacts
end

lane :dev do |options|
build_development(
scheme: PRODUCTION_SCHEME,
export_method: "development"
)
end

lane :dex do |options|
ipa_output_path = "builds/" + PRODUCTION_SCHEME + ".ipa"
protected_ipa_path = "builds/" + PRODUCTION_SCHEME + "-protected.ipa"

sh("java -cp #{ENV["DEX_PROTECTOR_HOME"]}/dexprotector.jar com.licel.dexprotector.ios.ConsoleTask \
-configFile dex-debug-config.xml \
#{ipa_output_path} \
#{protected_ipa_path}")
end

private_lane :build_development do |options|
app_identifier = "com.tangem.Tangem" # Setting the app identifier directly for development
build_app(
xcargs: "-allowProvisioningUpdates",
output_directory: BUILD_PATH,
output_name: options[:scheme],
scheme: options[:scheme],
clean: true,
silent: false,
export_method: "development", # Set to development for a development build
export_options: {
distributionBundleIdentifier: app_identifier,
iCloudContainerEnvironment: "Development" # Set the environment to Development
}
)
end

private_lane :build do |options|
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
build_app(
Expand Down
16 changes: 16 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ Options:
- build: build number


### dev

```sh
[bundle exec] fastlane dev
```



### dex

```sh
[bundle exec] fastlane dex
```



----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
Expand Down
35 changes: 35 additions & 0 deletions fastlane/dex-debug-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<dexprotector>
<verbose>true</verbose>
<optimize>true</optimize>
<signMode>debug</signMode>
<certificate>B2343D5A8E5E7D38A7277F256E660FF9F6DEE5BD</certificate>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Сюда для Development сборок каждому нужно подставлять свой Certificate ID, спросил как лучше сделать у разработв в чате

<stringEncryption mode="all"/>
<classEncryption mode="all"/>
<resourceEncryption mode="all">
<assets mode="all">
<filters>
<filter><![CDATA[config_alpha.json]]></filter>
<filter><![CDATA[config_beta.json]]></filter>
<filter><![CDATA[config_dev.json]]></filter>
<filter><![CDATA[config_prod.json]]></filter>
<filter><![CDATA[issuers.json]]></filter>
<filter><![CDATA[providers_order.json]]></filter>
<filter><![CDATA[visa.json]]></filter>
<filter><![CDATA[visaTestnet.json]]></filter>
<filter><![CDATA[visa_config.json]]></filter>
<filter><![CDATA[GoogleService-Info-Alpha.plist]]></filter>
<filter><![CDATA[GoogleService-Info-Beta.plist]]></filter>
<filter><![CDATA[GoogleService-Info-Production.plist]]></filter>
</filters>
</assets>
</resourceEncryption>
<antiDebug>false</antiDebug>
<antiEmulator>true</antiEmulator>
<antiManualInstall>false</antiManualInstall>
<runtimeChecks>
<paranoidMode>true</paranoidMode>
</runtimeChecks>
<uiProtection/>
<ios checkBCSymbolMap="on" generateEnvironmentChecksFramework="off" mode="all" objcUtilClass="on" protectSimulator="off" saveTemps="off" stripBitcode="on" swiftEnvCheckMode="off" trace="0"/>
</dexprotector>