Commit graph

155 commits

Author SHA1 Message Date
Tor Lillqvist
b4dd218f9e Add vbaswobj and writerfilter components
Change-Id: I63c88bcb41a48142f8b3c20ff4d66ae28811411b
2012-11-28 10:55:21 +02:00
Miklos Vajna
33ab92fe56 android: make this a bit more readable
Change-Id: I765458daa808245ec736a3d184ba64c2dcd3a10b
2012-11-26 09:30:51 +01:00
Miklos Vajna
593e4a11ed android: extract duplicated casts to helper methods
Change-Id: Ib77731839ad9e46626a7a07d4b2c6c7e32d4bba1
2012-11-26 09:30:51 +01:00
Michael Meeks
aaaf5126c6 android: adapt the ant clobbering to a given SDK version.
Another volunteer fell over this, and (I hope) it's easy enough.

Change-Id: I7149d16fd8b7749afeeccef2ebc8f493200f1900
2012-11-24 16:42:47 +00:00
Miklos Vajna
a3b8cfa65c android: clean up no longer needed onSaveInstanceState()
It could not be used to save whole objects, so get rid of it and use
onRetainNonConfigurationInstance() exclusively.

Change-Id: I7cc3951b60a054b5b2488b49791b58707dc8a68b
2012-11-22 15:56:58 +01:00
Tor Lillqvist
09fa15193e Simplify: Drop URE_MORE_TYPES and URE_MORE_SERVICES
Change-Id: Idf6b9763051b4ca2bb5c5c5e073cdae7abaf9df4
2012-11-22 14:41:46 +02:00
Tor Lillqvist
129831703f Add an $APP_DATA_DIR predefiend thingie in bootstrap ("rc") files for Android
It expands to what lo_get_app_data_dir() returns, i.e. the activity's
getApplicationInfo().dataDir.

Use it in the LibreOffice4Android app's rc files instead of a
hardcoded (possibly device- and/or OS version dependent) path.

Change-Id: I8145f2c86eeded39232fb251a79fa64f31f77f55
2012-11-22 14:06:06 +02:00
Tor Lillqvist
fe3303b3dc Similar changes as in ../LibreOffice4Android
Change-Id: I6a0969a2004c52f117d6b250e3af42904bf16a0a
2012-11-22 12:44:26 +02:00
Tor Lillqvist
83833aa79c Don't bother with -Wl,--stats, I'm not loooking at them anyway
Change-Id: I1bbe00e42d6d36c9dd86f576b5cc8998e99819b8
2012-11-21 23:00:35 +02:00
Tor Lillqvist
4cf30c6c2a Save more space: compress the .rdb files in the .apk
This means they will have to be uncompressed and copied into actual
files when the app runs for the first time, but that is a small price
to pay for reducing the .apk size with over ten megabytes.

Change-Id: I5bcf3c228197519edd1ca8cbd804b5f027d7699d
2012-11-21 20:01:40 +02:00
Miklos Vajna
3ef3601f79 android: add 'go to page' menu item
Change-Id: Ie9d04ef9aeef5cacd1c3b8557111ee3a6194ccd4
2012-11-21 17:16:30 +01:00
Tor Lillqvist
0f834124b1 udkapi.rdb could never be used anyway as it is not mentioned in any rc file?
Change-Id: I5897f3d7e8d3d16481c644ee688bcf001d1b7b8c
2012-11-21 16:19:04 +02:00
Tor Lillqvist
970b53e050 Enable storing some files gzipped in the .apk
We gzip them separately in the Makefile and the gzipped result will be
stored without (further) compression in the .apk.

Use this to store the ttf font files. Shaves off a bit .apk size.

This might seem a bit odd way to do it, why not store these files in
the normal Zip compressed fashion in the .apk? It seems hard to tell
Ant (based on path, not extension) what files to compress and what
not, so we have to keep telling it to not (further) compress any files
at all.

Change-Id: I0d40d8811e6c9df6b28c285845b1db225507f5d4
2012-11-21 15:05:13 +02:00
Miklos Vajna
4460f406a4 android: don't load the document after every rotation
Change-Id: I0af154bc5bc6cc79ab45a85a5a06e4539442ec81
2012-11-20 12:51:00 +01:00
Miklos Vajna
a1d9caffa3 android: move toolkit and dummySmallDevice to bootstrapContext as well
Change-Id: I4b6ce49aa5e6d391e832dc1023e47d694a480948
2012-11-20 12:10:52 +01:00
Miklos Vajna
4c359c22e1 android: don't bootstrap after every rotation in DocumentLoader
It seems that previously onCreate served 3 different purposes:

1) bootstrap UNO machinery
2) load the document
3) create the view

Ideally it should do the first two only if not done already -- as a
first step, this commit extracts 1) and does only once.

Change-Id: I087a6b934c05295263080f571c95ef152e4602cb
2012-11-20 11:02:25 +01:00
Tor Lillqvist
26b8cd2b3e Reduce dynamic symbols and strip all local ones from the Android single .so
Use a version script ("version map") that exports only the Java_* and
JNI_OnLoad symbols that the JNI machinery needs. No non-dynamic
symbols are needed (in the .so that goes into the .apk; the one kept
locally for debugging is not stripped).

Change-Id: Ie874e59c593ec9e5d08ba369612cef1a3ea85fe4
2012-11-16 16:25:17 +02:00
Miklos Vajna
677ca1d596 android: remember displayed page during rotation in DocumentLoader
Change-Id: I1948dcc76026e4c906407932aa67371e5e9e8bb6
2012-11-13 14:25:52 +01:00
Miklos Vajna
29719a369d sync android manifest with project properties: sdk version
Note that with having a targetSdk >= 11 and minSdk <= 10, we can enable
hw acceleration without loosing compatibility with 2.x devices.

Also, remove android:configChanges="orientation", as it seems to improve
rotation experience a bit.

Change-Id: Ia3be9bb3b998d604a032eb5c60f9bb0ec71dfc68
2012-11-12 11:27:37 +01:00
Tor Lillqvist
a5b985ce67 Let's try to make this significantly smaller by keeping only text doc support
Change-Id: Ib766a4ed49d089488fc4ec67b941be2f38ba3ac3
2012-11-09 09:54:11 +02:00
Tor Lillqvist
62b4827f23 Use --gc-sections
Change-Id: I6694f1820dc8c2cdae2522357932ab0065754a75
2012-11-08 15:29:14 +02:00
Tor Lillqvist
8d32dc82e6 Produce a linker map
Change-Id: Iff4f7be61310884dea1c29f6fe931dd35cadc552
2012-11-08 15:28:59 +02:00
Noel Grandin
f252b332dd fdo#46808, renamet awt::XToolkit2 to XToolkitExperimental..
..because we want to use the name for the new merged interface
for the Toolkit service.

Change-Id: Ib1e193c7d04729f6420ee6984231fd50181e59d3
2012-10-24 16:49:49 +02:00
Tor Lillqvist
d8feea6c28 Seems that on the emulator the y scale is -1, huh
Change-Id: I1ad30e278a5b04de3ee544c30c38f4765539157d
2012-10-22 15:18:29 +03:00
Tor Lillqvist
a09a98ee45 Add ucppkg1
Change-Id: I471440867895b2a8ef2f2de90ed37f5b3c9c0721
2012-10-22 15:18:29 +03:00
Tor Lillqvist
b8523dd612 Add animcore and dba mappings
Change-Id: If560563c884dc3ee4159aae24e62c5f56c544254
2012-10-15 13:47:52 +03:00
Tor Lillqvist
82bba1a2b3 Drop confusing comment
Change-Id: Ic702abecf1bd21893bd5d4dee532d2e342985e6e
2012-10-11 10:07:12 +03:00
Tor Lillqvist
5476c14de5 Adapt to disable-dynloading style
No need to load any native libraries here any more.

For now, using the same native-code.cxx as over in ../DocumentLoader
works. In other words, we end up with the same code in
liblo-native-code.so. This will obviously change if/when the UNO APIs
that are called start to differ.

Change-Id: Ia47ce833c5a290a93986005f92e981c89f63bf71
2012-10-11 10:07:11 +03:00
Tor Lillqvist
3a5d6a9ac3 Just use the wildcard function to list all the libs
It doesn't seem to be any slower. (Note that we are *not* using
-Wl,--whole-archive around these libs so it won't link in them in
total, but only what's needed.)

Change-Id: I2cc090562fc910d3375c6293f1f4358c68a6f9f3
2012-10-11 10:07:11 +03:00
Tor Lillqvist
96ee8e4dce More libraries
Now the DocumentLoader test app seems to work like it does with all
the separate DSOs, knock on wood. The only "attempting to load unknown
library" message I see in logcat is for libspelllo.a, and I
deliberately don't have a mapping for that. A viewer application
presumably has no use for spell checking. (I do link in the
hyphenation stuff, that affects rendering, and we want the rendering
to match LO on the desktop.)

Change-Id: I1ad9eedf352eb0af1187bdfdc71f8f1754912600
2012-10-11 10:07:10 +03:00
Tor Lillqvist
6848bcf6e4 More libs
Change-Id: I7921ac41a31f545a74ec2981dda9c30f40d4b4d9
2012-10-11 10:07:10 +03:00
Tor Lillqvist
5b195fbcf7 Even more libs
Change-Id: I055b3d1a3105475883283c32a46141c38ed350fa
2012-10-11 10:07:09 +03:00
Tor Lillqvist
89372ae703 More libs
Change-Id: I4f717cfdf8e13044931e6820cc9fe6f74fc8aa7f
2012-10-11 10:07:08 +03:00
Tor Lillqvist
8ede8ee2ce Some more logging
Change-Id: Ib901de4a10cb18ce8e1f5d0293c61ab0eed2a4e8
2012-10-11 10:07:07 +03:00
Tor Lillqvist
c11a906a67 More libs
Change-Id: I83214fffadf68c6d92e129fd8f89f671fd9bc1c2
2012-10-11 10:07:07 +03:00
Tor Lillqvist
925b118a26 More libs
Change-Id: I2ea26d46f22620d567a23412d7780a95e2715af2
2012-10-11 10:07:06 +03:00
Tor Lillqvist
602f93da37 Link in more libs
Change-Id: I5e016a061ea4206966757cda2d6681617b45b550
2012-10-11 10:07:06 +03:00
Tor Lillqvist
8ab89346ba Add some more components/libraries
Change-Id: I2dba9bceee4c68b551ed8ed9239e93ea9ae93117
2012-10-11 10:07:06 +03:00
Tor Lillqvist
4b7e701024 Use DISABLE_DYNLOADING on Android
IN this branch these changes are not conditional. Unclear yet whether
this is what we finally will want to use or not. Maybe should make
these changes conditional and do this stuff in master instead?

Change-Id: I379d570a0e00648d295c675fd90eba6594ba3182
2012-10-11 10:07:05 +03:00
Anurag Jain
37a2fa5d5a fdo#51304: Remove the author of some java source files
This patch remove some '@author' for Java souce files, and removes some
commented code founded when removing the '@author'.

Change-Id: Ic4fcd028a9cdbd85c693d93bcd48e41f36386d22
2012-10-01 14:10:03 +02:00
Michael Meeks
e989d16748 dung out no longer needed initUCBHelper methods; thanks to sberg. 2012-09-19 18:41:45 +01:00
Tor Lillqvist
6dc9552e22 Move Bootstrap setup and lib pre-loading (for easier debugging) to onCreate()
Change-Id: I77c08dc1236c4c77cfb7711f3be659ebfe877dd1
2012-09-06 17:32:57 +03:00
Tor Lillqvist
f9e88410cf Drop misleading comment
Change-Id: I90bc8870fcc7919f2b9c224160d7cb2e7ef285e7
2012-09-04 14:01:39 +03:00
Tor Lillqvist
f17665bc40 Fix misleading macro name
Change-Id: I6ef47a04c6628723a433bbb625b0934979bd6725
2012-09-04 14:01:38 +03:00
Matúš Kukan
dc8f9877d1 libmerged: another small component libraries for android
Change-Id: Icd36fe58cfe8dbcc737681e6fb477e64310bfaad
2012-09-01 21:06:12 +02:00
Tor Lillqvist
0d6e3a01a5 Add offapi.rdb and oovbaapi.rdb
Change-Id: I58809d549dc4da2f709397d0d6a2b307d75d8885
2012-08-31 14:16:44 +03:00
Matúš Kukan
3f750f8e7b merge more, mostly small libraries for android
Change-Id: Ic40dec7083b2dd83952bee50290b803b981965b0
2012-08-25 12:45:36 +02:00
Matúš Kukan
4d7b955705 libmerged: add more libraries
Change-Id: Ia35e93b9632cb2bbfce0d40f8491044d56f2bb05
2012-08-25 12:45:35 +02:00
Tor Lillqvist
a1aed54fee Build basebmp as a static library for Android
Reduces shared library count by one... This is tedious.

Change-Id: I3bdc0a5c4ee4cabf9bbcedc469ca6e94d0103d6b
2012-08-23 22:26:01 +03:00
Tor Lillqvist
07df4c9ed0 fileacc is in merged
Change-Id: If58adf2558c2baac51f91d621b75f2d37f935dfd
2012-08-23 22:26:00 +03:00