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

Add task dependency to adapt Android App Bundle #707

Merged
merged 1 commit into from Jul 22, 2019
Merged

Add task dependency to adapt Android App Bundle #707

merged 1 commit into from Jul 22, 2019

Conversation

@chibatching
Copy link

@chibatching chibatching commented May 3, 2019

When we create App Bundle, sentry-debug-meta.properties aren't included in aab.
So, I added task dependency to run persisting proguard uuid before packaging aab bundles.

@chibatching chibatching changed the title Add task dependency to adapt App Bundle Add task dependency to adapt Android App Bundle Jun 19, 2019
@ninniuz
Copy link

@ninniuz ninniuz commented Jul 20, 2019

@chibatching I can see the sentry-debug-meta.properties file in my aab file and in the generated apks, on AGP 3.4.2 and Sentry 1.7.24.

Are you sure this is still needed?

Loading

@chibatching
Copy link
Author

@chibatching chibatching commented Jul 20, 2019

I'm still having this issue with Sentry 1.7.24 and both AGP 3.4.2 and 3.5-rc01.

First, I tried ./gradlew clean app:bundleRelease, sentry-debug-meta.properties is not included in aab.
Second, I tried just ./gradlew app:bundleRelease after first try, sentry-debug-meta.properties is successfully included.

The cause seems like the order of tasks bundlePreRelease and persistSentryProguardUuidsForReleaseRelease is not guaranteed.

Loading

@ninniuz
Copy link

@ninniuz ninniuz commented Jul 22, 2019

Ok I see what you mean. Since we are either saying that:

  • persistSentryProguardUuids task should be run before the dex task and after the proguard task, finalizing it (that means proguard -> persistSentryProguardUuids -> dex)
  • OR persistSentryProguardUuids should run after proguard task and finalize it
    then if the dex task is not run (as it appears to be with app bundled) we will get sentry-debug-meta.properties included only if the task completes before the bundle is packaged.

Loading

@bruno-garcia bruno-garcia self-requested a review Jul 22, 2019
@bruno-garcia bruno-garcia merged commit e41ced3 into getsentry:master Jul 22, 2019
19 checks passed
Loading
@bruno-garcia
Copy link
Member

@bruno-garcia bruno-garcia commented Jul 22, 2019

Thanks @chibatching, @ninniuz !

Loading

@chibatching chibatching deleted the add_task_dependency_for_app_bundle branch Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants