Skip to content

Commit bc119b3

Browse files
committed
Register package visibility needs for google maps
1 parent aeb48c2 commit bc119b3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/UnoCore/android/app/src/main/AndroidManifest.xml

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package="@(Activity.Package)">
66

77
#if @(Project.Android.SupportsScreens.Resizable:IsSet) || @(Project.Android.SupportsScreens.SmallScreens:IsSet) || @(Project.Android.SupportsScreens.NormalScreens:IsSet) || @(Project.Android.SupportsScreens.LargeScreens:IsSet) || @(Project.Android.SupportsScreens.XLargeScreens:IsSet) || @(Project.Android.SupportsScreens.AnyDensity:IsSet) || @(Project.Android.SupportsScreens.RequiresSmallestWidthDp:IsSet) || @(Project.Android.SupportsScreens.CompatibleWidthLimitDp:IsSet) || @(Project.Android.SupportsScreens.LargestWidthLimitDp:IsSet)
8-
<supports-screens
8+
<supports-screens
99
#if @(Project.Android.SupportsScreens.Resizable:IsSet)
1010
android:resizeable="@(Project.Android.SupportsScreens.Resizable:ToLower)"
1111
#endif
@@ -35,7 +35,7 @@
3535
#endif
3636
/>
3737
#endif
38-
38+
3939
#if @(Project.Android.SupportsAndroidGo:Test(1, 0))
4040
<uses-feature android:name="android.hardware.ram.low" android:required="true"/>
4141
#endif
@@ -71,6 +71,11 @@
7171
#if @(Project.Android.UsesFeatures.AndroidSoftwareWebview:IsSet)
7272
<uses-feature android:name="android.software.webview" android:required="@(Project.Android.UsesFeatures.AndroidSoftwareWebview:Bool:ToLower)"/>
7373
#endif
74+
#if @(Project.Android.Geo.ApiKey:IsSet)
75+
<queries>
76+
<package android:name="com.google.android.apps.maps" />
77+
</queries>
78+
#endif
7479

7580
@(AndroidManifest.Permission:Join('\n ', '<uses-permission android:name="', '" />'))
7681
@(AndroidManifest.RootElement:Join('\n '))
@@ -143,7 +148,7 @@
143148
#endif
144149
@(AndroidManifest.Activity.ViewIntentFilter:Join('\n ', '<data ', '/>'))
145150
</intent-filter>
146-
151+
147152
#if @(Project.Android.AssociatedDomains:IsSet)
148153
<intent-filter android:autoVerify="true">
149154
<action android:name="android.intent.action.VIEW" />

0 commit comments

Comments
 (0)