Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Android 12+ support #299

Open
santaCruz1854789 opened this issue May 5, 2022 · 3 comments
Open

Android 12+ support #299

santaCruz1854789 opened this issue May 5, 2022 · 3 comments

Comments

@santaCruz1854789
Copy link

Good evening,
when I set the compileSdkVersion to 31 in my gradle.build file the building process starts to act up.
Since "Apps targeting Android 12 and higher are required to specify an explicit value for android:exported" it tells me "Manifest merger failed : android:exported needs to be explicitly specified for element <service#com.aware.utils.Aware_Accounts>" and also "android:exported needs to be explicitly specified for element <service#com.aware.utils.Aware_Accounts>.", those are lines I was not able to find in the AndroidManifest.xml file and thus led me to believe that they were in the source code (i.e. out of my reach), is that correct?
If so, will you change the code to specify exported/give us a way to do so?

Thank you very much.

@santaCruz1854789
Copy link
Author

santaCruz1854789 commented Apr 7, 2023

Good morning mister @denzilferreira could you please look into this request?
I manually found the problem right here: https://github.com/denzilferreira/aware-client/blob/master/aware-core/src/main/AndroidManifest.xml at line 44.
I'm getting back to you right now because it's giving me failures when I'm trying to build it.

With the latest build it's now a necessity to specify exported for this service (and I suppose the other ones as well).
The docs: https://developer.android.com/guide/topics/manifest/activity-element#exported

@denzilferreira
Copy link
Owner

What the error is saying is that those values are not explicitly set. You can add them to AndroidManifest.xml on your app (copy the item you want to override to your app manifest and when it merges, it uses your version).

@santaCruz1854789
Copy link
Author

Yeah, I ended up doing just that.
I was meaning to fork your code and do a pull request, just letting you know.

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

No branches or pull requests

2 participants