Add test build files
This commit is contained in:
parent
e87ac3da81
commit
5b30cf5bc2
12 changed files with 104 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="in.celest.xash3d.hl"
|
package="in.celest.xash3d.hl"
|
||||||
android:versionCode="0"
|
android:versionCode="0"
|
||||||
android:versionName="0.15pre"
|
android:versionName="0.15"
|
||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
|
|
||||||
<!-- Create a Java class extending SDLActivity and place it in a
|
<!-- Create a Java class extending SDLActivity and place it in a
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
android:windowSoftInputMode="adjustResize"
|
android:windowSoftInputMode="adjustResize"
|
||||||
>
|
>
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name=".LauncherActivity"/>
|
<action android:name="in.celest.xash3d.LauncherActivity"/>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
<!-- Android 2.3 -->
|
<!-- Android 2.3 -->
|
||||||
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="9" />
|
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14" />
|
||||||
|
|
||||||
<!-- OpenGL ES 1.1 -->
|
<!-- OpenGL ES 1.1 -->
|
||||||
<uses-feature android:glEsVersion="0x00010000" />
|
<uses-feature android:glEsVersion="0x00010000" />
|
||||||
|
|
13
build-test.sh
Normal file
13
build-test.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
ANDROID_JAR=../android-13.jar
|
||||||
|
AAPT=./../aapt
|
||||||
|
DX=./../dx
|
||||||
|
APKBUILDER=./../apkbuilder
|
||||||
|
mkdir gen
|
||||||
|
mkdir bin
|
||||||
|
$AAPT package -m -J gen/ --rename-manifest-package in.celest.xash3d.hl -M AndroidManifest.xml -S test/res -I $ANDROID_JAR
|
||||||
|
$JAVA_HOME/bin/javac -d bin/classes -s bin/classes -cp $ANDROID_JAR:libs/com.bda.controller.jar src/org/libsdl/app/SDLActivity.java src/com/beloko/games/hl/NativeLib.java src/com/beloko/touchcontrols/* gen/in/celest/xash3d/hl/R.java src/in/celest/xash3d/*
|
||||||
|
$DX --dex --output=bin/classes.dex bin/classes/ libs/com.bda.controller.jar
|
||||||
|
/mnt/app/apktool/aapt package -f -M test/AndroidManifest.xml -S test/res -I $ANDROID_JAR -F bin/xash3d.apk.unaligned
|
||||||
|
zip bin/xash3d.apk.unaligned assets/*
|
||||||
|
$APKBUILDER bin/xash3d.apk -u -nf libs/ -rj libs -f bin/classes.dex -z bin/xash3d.apk.unaligned
|
||||||
|
java -jar /mnt/app/apktool/signapk.jar /mnt/app/apktool/testkey.x509.pem /mnt/app/apktool/testkey.pk8 bin/xash3d.apk bin/xash3d-signed.apk
|
|
@ -1,8 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<string name="app_name">Half-life</string>
|
<string name="app_name">Xash3D</string>
|
||||||
<string name="launcher_name">Xash3D</string>
|
<string name="launcher_name">Xash3D</string>
|
||||||
|
<string name="launcher_name_test">Xash3D_test</string>
|
||||||
<string-array name="double_tap_actions">
|
<string-array name="double_tap_actions">
|
||||||
<item>None</item>
|
<item>None</item>
|
||||||
<item>Shoot</item>
|
<item>Shoot</item>
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
<string name="hello_world">Hello world!</string>
|
<string name="hello_world">Hello world!</string>
|
||||||
<string name="touch_set">Controls settings</string>
|
<string name="touch_set">Controls settings</string>
|
||||||
<string name="text_shortcut">Xash3D shortcut</string>
|
<string name="text_shortcut">Xash3D shortcut</string>
|
||||||
|
<string name="text_shortcut_test">Xash3D_test shortcut</string>
|
||||||
<string name="shortcut_button_save">Save shortcut</string>
|
<string name="shortcut_button_save">Save shortcut</string>
|
||||||
<string name="gamedir">Mod directory</string>
|
<string name="gamedir">Mod directory</string>
|
||||||
<string name="shortcut_name">Shortcut name</string>
|
<string name="shortcut_name">Shortcut name</string>
|
||||||
|
|
|
@ -71,12 +71,17 @@ public class TouchControlsSettings {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
Button add_rem_button = (Button)dialog.findViewById(R.id.add_remove_button);
|
Button add_rem_button = (Button)dialog.findViewById(R.id.add_remove_button);
|
||||||
|
if(quakeIf != null)
|
||||||
|
{
|
||||||
add_rem_button.setOnClickListener(new OnClickListener() {
|
add_rem_button.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
TouchControlsEditing.show(activity);
|
TouchControlsEditing.show(activity);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
add_rem_button.setEnabled(false);
|
||||||
|
|
||||||
alphaSeek.setProgress(alpha);
|
alphaSeek.setProgress(alpha);
|
||||||
fwdSeek.setProgress(fwdSens);
|
fwdSeek.setProgress(fwdSens);
|
||||||
|
|
76
test/AndroidManifest.xml
Normal file
76
test/AndroidManifest.xml
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
|
||||||
|
com.gamemaker.game
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="in.celest.xash3d.hl.test"
|
||||||
|
android:versionCode="0"
|
||||||
|
android:versionName="0.15pre"
|
||||||
|
android:installLocation="auto">
|
||||||
|
|
||||||
|
<!-- Create a Java class extending SDLActivity and place it in a
|
||||||
|
directory under src matching the package, e.g.
|
||||||
|
src/com/gamemaker/game/MyGame.java
|
||||||
|
|
||||||
|
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
|
||||||
|
in the XML below.
|
||||||
|
|
||||||
|
An example Java class can be found in README-android.txt
|
||||||
|
-->
|
||||||
|
<application android:label="@string/launcher_name_test"
|
||||||
|
android:icon="@drawable/ic_launcher"
|
||||||
|
android:allowBackup="true"
|
||||||
|
|
||||||
|
android:hardwareAccelerated="true">
|
||||||
|
<activity android:name="in.celest.xash3d.LauncherActivity"
|
||||||
|
android:label="@string/launcher_name_test"
|
||||||
|
android:windowSoftInputMode="adjustResize"
|
||||||
|
>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="in.celest.xash3d.LauncherActivity"/>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
<activity android:name="in.celest.xash3d.ShortcutActivity" android:label="@string/text_shortcut_test" android:theme="@android:style/Theme.Dialog">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.CREATE_SHORTCUT" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
<activity android:name="org.libsdl.app.SDLActivity"
|
||||||
|
android:screenOrientation="sensorLandscape"
|
||||||
|
android:configChanges="orientation|screenSize"
|
||||||
|
android:windowSoftInputMode="adjustResize"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:taskAffinity="org.libsdl.app.SDLActivity"
|
||||||
|
>
|
||||||
|
<!--<intent-filter>
|
||||||
|
As user can add now empty shortcut, disable this
|
||||||
|
<action android:name="org.libsdl.app.SDLActivity"/>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>-->
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW"/>
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<data android:mimeType="xash3d.android/game"/>
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
<activity android:name="in.celest.xash3d.XashActivity"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
|
android:label="@string/app_name">
|
||||||
|
</activity>
|
||||||
|
</application>
|
||||||
|
|
||||||
|
<!-- Android 2.3 -->
|
||||||
|
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="9" />
|
||||||
|
|
||||||
|
<!-- OpenGL ES 1.1 -->
|
||||||
|
<uses-feature android:glEsVersion="0x00010000" />
|
||||||
|
|
||||||
|
<!-- Allow writing to external storage -->
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
</manifest>
|
1
test/res/drawable
Symbolic link
1
test/res/drawable
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../res/drawable
|
BIN
test/res/drawable-hdpi/ic_launcher.png
Normal file
BIN
test/res/drawable-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
BIN
test/res/drawable-mdpi/ic_launcher.png
Normal file
BIN
test/res/drawable-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
BIN
test/res/drawable-xhdpi/ic_launcher.png
Normal file
BIN
test/res/drawable-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
1
test/res/layout
Symbolic link
1
test/res/layout
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../res/layout/
|
1
test/res/values
Symbolic link
1
test/res/values
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../res/values/
|
1
test/res/values-ru
Symbolic link
1
test/res/values-ru
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../res/values-ru/
|
Loading…
Add table
Reference in a new issue