@nativescript/ios 8.2.0-alpha.3 → 8.2.0-custom.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
#endif
|
|
15
15
|
|
|
16
16
|
extern char startOfMetadataSection __asm("section$start$__DATA$__TNSMetadata");
|
|
17
|
+
NativeScript* nativescript;
|
|
17
18
|
|
|
18
19
|
int main(int argc, char *argv[]) {
|
|
19
20
|
@autoreleasepool {
|
|
@@ -23,7 +24,7 @@ int main(int argc, char *argv[]) {
|
|
|
23
24
|
int refreshRequestSubscription;
|
|
24
25
|
notify_register_dispatch(NOTIFICATION("RefreshRequest"), &refreshRequestSubscription, dispatch_get_main_queue(), ^(int token) {
|
|
25
26
|
notify_post(NOTIFICATION("AppRefreshStarted"));
|
|
26
|
-
bool success = [
|
|
27
|
+
bool success = [nativescript liveSync];
|
|
27
28
|
if (success) {
|
|
28
29
|
notify_post(NOTIFICATION("AppRefreshSucceeded"));
|
|
29
30
|
} else {
|
|
@@ -55,7 +56,7 @@ int main(int argc, char *argv[]) {
|
|
|
55
56
|
config.ArgumentsCount = argc;
|
|
56
57
|
config.Arguments = argv;
|
|
57
58
|
|
|
58
|
-
[[NativeScript alloc] initWithConfig:config];
|
|
59
|
+
nativescript = [[NativeScript alloc] initWithConfig:config];
|
|
59
60
|
|
|
60
61
|
return 0;
|
|
61
62
|
}
|