Skip to content

Commit d8d4d0b

Browse files
nattb8claude
andcommitted
chore(audience-sample): declare install referrer dependency in gradle template
The sample no longer gets the Install Referrer Library from a bundled AAR, and it doesn't use EDM4U, so it declares the Maven dependency manually in mainTemplate.gradle - the documented fallback path. Verified the resulting App Bundle includes the installreferrer classes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a11ac31 commit d8d4d0b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

examples/audience/Assets/Plugins/Android/mainTemplate.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ apply plugin: 'com.android.library'
2222
dependencies {
2323
implementation fileTree(dir: 'libs', include: ['*.jar'])
2424
**DEPS**
25+
// Google Play Install Referrer Library. The Audience package no longer
26+
// bundles this as an .aar (it conflicted with other SDKs); it's resolved
27+
// from Maven instead. Projects using EDM4U get it automatically from the
28+
// package's ImmutableAudienceDependencies.xml - this sample has no EDM4U,
29+
// so it declares the dependency manually (the documented fallback).
30+
implementation 'com.android.installreferrer:installreferrer:2.2'
31+
2532
// Uncomment to enable GAID collection (requires AUDIENCE_MOBILE_ATTRIBUTION
2633
// scripting define + AudienceConfig.EnableMobileAttribution). Without this
2734
// line the SDK still builds and runs, but `gaid` / `gaidLimitAdTracking`

0 commit comments

Comments
 (0)