AddManifestText(
<uses-sdk android:minSdkVersion="23" 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.
'SetApplicationAttribute(android:requestLegacyExternalStorage, true)
SetManifestAttribute(android:installLocation, auto)
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)
'************ 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) ************
'************ FileProvider ************
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
'************ FileProvider (end) ************
'******Features and Permissions************
AddPermission(android.permission.ACCESS_FINE_LOCATION) ' Allows an app to access precise location from location sources such as GPS, cell towers, and Wi-Fi.
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS) ' Allows an application to modify global audio settings.
AddPermission(android.permission.INTERNET) ' Allows applications to open network sockets.
AddPermission(android.permission.FOREGROUND_SERVICE)
'******Features and Permissions (end)************
AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.location" android:required="false" />)
AddManifestText(<uses-feature android:name="android.hardware.location.gps" android:required="false" />)
AddPermission(android.permission.FOREGROUND_SERVICE)