'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information:
https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="
@Integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
'Edit for Android 9
'***********************************************************
AddApplicationText(
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
)
'***********************************************************
'To Connect to non https sites
CreateResourceFromFile(Macro, Core.NetworkClearText)
'For google play billing
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)
'To get advertising ID
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
'=============================================================
'Fused Location Provider
'*************************************************************
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.ACCESS_COARSE_LOCATION)
AddApplicationText(<meta-data
android:name="com.google.android.gms.version"
android:value="
@Integer/google_play_services_version" />)
'*************************************************************
'Light theme
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values-v20, theme.xml,
<resources>
<style
name="LightTheme" parent="@android:style/Theme.Material.Light">
</style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
<style
name="LightTheme" parent="@android:style/Theme.Holo.Light">
</style>
</resources>
)