diff --git a/ChangeAppSettings.sh b/ChangeAppSettings.sh index 636ab1f70..25502caef 100755 --- a/ChangeAppSettings.sh +++ b/ChangeAppSettings.sh @@ -826,6 +826,7 @@ for LIB in freetype intl jpeg png lua mad stlport tremor xerces xml2; do done done rm -rf project/bin/classes +rm -rf project/bin/res mkdir -p project/assets rm -f project/assets/* diff --git a/project/build.xml b/project/build.xml index d8aab5df5..4073e11ef 100644 --- a/project/build.xml +++ b/project/build.xml @@ -1,67 +1,85 @@ - + - + It contains the path to the SDK. It should *NOT* be checked into + Version Control Systems. --> + - - + - - + - - - - - - - + This contains project specific properties such as project target, and library + dependencies. Lower level build properties are stored in ant.properties + (or in .classpath for Eclipse projects). - + This file is an integral part of the build system for your + application and should be checked into Version Control Systems. --> + - + - The rules file is imported from - /platforms//templates/android_rules.xml - To customize some build steps for your project: - - copy the content of the main node from android_rules.xml - - paste it in this build.xml below the task. - - disable the import by changing the setup task below to + + + + - + + diff --git a/project/default.properties b/project/default.properties deleted file mode 100644 index 0cdab9561..000000000 --- a/project/default.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-12 diff --git a/project/java/MainActivity.java b/project/java/MainActivity.java index a21e5b059..dfdb08ad8 100644 --- a/project/java/MainActivity.java +++ b/project/java/MainActivity.java @@ -393,9 +393,12 @@ public class MainActivity extends Activity { @Override public boolean dispatchGenericMotionEvent (MotionEvent ev) { + // This code fails to run for Android 1.6, so there will be no generic motion event for Andorid screen keyboard + /* if(_screenKeyboard != null) _screenKeyboard.dispatchGenericMotionEvent(ev); else + */ if(mGLView != null) mGLView.onGenericMotionEvent(ev); return true; diff --git a/project/jni/application/openttd/AndroidAppSettings.cfg b/project/jni/application/openttd/AndroidAppSettings.cfg index e6e8548df..34345e902 100644 --- a/project/jni/application/openttd/AndroidAppSettings.cfg +++ b/project/jni/application/openttd/AndroidAppSettings.cfg @@ -31,8 +31,8 @@ StartupMenuButtonTimeout=3000 HiddenMenuOptions='KeyboardConfigMainMenu AudioConfig' FirstStartMenuOptions='' MultiABI=n -AppVersionCode=11314 -AppVersionName="1.1.3.14" +AppVersionCode=11315 +AppVersionName="1.1.3.15" CompiledLibraries="jpeg png freetype timidity lzma lzo2" CustomBuildScript=y AppCflags='' diff --git a/project/jni/application/openttd/openttd-trunk-android.patch b/project/jni/application/openttd/openttd-trunk-android.patch index b52f6e146..9de3c289b 100644 --- a/project/jni/application/openttd/openttd-trunk-android.patch +++ b/project/jni/application/openttd/openttd-trunk-android.patch @@ -1,6 +1,6 @@ Index: src/video/sdl_v.cpp =================================================================== ---- src/video/sdl_v.cpp (revision 22532) +--- src/video/sdl_v.cpp (revision 23014) +++ src/video/sdl_v.cpp (working copy) @@ -353,6 +353,8 @@ if (sym->scancode == 49) key = WKC_BACKSPACE; @@ -23,7 +23,7 @@ Index: src/video/sdl_v.cpp } Index: src/sound/sdl_s.cpp =================================================================== ---- src/sound/sdl_s.cpp (revision 22532) +--- src/sound/sdl_s.cpp (revision 23014) +++ src/sound/sdl_s.cpp (working copy) @@ -20,9 +20,16 @@ @@ -44,7 +44,7 @@ Index: src/sound/sdl_s.cpp const char *SoundDriver_SDL::Start(const char * const *parm) Index: src/music/libtimidity.cpp =================================================================== ---- src/music/libtimidity.cpp (revision 22532) +--- src/music/libtimidity.cpp (revision 23014) +++ src/music/libtimidity.cpp (working copy) @@ -22,10 +22,13 @@ #include @@ -87,7 +87,7 @@ Index: src/music/libtimidity.cpp Index: src/table/settings.h =================================================================== ---- src/table/settings.h (revision 22532) +--- src/table/settings.h (revision 23014) +++ src/table/settings.h (working copy) @@ -270,9 +270,15 @@ SDTG_STR("savegame_format", SLE_STRB, S, 0, _savegame_format, NULL, STR_NULL, NULL), @@ -107,7 +107,7 @@ Index: src/table/settings.h SDTG_VAR("large_size", SLE_UINT, S, 0, _freetype.large_size, 16, 0, 72, 0, STR_NULL, NULL), Index: src/os/unix/unix.cpp =================================================================== ---- src/os/unix/unix.cpp (revision 22532) +--- src/os/unix/unix.cpp (revision 23014) +++ src/os/unix/unix.cpp (working copy) @@ -24,7 +24,7 @@ @@ -132,7 +132,7 @@ Index: src/os/unix/unix.cpp int ret; Index: src/os/unix/crashlog_unix.cpp =================================================================== ---- src/os/unix/crashlog_unix.cpp (revision 22532) +--- src/os/unix/crashlog_unix.cpp (revision 23014) +++ src/os/unix/crashlog_unix.cpp (working copy) @@ -141,7 +141,11 @@ }; @@ -148,9 +148,9 @@ Index: src/os/unix/crashlog_unix.cpp * Entry point for the crash handler. Index: src/window.cpp =================================================================== ---- src/window.cpp (revision 22532) +--- src/window.cpp (revision 23014) +++ src/window.cpp (working copy) -@@ -2159,6 +2159,10 @@ +@@ -2160,6 +2160,10 @@ * But there is no company related window open anyway, so _current_company is not used. */ assert(IsGeneratingWorld() || IsLocalCompany()); @@ -163,7 +163,7 @@ Index: src/window.cpp Index: src/network/core/os_abstraction.h =================================================================== ---- src/network/core/os_abstraction.h (revision 22532) +--- src/network/core/os_abstraction.h (revision 23014) +++ src/network/core/os_abstraction.h (working copy) @@ -161,7 +161,7 @@ # include @@ -176,7 +176,7 @@ Index: src/network/core/os_abstraction.h * the list of IPs from the system. */ Index: src/debug.cpp =================================================================== ---- src/debug.cpp (revision 22532) +--- src/debug.cpp (revision 23014) +++ src/debug.cpp (working copy) @@ -16,6 +16,9 @@ #include "string_func.h" @@ -200,9 +200,9 @@ Index: src/debug.cpp char buf2[1024 + 32]; Index: src/main_gui.cpp =================================================================== ---- src/main_gui.cpp (revision 22532) +--- src/main_gui.cpp (revision 23014) +++ src/main_gui.cpp (working copy) -@@ -462,7 +462,11 @@ +@@ -460,7 +460,11 @@ Hotkey('C', "center", GHK_CENTER), Hotkey('Z', "center_zoom", GHK_CENTER_ZOOM), Hotkey(WKC_ESC, "reset_object_to_place", GHK_RESET_OBJECT_TO_PLACE), @@ -214,3 +214,15 @@ Index: src/main_gui.cpp Hotkey(WKC_DELETE | WKC_SHIFT, "delete_all_windows", GHK_DELETE_NONVITAL_WINDOWS), Hotkey('R' | WKC_CTRL, "refresh_screen", GHK_REFRESH_SCREEN), #if defined(_DEBUG) +Index: findversion.sh +=================================================================== +--- findversion.sh (revision 23014) ++++ findversion.sh (working copy) +@@ -134,6 +134,7 @@ + REV_NR="" + fi + ++MODIFIED="0" # This prevents Andorid build from connecting to a public servers + if [ "$MODIFIED" -eq "2" ]; then + REV="${REV}M" + fi diff --git a/project/jni/application/prefclub/AndroidAppSettings.cfg b/project/jni/application/prefclub/AndroidAppSettings.cfg index 46edf01d9..c99e1f0b9 100644 --- a/project/jni/application/prefclub/AndroidAppSettings.cfg +++ b/project/jni/application/prefclub/AndroidAppSettings.cfg @@ -31,8 +31,8 @@ StartupMenuButtonTimeout=3000 HiddenMenuOptions='OptionalDownloadConfig' FirstStartMenuOptions='' MultiABI=n -AppVersionCode=07403 -AppVersionName="0.74.03" +AppVersionCode=07404 +AppVersionName="0.74.04" CompiledLibraries="jpeg png sdl_mixer sdl_net sdl_sound" CustomBuildScript=y AppCflags='' diff --git a/project/jni/application/src b/project/jni/application/src index 74593ead2..550b7b622 120000 --- a/project/jni/application/src +++ b/project/jni/application/src @@ -1 +1 @@ -regression \ No newline at end of file +openttd \ No newline at end of file diff --git a/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c b/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c index 3144b060a..30070d6f6 100644 --- a/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c +++ b/project/jni/sdl-1.2/src/video/android/SDL_androidvideo-1.2.c @@ -115,7 +115,7 @@ int ANDROID_ToggleFullScreen(_THIS, int fullscreen) return 1; } -#define SDL_NUMMODES 12 +#define SDL_NUMMODES 13 static SDL_Rect *SDL_modelist[SDL_NUMMODES+1]; //#define SDL_modelist (this->hidden->SDL_modelist) @@ -278,7 +278,8 @@ int ANDROID_VideoInit(_THIS, SDL_PixelFormat *vformat) SDL_modelist[9]->w = 480; SDL_modelist[9]->h = 320; // Virtual wide-screen mode SDL_modelist[10]->w = 800; SDL_modelist[10]->h = 480; // Virtual wide-screen mode SDL_modelist[11]->w = 544; SDL_modelist[11]->h = 332; // I have no idea where this videomode is used - SDL_modelist[12] = NULL; + SDL_modelist[12]->w = 640; SDL_modelist[12]->h = 350; // For PrefClub app + SDL_modelist[13] = NULL; SDL_VideoInit_1_3(NULL, 0);