Kaydet (Commit) b7777dbf authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Rename the package and .apk of the "desktop" test app to avoid confusion

It used the same package name as DocumentLoader and the same .apk name as the
eary sc cppunit test app. Probably having two unrelated apps with the same
package name causes some confusion somewhere.

Change-Id: I11414b9cd59694eb97d39bfaeac4ed1066ae3aab
üst b02c075a
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.libreoffice.android.examples" package="org.libreoffice.experimental.desktop"
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
<uses-sdk android:minSdkVersion="9" <uses-sdk android:minSdkVersion="9"
android:targetSdkVersion="14"/> android:targetSdkVersion="14"/>
<application android:label="LO Desktop App" <application android:label="LibreOffice Desktop"
android:debuggable="true" android:debuggable="true"
android:largeHeap="true" android:largeHeap="true"
android:hardwareAccelerated="true"> android:hardwareAccelerated="true">
<activity android:name=".LODesktop" <activity android:name=".Desktop"
android:label="LO Desktop App" android:label="LibreOffice Desktop"
android:configChanges="keyboardHidden"> android:configChanges="keyboardHidden">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
......
...@@ -4,7 +4,7 @@ include ../../../config_host.mk ...@@ -4,7 +4,7 @@ include ../../../config_host.mk
all: build-ant all: build-ant
# The package of this app # The package of this app
APP_PACKAGE=org.libreoffice.android.examples APP_PACKAGE=org.libreoffice.experimental.desktop
BOOTSTRAPDIR=../../Bootstrap BOOTSTRAPDIR=../../Bootstrap
include $(BOOTSTRAPDIR)/Makefile.shared include $(BOOTSTRAPDIR)/Makefile.shared
...@@ -18,12 +18,8 @@ copy-stuff: ...@@ -18,12 +18,8 @@ copy-stuff:
# Then "assets". Let the directory structure under assets mimic # Then "assets". Let the directory structure under assets mimic
# that under solver for now. # that under solver for now.
# #
# Please note that I have no idea what all of this is really necessary and for # Please note that some of thses files being set up to be present in
# much of this stuff being copied, no idea whether it makes any sense at all. # the .apk and/or unpacked at install time might be unnecessary.
# Much of this is copy-pasted from android/qa/sc/Makefile (where a couple of
# unit tests for sc are built, and those do seem to mostly work) and
# android/qa/desktop/Makefile (mmeeks's desktop demo, also works to some
# extent).
# #
mkdir -p assets/gz.unpack/program/ure assets/lib assets/program assets/xml/ure assets/ComponentTarget/i18npool/util mkdir -p assets/gz.unpack/program/ure assets/lib assets/program assets/xml/ure assets/ComponentTarget/i18npool/util
gzip -9 <$(OUTDIR)/bin/offapi.rdb >assets/gz.unpack/program/offapi.rdb gzip -9 <$(OUTDIR)/bin/offapi.rdb >assets/gz.unpack/program/offapi.rdb
...@@ -160,5 +156,4 @@ build-ant: android_version_setup copy-stuff link-so properties setup-jars ...@@ -160,5 +156,4 @@ build-ant: android_version_setup copy-stuff link-so properties setup-jars
unset JAVA_HOME && $(ANT) debug unset JAVA_HOME && $(ANT) debug
run: run:
$(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n org.libreoffice.android.examples/.LODesktop -e input /asset/test1.odt $(ANDROID_SDK_HOME)/platform-tools/adb shell am start -n $(APP_PACKAGE)/.Desktop
# -e lo-main-delay 20 -e lo-strace yes
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project name="LibreOfficeQA-SC" default="help"> <project name="LibreOfficeExperimentalDesktop" default="help">
<!-- The local.properties file is created and updated by the 'android' tool. <!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into It contains the path to the SDK. It should *NOT* be checked into
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
later to patch in proper code in fontonfig on Android to later to patch in proper code in fontonfig on Android to
find out a good place. find out a good place.
--> -->
<cachedir>/data/data/org.libreoffice.android.examples/fontconfig</cachedir> <cachedir>/data/data/org.libreoffice.experimental.desktop/fontconfig</cachedir>
<config> <config>
<!-- <!--
......
...@@ -16,8 +16,4 @@ LOCAL_PATH := $(call my-dir) ...@@ -16,8 +16,4 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := dummy
LOCAL_SRC_FILES := dummy.c
LOCAL_LDLIBS :=
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
...@@ -109,13 +109,13 @@ lo_get_libmap(void) ...@@ -109,13 +109,13 @@ lo_get_libmap(void)
{ NULL, NULL } { NULL, NULL }
}; };
// We need to pull this in, too, as it isn't in any of the libs we // We need to pull these in, too, as they aren't in any of the libs we
// link with -Wl,--whole-archive. // link with -Wl,--whole-archive.
extern void Java_org_libreoffice_android_examples_LODesktop_spawnMain(); extern void Java_org_libreoffice_experimental_desktop_Desktop_spawnMain();
volatile void *p = (void *) Java_org_libreoffice_android_examples_LODesktop_spawnMain; volatile void *p = (void *) Java_org_libreoffice_experimental_desktop_Desktop_spawnMain;
extern void Java_org_libreoffice_android_examples_LODesktop_renderVCL(); extern void Java_org_libreoffice_experimental_desktop_Desktop_renderVCL();
volatile void *q = (void *) Java_org_libreoffice_android_examples_LODesktop_renderVCL; p = (void *) Java_org_libreoffice_experimental_desktop_Desktop_renderVCL;
return map; return map;
} }
......
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
// This is just a testbed for ideas and implementations. (Still, it might turn // This is just a testbed for ideas and implementations. (Still, it might turn
// out to be somewhat useful as such while waiting for "real" apps.) // out to be somewhat useful as such while waiting for "real" apps.)
// ================ NOTE ================
// Note that these comments are copy-pasted from another test app,
// DocumentLoader, and might or might not be much relevant for this
// source file and how it will evolve.
// Important points: // Important points:
// Everything that might take a long time should be done asynchronously: // Everything that might take a long time should be done asynchronously:
...@@ -54,7 +59,7 @@ ...@@ -54,7 +59,7 @@
// has finished and then the affected tiles are replaced with // has finished and then the affected tiles are replaced with
// higher-resolution ones. // higher-resolution ones.
package org.libreoffice.android.examples; package org.libreoffice.experimental.desktop;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;
...@@ -117,7 +122,7 @@ import java.util.ArrayList; ...@@ -117,7 +122,7 @@ import java.util.ArrayList;
import org.libreoffice.android.Bootstrap; import org.libreoffice.android.Bootstrap;
public class LODesktop public class Desktop
extends Activity extends Activity
{ {
private static final String TAG = "LODesktop"; private static final String TAG = "LODesktop";
...@@ -288,10 +293,10 @@ public class LODesktop ...@@ -288,10 +293,10 @@ public class LODesktop
class BitmapView extends android.view.View class BitmapView extends android.view.View
{ {
LODesktop mDesktop; Desktop mDesktop;
Bitmap mBitmap; Bitmap mBitmap;
public BitmapView(Context context, LODesktop desktop) public BitmapView(Context context, Desktop desktop)
{ {
super(context); super(context);
mDesktop = desktop; mDesktop = desktop;
......
...@@ -103,7 +103,7 @@ public: ...@@ -103,7 +103,7 @@ public:
}; };
extern "C" SAL_JNI_EXPORT void JNICALL extern "C" SAL_JNI_EXPORT void JNICALL
Java_org_libreoffice_android_examples_LODesktop_spawnMain(JNIEnv* /* env */, Java_org_libreoffice_experimental_desktop_Desktop_spawnMain(JNIEnv* /* env */,
jobject /* dummy */) jobject /* dummy */)
{ {
fprintf(stderr, "Spawn main!\n"); fprintf(stderr, "Spawn main!\n");
......
...@@ -889,7 +889,7 @@ int AndroidSalSystem::ShowNativeDialog( const rtl::OUString& rTitle, ...@@ -889,7 +889,7 @@ int AndroidSalSystem::ShowNativeDialog( const rtl::OUString& rTitle,
// Render everything // Render everything
extern "C" SAL_JNI_EXPORT void JNICALL extern "C" SAL_JNI_EXPORT void JNICALL
Java_org_libreoffice_android_examples_LODesktop_renderVCL(JNIEnv *env, Java_org_libreoffice_experimental_desktop_Desktop_renderVCL(JNIEnv *env,
jobject /* dummy */, jobject /* dummy */,
jobject bitmap) jobject bitmap)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment