7fc3fb4c15
The idea is to have the following version information included: - 1-component save version - 2-component under the hood but the minor component shouldn't ever change again - see currentVersionMajor in GameSave.cpp - 1-component website API version - again, currently 2-component because that's what the website code expects - see apiVersion in requestmanager/Common.cpp - 2-component display version, entirely cosmetic - exposed as meson options display_version_major and display_version_minor - see APP_VERSION in Config.template.h - 1-component business logic version aka build number - exposed as meson option build_num - see APP_VERSION in Config.template.h - variant id aka mod id, tightly coupled with the build number - exposed as meson option mod_id - see MOD_ID in Config.template.h - display and business logic versions repeated for the upstream - exposed as meson options upstream_version_major, upstream_version_minor, and upstream_build_num - we'll have to update these alongside display_version_major, display_version_minor, and build_num, but mod owners can just merge our changes - see UPSTREAM_VERSION in Config.template.h - update channel, makes sense in the context of the variant (and yes, this would later enable mod snapshots) - currently not exposed as a meson option but derived from meson options snapshot and mod_id - see IDENT_RELTYPE in Config.template.h - vcs tag aka git commit hash - set by build.sh in ghactions workflows - see VCS_TAG in VcsTag.tempalte.h Rather importantly, the save and website API versions are now allowed to change independently of the display version. These changes also allowed me to remove the ugly sed hacks in build.sh used to provision some manifest files; they are now provisioned by meson. Also add version info for windows and android.
70 lines
2.0 KiB
XML
70 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="@APPID@"
|
|
android:versionCode="@BUILD_NUM@"
|
|
android:versionName="@DISPLAY_VERSION_MAJOR@.@DISPLAY_VERSION_MINOR@.@BUILD_NUM@"
|
|
android:installLocation="auto"
|
|
>
|
|
<uses-sdk
|
|
android:minSdkVersion="21"
|
|
android:targetSdkVersion="30"
|
|
/>
|
|
<uses-feature
|
|
android:glEsVersion="0x00020000"
|
|
/>
|
|
<uses-feature
|
|
android:name="android.hardware.touchscreen"
|
|
android:required="false"
|
|
/>
|
|
<uses-feature
|
|
android:name="android.hardware.bluetooth"
|
|
android:required="false"
|
|
/>
|
|
<uses-feature
|
|
android:name="android.hardware.gamepad"
|
|
android:required="false"
|
|
/>
|
|
<uses-feature
|
|
android:name="android.hardware.usb.host"
|
|
android:required="false"
|
|
/>
|
|
<uses-feature
|
|
android:name="android.hardware.type.pc"
|
|
android:required="false"
|
|
/>
|
|
@ANDROID_PERMISSIONS@
|
|
<application
|
|
android:label="@string/app_name"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:allowBackup="true"
|
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
|
android:hardwareAccelerated="true"
|
|
@ANDROID_PROPERTIES@
|
|
>
|
|
<activity
|
|
android:name=".PowderActivity"
|
|
android:screenOrientation="landscape"
|
|
android:label="@string/app_name"
|
|
android:alwaysRetainTaskState="true"
|
|
android:launchMode="singleInstance"
|
|
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
|
|
android:preferMinimalPostProcessing="true"
|
|
android:exported="true"
|
|
>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
<!-- <intent-filter>
|
|
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter> -->
|
|
</activity>
|
|
</application>
|
|
</manifest>
|