Commit graph

10715 commits

Author SHA1 Message Date
Richard Frith-Macdonald
2cc6877597 Remove spurious semicolons 2019-06-07 12:04:21 +01:00
Richard Frith-Macdonald
2425c42ace Cosmetic tweaks to match coding style 2019-06-06 14:16:30 +01:00
Frederik Seiffert
75850de0ff Extended Android asset support
Added NSFileManager support for copying assets and reading their attributes.
2019-06-02 16:02:39 -07:00
Frederik Seiffert
409030a367 Extended NSBundle localizations method for Android. 2019-05-24 10:56:34 +02:00
Frederik Seiffert
ca76053c8e Fixed Android asset language logic in NSBundle. 2019-05-24 09:53:01 +02:00
Frederik Seiffert
9f01876102 Added option to specify Android asset reading mode. 2019-05-24 09:29:24 +02:00
Frederik Seiffert
ba4948fd97 Moved Android asset reading code path in NSData.
No reason to get path file system representation first.
2019-05-24 09:28:10 +02:00
Frederik Seiffert
3b60b1a8be Added support for asset loading on Android.
Requires passing the activity's AssetManager object from Java to GNUstep by calling +[NSBundle setJavaAssetManager:withJNIEnv:], which then enables the following features:

- NSBundle main bundle resource paths support for Android assets, e.g. for pathForResource:ofType:, URLForResource:ofType: and related methods.
- NSBundle main bundle info dictionary support if Info.plist exists in Android assets.
- -initWithContentsOfFile: and related methods support for reading Android assets from main bundle in various classes (e.g. NSData, NSDictionary, NSArray, etc.).
- NSFileManager fileExistsAtPath:(isDirectory:) and isReadableFileAtPath: return YES for main bundle asset / asset directory paths.
- NSFileHandle support for reading Android assets from main bundle.
- NSDirectoryEnumerator support for enumerating Android assets from main bundle. Note that recursion into subdirectories is currently not supported by the native Android asset manager API (see https://issuetracker.google.com/issues/37002833).

Also adds support for automatic NSProcessInfo initialization on Android with a fake executable path "/data/data/<app identifier>/exe" (as Android apps don't have a real executable path), and tweaks main bundle initialization to allow that path. Main bundle resource paths are prefixed by "/data/data/<app identifier>/Resources".
2019-05-23 15:44:07 +02:00
Richard Frith-Macdonald
ecbecbeabd Merged patches by Frederik Seiffert 2019-05-20 14:57:44 +01:00
rfm
5ce5899da2
Merge pull request #41 from triplef/swift-corelibs-libdispatch-compat
Add compatibility for Swift corelibs libdispatch release
2019-05-20 14:54:46 +01:00
rfm
fa34c66e25
Merge pull request #42 from triplef/nsthread-spinlock-builtin
Added basic spinlock implementation using builtins.
2019-05-20 14:47:33 +01:00
rfm
efc0c603eb
Merge pull request #43 from triplef/android-nslog-syslog
Always use syslog for NSLog on Android
2019-05-20 14:43:09 +01:00
Fred Kiefer
c82b0344ec
Merge pull request #44 from triplef/foundation-header-additions
Include CoreFoundation and libdispatch in Foundation.h if available.
2019-05-14 17:40:47 +02:00
Frederik Seiffert
1ff040df10 Include CoreFoundation and libdispatch in Foundation.h if available.
This more closely aligns Foundation.h with the Apple version if CoreBase and/or libdispatch are available.
2019-05-14 13:02:58 +02:00
Frederik Seiffert
43c5ccaef6 Add compatibility for Swift corelibs libdispatch release
This updates the libdispatch runloop integration to be compatible with the Swift corelibs libdispatch release:
https://github.com/apple/swift-corelibs-libdispatch

In that release, the main queue handle and drain functions have been renamed with a "_4CF" (for CoreFoundation) suffix and have moved to private.h, so we now check for the existance of this header and function names.

Note that libdispatch must be compiled with INSTALL_PRIVATE_HEADERS=YES.

Also fixes the checks for the HAVE_LIBDISPATCH_RUNLOOP define (was inverted) and ensures that both the handle and drain functions are available.
2019-05-10 16:17:53 +02:00
Frederik Seiffert
cecb41958b Always use syslog for NSLog on Android.
As there is no way to access stdout/stderr on Android, and syslog is available and outputs to the system log (accesible using "adb logcat"), this improves the developer experience when developing for Android by enabling NSLog output without having to set the "GSLogSyslog" flag.
2019-05-08 10:52:06 +02:00
Fred Kiefer
5dac91ce3f
Merge pull request #40 from triplef/fix-libdispatch-enable
Fixed libdispatch configuration switch.
2019-05-07 21:42:37 +02:00
Frederik Seiffert
3a97bb08f4 Added basic spinlock implementation using builtins.
This will be used on platforms without pthread_spin_lock(), e.g. Android targeting API level < 24.

Implementation lifted from spinlock.h in libobjc2.
2019-05-07 17:40:41 +02:00
Frederik Seiffert
8a5756cf13 Fixed libdispatch configuration switch.
Passing --enable-libdispatch was incorrectly disabling libdispatch.
2019-05-07 16:05:17 +02:00
Richard Frith-Macdonald
8ed7ccea9e Cleanups to avoid code conflicts and buffer overrun fixes. 2019-04-16 08:07:16 +01:00
Gregory Casamento
6377b93726
Merge pull request #38 from gnustep/nsstring_and_nscharacterset_changes
NSString and NSCharacterSet changes
2019-04-13 07:48:43 -04:00
Gregory John Casamento
d34dd9c38d Add changelog 2019-04-13 05:50:53 -04:00
Gregory John Casamento
aa093ca1df Readd guards 2019-04-13 05:00:54 -04:00
Gregory John Casamento
665bdcf952 Add test for emoji's back in. 2019-04-13 04:52:48 -04:00
Gregory John Casamento
7895a8c0e7 Add versions 2019-04-13 04:38:59 -04:00
Gregory John Casamento
b147a64ff5 Remove semicolons as mentioned by Fred 2019-04-12 09:12:54 -04:00
Gregory John Casamento
298f87d24e All tests passing. Implementation of string and nscharacterset methods completed 2019-04-12 08:46:41 -04:00
Gregory John Casamento
f1b48541ae Fix issue with character set caching. 2019-04-12 06:57:40 -04:00
Gregory John Casamento
51e0e3f45e Some additional changes to the test 2019-04-10 05:43:25 -04:00
Gregory John Casamento
2a7183cb27 Latest changes to test 2019-04-09 06:44:56 -04:00
Gregory John Casamento
4b1138259c Add test09 to test new functions. 2019-04-09 06:30:42 -04:00
Gregory John Casamento
6e843573af Add missing method and rename in header. 2019-04-09 05:27:28 -04:00
Gregory John Casamento
574fc45c0b Initial, untested implementation of stringByRemovingPercentEncoding. 2019-04-09 04:39:55 -04:00
Gregory John Casamento
fc13419877 Correct implementation of method. 2019-04-09 03:51:41 -04:00
Gregory John Casamento
9e960dfcd2 Correct method names 2019-04-09 03:28:35 -04:00
Gregory John Casamento
613d90c193 Initial/untested implementation of new string function. 2019-04-09 02:28:54 -04:00
Gregory John Casamento
b1f47e6f22 Added new character set implementations 2019-04-09 00:59:59 -04:00
Gregory John Casamento
41f4fa411a Skeletal implementation of new characterset and screen methods. 2019-04-08 07:36:38 -04:00
Fred Kiefer
0a77ddb0d2
Merge pull request #37 from fsb4000/master
Decrease ICU version requirements to 49
2019-04-01 09:05:36 +02:00
fsb4000
3f305d6973 Decrease ICU version requirements to 49 2019-03-29 17:14:11 +07:00
Fred Kiefer
d0c8efb849
Merge pull request #35 from trunkmaster/master
Updates for Ukrainian language
2019-03-26 23:16:46 +01:00
Sergii Stoian
c89e01750d Update ChangeLog for last commit to Ukrainian language. 2019-03-27 00:06:57 +02:00
Sergii Stoian
5b8645b424 Fix wrong \U sequence for leter i and short weekdays. 2019-03-27 00:04:36 +02:00
Wolfgang Lux
c3b7a69968 Fix crash in gdomap when an invalid hostname is given for the -M option 2019-03-18 12:12:01 +01:00
Richard Frith-Macdonald
dc481825ec remove leftover logging 2019-02-27 17:24:39 +00:00
Richard Frith-Macdonald
dd3e71e050 escape charaacters with codepoint greater than 0x7f 2019-02-27 16:54:45 +00:00
Richard Frith-Macdonald
06019034b0 header line folding fix 2019-02-15 14:13:14 +00:00
Richard Frith-Macdonald
911c5cdd66 make class lookup more reliable 2019-02-14 12:37:44 +00:00
Richard Frith-Macdonald
d6ef10f224 fixes for encoding in mime header encoded word 2019-02-14 11:19:33 +00:00
Richard Frith-Macdonald
9afe522216 fixup for new guard condition 2019-02-13 09:27:49 +00:00