newrelic / newrelic-flutter-agent

New Relic agent SDK for Flutter hybrid mobile apps
Apache License 2.0
6 stars 12 forks source link

Ability to set custom build id in gradle files #123

Open SilentCatD opened 3 days ago

SilentCatD commented 3 days ago

Hello, while generating new BUILD_ID in android side has its uses, it also causes changing .dex file in native android code. This makes integration with code push (shorebird) not suitable for android.

I would like to ask if we have any other way working around this, like set the BUILD_ID to specific value in some gradle files

ndesai-newrelic commented 3 days ago

@SilentCatD this is not possible right now. we understand your issue . can you file Feature request for this with newrelic support team.

SilentCatD commented 3 days ago

Sure, thank you for the support

Nguyen-Ngoc-Phuoc commented 2 days ago
image

I'm reading VarientAdapter.groovy file inside newrelic-android-agent If I understood it right, it also read value from the file .metadata to set buildId before falling back to uuid.

Can we create that file beforehand then run the build? If so, what value format should it be? Do you happen to know about this @ndesai-newrelic

SilentCatD commented 1 day ago

I created a PR https://github.com/newrelic/newrelic-android-agent/pull/304