File tree Expand file tree Collapse file tree 10 files changed +27
-11
lines changed Expand file tree Collapse file tree 10 files changed +27
-11
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.3.10
2
+
3
+ * [ Fix] Skip BOM for Utf-16 on iOS.
4
+
5
+ ## 0.3.9
6
+
7
+ * [ Fix] iOS framework compatibility.
8
+
1
9
## 0.3.8
2
10
3
11
* [ Feature] Android so file path.
Original file line number Diff line number Diff line change 1
1
PODS:
2
- - CocoaLumberjack (3.6.2 ):
3
- - CocoaLumberjack/Core (= 3.6.2 )
4
- - CocoaLumberjack/Core (3.6.2 )
2
+ - CocoaLumberjack (3.7.0 ):
3
+ - CocoaLumberjack/Core (= 3.7.0 )
4
+ - CocoaLumberjack/Core (3.7.0 )
5
5
- dart_native (0.0.1):
6
6
- Flutter
7
7
- Flutter (1.0.0)
@@ -22,7 +22,7 @@ EXTERNAL SOURCES:
22
22
:path: Flutter
23
23
24
24
SPEC CHECKSUMS:
25
- CocoaLumberjack: bd155f2dd06c0e0b03f876f7a3ee55693122ec94
25
+ CocoaLumberjack: e8955b9d337ac307103b0a34fd141c32f27e53c5
26
26
dart_native: 8150ab93e4e060c19e0e8fb3bf98bc970d097957
27
27
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
28
28
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ packages:
175
175
path: ".."
176
176
relative: true
177
177
source: path
178
- version: "0.3.8 "
178
+ version: "0.3.10 "
179
179
dart_native_gen:
180
180
dependency: transitive
181
181
description:
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ _dispatch_get_main_queue(void);
66
66
DN_EXTERN void
67
67
native_mark_autoreleasereturn_object (id object);
68
68
69
- DN_EXTERN const void *
69
+ DN_EXTERN const uint16_t *
70
70
native_convert_nsstring_to_utf16 (NSString *string, NSUInteger *length);
71
71
72
72
#pragma mark - Dart VM API
Original file line number Diff line number Diff line change 377
377
}];
378
378
}
379
379
380
- const void *
380
+ const uint16_t *
381
381
native_convert_nsstring_to_utf16 (NSString *string, NSUInteger *length) {
382
382
NSData *data = [string dataUsingEncoding: NSUTF16StringEncoding];
383
383
// UTF16, 2-byte per unit
384
384
*length = data.length / 2 ;
385
- return data.bytes ;
385
+ uint16_t *result = (uint16_t *)data.bytes ;
386
+ if (*result == 0xFEFF || *result == 0xFFFE ) { // skip BOM
387
+ result++;
388
+ }
389
+ return result;
386
390
}
387
391
388
392
#pragma mark Dart VM API Init
Original file line number Diff line number Diff line change 384
384
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
385
385
GCC_WARN_UNUSED_FUNCTION = YES;
386
386
GCC_WARN_UNUSED_VARIABLE = YES;
387
- IPHONEOS_DEPLOYMENT_TARGET = 14.2 ;
387
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0 ;
388
388
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
389
389
MTL_FAST_MATH = YES;
390
390
ONLY_ACTIVE_ARCH = YES;
440
440
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
441
441
GCC_WARN_UNUSED_FUNCTION = YES;
442
442
GCC_WARN_UNUSED_VARIABLE = YES;
443
- IPHONEOS_DEPLOYMENT_TARGET = 14.2 ;
443
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0 ;
444
444
MTL_ENABLE_DEBUG_INFO = NO;
445
445
MTL_FAST_MATH = YES;
446
446
SDKROOT = iphoneos;
464
464
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
465
465
INFOPLIST_FILE = DartNative/Info.plist;
466
466
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
467
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
467
468
LD_RUNPATH_SEARCH_PATHS = (
468
469
"$(inherited)",
469
470
"@executable_path/Frameworks",
494
495
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
495
496
INFOPLIST_FILE = DartNative/Info.plist;
496
497
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
498
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
497
499
LD_RUNPATH_SEARCH_PATHS = (
498
500
"$(inherited)",
499
501
"@executable_path/Frameworks",
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ Write native code using Dart. This package liberates you from native code and lo
14
14
s . author = { 'DartNative' => 'email@example.com' }
15
15
s . source = { :path => '.' }
16
16
s . source_files = 'Classes/DartNativePlugin.*'
17
+ # s.source_files = 'Classes/**/*', 'libffi/*.h', 'common/**/*'
17
18
s . public_header_files = 'Classes/DartNativePlugin.h'
18
19
s . dependency 'Flutter'
19
20
s . platform = :ios , '8.0'
20
21
s . libraries = 'c++'
22
+ # s.vendored_libraries = 'libffi/libffi.a'
21
23
s . vendored_frameworks = 'DartNative.framework'
22
24
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
23
25
s . pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' , 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
Original file line number Diff line number Diff line change 1
1
name : dart_native
2
2
description : Write native code using Dart. This package liberates you from native code and low performance channel.
3
- version : 0.3.8
3
+ version : 0.3.10
4
4
homepage : https://github.com/dart-native/dart_native
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments