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

[flutter_release] Obfuscation support #30

Open
orkun1675 opened this issue Dec 11, 2024 · 2 comments
Open

[flutter_release] Obfuscation support #30

orkun1675 opened this issue Dec 11, 2024 · 2 comments

Comments

@orkun1675
Copy link

orkun1675 commented Dec 11, 2024

Hello,

I'm trying to integrate with https://github.com/marketplace/actions/flutter-release-action.

We use the --obfuscate --split-debug-info=build/android/ flags when building our flutter appbundle and ipa. Does the flutter_release plugin support passing these flags?

Spefically the flow I'm trying to replicate is:

iOS

  1. flutter build ipa --obfuscate --split-debug-info=build/ios/
  2. Upload build/ios/ipa/$APP_NAME.ipa to Testflight

Android

  1. flutter build appbundle --obfuscate --split-debug-info=build/android/
  2. rm -rf build/app/intermediates/stripped_native_libs/release/stripReleaseDebugSymbols/out/lib/.crashlytics
  3. cd build/app/intermediates/stripped_native_libs/release/stripReleaseDebugSymbols/out/lib/ && zip -r ../../../../../../outputs/bundle/release/symbols.zip . && cd -
  4. firebase crashlytics:symbols:upload --app=$FIREBASE_APP_ID build/android/
  5. Upload build/app/outputs/bundle/release/app-release.aab and build/app/outputs/bundle/release/symbols.zip to Google Play Console
@Gustl22
Copy link
Contributor

Gustl22 commented Dec 11, 2024

One can pass any option like shown in the example
https://github.com/Oberhauser-Dev/dart_packages/blob/main/packages%2Fflutter_release%2FREADME.md#example

--build-arg=--obfuscate --build-arg=--split-debug-info=build/ios/

@Gustl22
Copy link
Contributor

Gustl22 commented Dec 11, 2024

Custom workflows need to be evaluated, e.g. I never released a zip to play console.
I'm glad for any Pull requests, if a broader scope of functionality is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants