Compare commits

...

4 Commits

Author SHA1 Message Date
Deve
e840b15cda Small fixes in android build script 2023-09-30 10:33:18 +02:00
Benau
be58e76f41 Update android to target sdk 33 2023-09-30 09:35:56 +02:00
Benau
bea5b530a5 Create 1.4 release 2022-10-31 15:27:59 +08:00
Benau
9b866b901c Update replay files version 2022-10-31 15:26:56 +08:00
35 changed files with 46 additions and 52 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.4)
# root CMakeLists for the SuperTuxKart project
project(SuperTuxKart)
set(PROJECT_VERSION "git")
set(PROJECT_VERSION "1.4")
add_definitions( -DSUPERTUXKART_VERSION="${PROJECT_VERSION}" )

View File

@ -1,8 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.supertuxkart.stk_dbg"
android:versionCode="1"
android:versionName="git"
android:installLocation="auto">
<application android:label="@string/app_name"
@ -18,7 +15,8 @@
android:label="@string/app_name"
android:launchMode="singleTask"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|uiMode"
android:screenOrientation="sensorLandscape">
android:screenOrientation="sensorLandscape"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -11,7 +11,7 @@ buildscript
// 4.1.2 is the minimum version to support native debug symbols file
// https://developer.android.com/studio/build/shrink-code#android_gradle_plugin_version_41_or_later
// 7.0.0 to fix https://stackoverflow.com/questions/68387270/android-studio-error-installed-build-tools-revision-31-0-0-is-corrupted
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.android.tools.build:gradle:7.3.0'
}
}
@ -28,6 +28,8 @@ apply plugin: 'com.android.application'
android
{
// Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
namespace project.getProperty('package_name')
// buildToolsVersion is no longer needed https://developer.android.com/studio/releases/gradle-plugin.html#behavior_changes_1
// Quote:
// Build Tools 27.0.3 or higher. Keep in mind, you no longer need to specify a version for the build tools using the android.buildToolsVersion propertythe plugin uses the minimum required version by default.
@ -43,6 +45,8 @@ android
defaultConfig
{
versionCode project.getProperty('version_code').toInteger()
versionName project.getProperty('version_name')
minSdkVersion min_sdk_version.toInteger()
targetSdkVersion target_sdk_version.toInteger()
externalNativeBuild

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip

View File

@ -20,7 +20,7 @@ if [ -z "$STK_MIN_ANDROID_SDK" ]; then
fi
if [ -z "$STK_TARGET_ANDROID_SDK" ]; then
export STK_TARGET_ANDROID_SDK=30
export STK_TARGET_ANDROID_SDK=33
fi
if [ -z "$STK_NDK_VERSION" ]; then
@ -313,7 +313,7 @@ create_translation()
CUR_LANG=$(basename -- "$PO" | cut -f 1 -d '.')
# Skip english po file
if [ "$CUR_LANG" = "en" ]; then
continue
return
fi
# Fix some difference in language code
if [ "$CUR_LANG" = "he" ]; then
@ -369,9 +369,6 @@ echo " <background android:drawable=\"@drawable/icon_bg\" />" >> "$ADAP
echo " <foreground android:drawable=\"@drawable/icon_fg\" />" >> "$ADAPTIVE_ICON_FILE"
echo "</adaptive-icon>" >> "$ADAPTIVE_ICON_FILE"
sed -i "s/package=\".*\"/package=\"$PACKAGE_NAME\"/g" \
"$DIRNAME/AndroidManifest.xml"
sed -i "s/package org.supertuxkart.*/package $PACKAGE_NAME;/g" \
"$DIRNAME/src/main/java/STKEditText.java"
@ -390,12 +387,6 @@ sed -i "s/package org.supertuxkart.*/package $PACKAGE_NAME;/g" \
sed -i "s/import org.supertuxkart.*/import $PACKAGE_NAME.STKEditText;/g" \
"$DIRNAME/src/main/java/SuperTuxKartActivity.java"
sed -i "s/versionName=\".*\"/versionName=\"$PROJECT_VERSION\"/g" \
"$DIRNAME/AndroidManifest.xml"
sed -i "s/versionCode=\".*\"/versionCode=\"$PROJECT_CODE\"/g" \
"$DIRNAME/AndroidManifest.xml"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/HIDDevice.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java" \
@ -439,11 +430,6 @@ convert -scale 216x216 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-xhdpi/icon
convert -scale 324x324 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-xxhdpi/icon_fg.png"
convert -scale 432x432 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-xxxhdpi/icon_fg.png"
if [ -f "/usr/lib/jvm/java-8-openjdk-amd64/bin/java" ]; then
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH=$JAVA_HOME/bin:$PATH
fi
export ANDROID_HOME="$SDK_PATH"
./gradlew -Pcompile_sdk_version="$COMPILE_SDK_VERSION" \
-Pmin_sdk_version="$STK_MIN_ANDROID_SDK" \
@ -454,6 +440,9 @@ export ANDROID_HOME="$SDK_PATH"
-Pndk_version="$STK_NDK_VERSION" \
-Pcompile_arch="$COMPILE_ARCH" \
-Pcpu_core="$CPU_CORE" \
-Ppackage_name="$PACKAGE_NAME" \
-Pversion_name="$PROJECT_VERSION" \
-Pversion_code="$PROJECT_CODE" \
$GRADLE_BUILD_TYPE
if [ "$GRADLE_BUILD_TYPE" = "assembleRelease" ]; then
@ -466,6 +455,9 @@ if [ "$GRADLE_BUILD_TYPE" = "assembleRelease" ]; then
-Pndk_version="$STK_NDK_VERSION" \
-Pcompile_arch="$COMPILE_ARCH" \
-Pcpu_core="$CPU_CORE" \
-Ppackage_name="$PACKAGE_NAME" \
-Pversion_name="$PROJECT_VERSION" \
-Pversion_code="$PROJECT_CODE" \
"bundleRelease"
fi

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: suzanne Suzanne
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: suzanne Suzanne
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: suzanne Suzanne
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: suzanne Suzanne
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: tux &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: sara_the_wizard &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: xue &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: beastie &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: gavroche &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: beastie &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: sara_the_racer &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: emule &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: amanda &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: adiumy &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: tux &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: suzanne &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: hexley &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: kiki &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: pidgin &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: suzanne &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: hexley &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: kiki &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: pidgin &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: puffy &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: konqi &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: nolok &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: wilber &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: tux &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end

View File

@ -1,5 +1,5 @@
version: 4
stk_version: 0.10.0
stk_version: 1.4
kart: gavroche &#x2606;&#x2605;STK&#x2605;&#x2606;
kart_color: 0.000000
kart_list_end