Skip to content

Commit

Permalink
added module initializer config
Browse files Browse the repository at this point in the history
  • Loading branch information
rvenky125 committed Apr 17, 2024
1 parent 336619d commit 24b1731
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device-info/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ kotlin {
android {
namespace = "com.famas.kmp_device_info"
compileSdk = 34

sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")

defaultConfig {
minSdk = 21
}
Expand Down
18 changes: 18 additions & 0 deletions device-info/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.famas.kmp_device_info"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<application>
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false">
<meta-data android:name="com.famas.kmp_device_info.ModuleInitializer"
android:value="androidx.startup" />
</provider>
</application>
</manifest>

0 comments on commit 24b1731

Please sign in to comment.