I'm working on an SDK that uses an internal ContentProvider, I would like to use this SDK in a few projects, and declare it in the library manifest, so I've tried this:
<provider
android:name=".core.MyContentProvider"
android:authorities="${applicationId}"
android:exported="false"/>
What happens is the ${applicationId} is replaced with the packageName of the library and not the top apk related applicationId...
Is there a way to make sure that the launching applicationId would be placed in the android:authorities value?
Was running into the same problem with several different variants and unique IDs, and ended up going with replacing a placeholder key when Gradle is building the app, kind of like so:
Gradle 3+
Gradle < 3
And then in the manifest:
That's come in handy quite a few times