react-native-map4d-services 0.1.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.
- package/LICENSE +21 -0
- package/README.md +24 -0
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +59 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactnativemap4dservices/Map4dServicesModule.java +34 -0
- package/android/src/main/java/com/reactnativemap4dservices/Map4dServicesPackage.java +28 -0
- package/ios/.DS_Store +0 -0
- package/ios/Map4dServices.h +5 -0
- package/ios/Map4dServices.m +81 -0
- package/ios/Map4dServices.xcodeproj/project.pbxproj +282 -0
- package/ios/Map4dServices.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/RCTConvert+Services.h +33 -0
- package/ios/RCTConvert+Services.m +146 -0
- package/ios/SClient.h +23 -0
- package/ios/SClient.m +47 -0
- package/ios/SRequest.h +40 -0
- package/ios/SRequest.m +143 -0
- package/lib/commonjs/index.js +107 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/index.js +76 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/index.d.ts +111 -0
- package/package.json +150 -0
- package/react-native-map4d-services.podspec +20 -0
- package/src/index.tsx +175 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 IOTLink
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# react-native-map4d-services
|
|
2
|
+
|
|
3
|
+
React Native Map4dServices for iOS + Android
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install react-native-map4d-services
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
E.g. Auto Suggest
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { fetchSuggestion } from "react-native-map4d-services";
|
|
17
|
+
|
|
18
|
+
// ...
|
|
19
|
+
|
|
20
|
+
fetchSuggestion({text: 'abc'})
|
|
21
|
+
.then(result => {
|
|
22
|
+
console.log('Suggestion:', result);
|
|
23
|
+
})
|
|
24
|
+
```
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
if (project == rootProject) {
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
jcenter()
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
dependencies {
|
|
10
|
+
classpath 'com.android.tools.build:gradle:3.5.3'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
apply plugin: 'com.android.library'
|
|
16
|
+
|
|
17
|
+
def safeExtGet(prop, fallback) {
|
|
18
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
android {
|
|
22
|
+
compileSdkVersion safeExtGet('Map4dServices_compileSdkVersion', 29)
|
|
23
|
+
defaultConfig {
|
|
24
|
+
minSdkVersion safeExtGet('Map4dServices_minSdkVersion', 16)
|
|
25
|
+
targetSdkVersion safeExtGet('Map4dServices_targetSdkVersion', 29)
|
|
26
|
+
versionCode 1
|
|
27
|
+
versionName "1.0"
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
buildTypes {
|
|
32
|
+
release {
|
|
33
|
+
minifyEnabled false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
lintOptions {
|
|
37
|
+
disable 'GradleCompatible'
|
|
38
|
+
}
|
|
39
|
+
compileOptions {
|
|
40
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
41
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
repositories {
|
|
46
|
+
mavenLocal()
|
|
47
|
+
maven {
|
|
48
|
+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
49
|
+
url("$rootDir/../node_modules/react-native/android")
|
|
50
|
+
}
|
|
51
|
+
google()
|
|
52
|
+
mavenCentral()
|
|
53
|
+
jcenter()
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
dependencies {
|
|
57
|
+
//noinspection GradleDynamicVersion
|
|
58
|
+
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
59
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
package com.reactnativemap4dservices;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.bridge.Promise;
|
|
6
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
7
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
8
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
9
|
+
import com.facebook.react.module.annotations.ReactModule;
|
|
10
|
+
|
|
11
|
+
@ReactModule(name = Map4dServicesModule.NAME)
|
|
12
|
+
public class Map4dServicesModule extends ReactContextBaseJavaModule {
|
|
13
|
+
public static final String NAME = "Map4dServices";
|
|
14
|
+
|
|
15
|
+
public Map4dServicesModule(ReactApplicationContext reactContext) {
|
|
16
|
+
super(reactContext);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@Override
|
|
20
|
+
@NonNull
|
|
21
|
+
public String getName() {
|
|
22
|
+
return NAME;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// Example method
|
|
27
|
+
// See https://reactnative.dev/docs/native-modules-android
|
|
28
|
+
@ReactMethod
|
|
29
|
+
public void multiply(int a, int b, Promise promise) {
|
|
30
|
+
promise.resolve(a * b);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public static native int nativeMultiply(int a, int b);
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
package com.reactnativemap4dservices;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.ReactPackage;
|
|
6
|
+
import com.facebook.react.bridge.NativeModule;
|
|
7
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
8
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
9
|
+
|
|
10
|
+
import java.util.ArrayList;
|
|
11
|
+
import java.util.Collections;
|
|
12
|
+
import java.util.List;
|
|
13
|
+
|
|
14
|
+
public class Map4dServicesPackage implements ReactPackage {
|
|
15
|
+
@NonNull
|
|
16
|
+
@Override
|
|
17
|
+
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
|
|
18
|
+
List<NativeModule> modules = new ArrayList<>();
|
|
19
|
+
modules.add(new Map4dServicesModule(reactContext));
|
|
20
|
+
return modules;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@NonNull
|
|
24
|
+
@Override
|
|
25
|
+
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
26
|
+
return Collections.emptyList();
|
|
27
|
+
}
|
|
28
|
+
}
|
package/ios/.DS_Store
ADDED
|
Binary file
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#import "Map4dServices.h"
|
|
2
|
+
#import "SRequest.h"
|
|
3
|
+
#import "SClient.h"
|
|
4
|
+
|
|
5
|
+
@implementation Map4dServices
|
|
6
|
+
|
|
7
|
+
RCT_EXPORT_MODULE()
|
|
8
|
+
|
|
9
|
+
// https://reactnative.dev/docs/native-modules-ios
|
|
10
|
+
|
|
11
|
+
/* Place | Suggestions */
|
|
12
|
+
RCT_EXPORT_METHOD(fetchSuggestion:(id)params
|
|
13
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
14
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
15
|
+
[SClient fireRequest:[SRequest buildSuggestionsRequestWithData:params] resolve:resolve reject:reject];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Place | Detail */
|
|
19
|
+
RCT_EXPORT_METHOD(fetchPlaceDetail:(NSString *)placeId
|
|
20
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
21
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
22
|
+
[SClient fireRequest:[SRequest buildPlaceDetailRequestWithId:placeId] resolve:resolve reject:reject];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Place | Text search */
|
|
26
|
+
RCT_EXPORT_METHOD(fetchTextSearch:(id)params
|
|
27
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
28
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
29
|
+
[SClient fireRequest:[SRequest buildTextSearchRequestWithData:params] resolve:resolve reject:reject];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Place | Nearby search */
|
|
33
|
+
RCT_EXPORT_METHOD(fetchNearbySearch:(id)params
|
|
34
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
35
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
36
|
+
[SClient fireRequest:[SRequest buildNearbySearchRequestWithData:params] resolve:resolve reject:reject];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Place | Viewbox search */
|
|
40
|
+
RCT_EXPORT_METHOD(fetchViewboxSearch:(id)params
|
|
41
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
42
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
43
|
+
[SClient fireRequest:[SRequest buildViewboxSearchRequestWithData:params] resolve:resolve reject:reject];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Place | Geocode */
|
|
47
|
+
RCT_EXPORT_METHOD(fetchGeocode:(id)params
|
|
48
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
49
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
50
|
+
[SClient fireRequest:[SRequest buildGeocodingRequestWithData:params] resolve:resolve reject:reject];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Route | Directions */
|
|
54
|
+
RCT_EXPORT_METHOD(fetchDirections:(id)params
|
|
55
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
56
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
57
|
+
[SClient fireRequest:[SRequest buildDirectionsRequestWithData:params] resolve:resolve reject:reject];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Route | ETA */
|
|
61
|
+
RCT_EXPORT_METHOD(fetchRouteETA:(id)params
|
|
62
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
63
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
64
|
+
[SClient fireRequest:[SRequest buildRouteETARequestWithData:params] resolve:resolve reject:reject];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Route | Distance matrix */
|
|
68
|
+
RCT_EXPORT_METHOD(fetchDistanceMatrix:(id)params
|
|
69
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
70
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
71
|
+
[SClient fireRequest:[SRequest buildDistanceMatrixRequestWithData:params] resolve:resolve reject:reject];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Route | Graph route */
|
|
75
|
+
RCT_EXPORT_METHOD(fetchGraphRoute:(id)params
|
|
76
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
77
|
+
withRejecter:(RCTPromiseRejectBlock)reject) {
|
|
78
|
+
[SClient fireRequest:[SRequest buildGraphRouteRequestWithData:params] resolve:resolve reject:reject];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@end
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
|
|
11
|
+
5E555C0D2413F4C50049A1A2 /* Map4dServices.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* Map4dServices.m */; };
|
|
12
|
+
|
|
13
|
+
/* End PBXBuildFile section */
|
|
14
|
+
|
|
15
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
16
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
17
|
+
isa = PBXCopyFilesBuildPhase;
|
|
18
|
+
buildActionMask = 2147483647;
|
|
19
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
20
|
+
dstSubfolderSpec = 16;
|
|
21
|
+
files = (
|
|
22
|
+
);
|
|
23
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
24
|
+
};
|
|
25
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
26
|
+
|
|
27
|
+
/* Begin PBXFileReference section */
|
|
28
|
+
134814201AA4EA6300B7C361 /* libMap4dServices.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMap4dServices.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
+
|
|
30
|
+
B3E7B5881CC2AC0600A0062D /* Map4dServices.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Map4dServices.h; sourceTree = "<group>"; };
|
|
31
|
+
B3E7B5891CC2AC0600A0062D /* Map4dServices.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Map4dServices.m; sourceTree = "<group>"; };
|
|
32
|
+
|
|
33
|
+
/* End PBXFileReference section */
|
|
34
|
+
|
|
35
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
36
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
37
|
+
isa = PBXFrameworksBuildPhase;
|
|
38
|
+
buildActionMask = 2147483647;
|
|
39
|
+
files = (
|
|
40
|
+
);
|
|
41
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
42
|
+
};
|
|
43
|
+
/* End PBXFrameworksBuildPhase section */
|
|
44
|
+
|
|
45
|
+
/* Begin PBXGroup section */
|
|
46
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
47
|
+
isa = PBXGroup;
|
|
48
|
+
children = (
|
|
49
|
+
134814201AA4EA6300B7C361 /* libMap4dServices.a */,
|
|
50
|
+
);
|
|
51
|
+
name = Products;
|
|
52
|
+
sourceTree = "<group>";
|
|
53
|
+
};
|
|
54
|
+
58B511D21A9E6C8500147676 = {
|
|
55
|
+
isa = PBXGroup;
|
|
56
|
+
children = (
|
|
57
|
+
|
|
58
|
+
B3E7B5881CC2AC0600A0062D /* Map4dServices.h */,
|
|
59
|
+
B3E7B5891CC2AC0600A0062D /* Map4dServices.m */,
|
|
60
|
+
|
|
61
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
62
|
+
);
|
|
63
|
+
sourceTree = "<group>";
|
|
64
|
+
};
|
|
65
|
+
/* End PBXGroup section */
|
|
66
|
+
|
|
67
|
+
/* Begin PBXNativeTarget section */
|
|
68
|
+
58B511DA1A9E6C8500147676 /* Map4dServices */ = {
|
|
69
|
+
isa = PBXNativeTarget;
|
|
70
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Map4dServices" */;
|
|
71
|
+
buildPhases = (
|
|
72
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
73
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
74
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
75
|
+
);
|
|
76
|
+
buildRules = (
|
|
77
|
+
);
|
|
78
|
+
dependencies = (
|
|
79
|
+
);
|
|
80
|
+
name = Map4dServices;
|
|
81
|
+
productName = RCTDataManager;
|
|
82
|
+
productReference = 134814201AA4EA6300B7C361 /* libMap4dServices.a */;
|
|
83
|
+
productType = "com.apple.product-type.library.static";
|
|
84
|
+
};
|
|
85
|
+
/* End PBXNativeTarget section */
|
|
86
|
+
|
|
87
|
+
/* Begin PBXProject section */
|
|
88
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
89
|
+
isa = PBXProject;
|
|
90
|
+
attributes = {
|
|
91
|
+
LastUpgradeCheck = 0920;
|
|
92
|
+
ORGANIZATIONNAME = Facebook;
|
|
93
|
+
TargetAttributes = {
|
|
94
|
+
58B511DA1A9E6C8500147676 = {
|
|
95
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Map4dServices" */;
|
|
100
|
+
compatibilityVersion = "Xcode 3.2";
|
|
101
|
+
developmentRegion = English;
|
|
102
|
+
hasScannedForEncodings = 0;
|
|
103
|
+
knownRegions = (
|
|
104
|
+
English,
|
|
105
|
+
en,
|
|
106
|
+
);
|
|
107
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
108
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
109
|
+
projectDirPath = "";
|
|
110
|
+
projectRoot = "";
|
|
111
|
+
targets = (
|
|
112
|
+
58B511DA1A9E6C8500147676 /* Map4dServices */,
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
/* End PBXProject section */
|
|
116
|
+
|
|
117
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
118
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
119
|
+
isa = PBXSourcesBuildPhase;
|
|
120
|
+
buildActionMask = 2147483647;
|
|
121
|
+
files = (
|
|
122
|
+
|
|
123
|
+
B3E7B58A1CC2AC0600A0062D /* Map4dServices.m in Sources */,
|
|
124
|
+
|
|
125
|
+
);
|
|
126
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
127
|
+
};
|
|
128
|
+
/* End PBXSourcesBuildPhase section */
|
|
129
|
+
|
|
130
|
+
/* Begin XCBuildConfiguration section */
|
|
131
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
132
|
+
isa = XCBuildConfiguration;
|
|
133
|
+
buildSettings = {
|
|
134
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
135
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
136
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
137
|
+
CLANG_ENABLE_MODULES = YES;
|
|
138
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
139
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
140
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
141
|
+
CLANG_WARN_COMMA = YES;
|
|
142
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
143
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
144
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
145
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
146
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
147
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
148
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
149
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
150
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
151
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
152
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
153
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
154
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
155
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
156
|
+
COPY_PHASE_STRIP = NO;
|
|
157
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
158
|
+
ENABLE_TESTABILITY = YES;
|
|
159
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
160
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
161
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
162
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
163
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
164
|
+
"DEBUG=1",
|
|
165
|
+
"$(inherited)",
|
|
166
|
+
);
|
|
167
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
168
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
169
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
170
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
171
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
172
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
173
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
174
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
175
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
176
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
177
|
+
SDKROOT = iphoneos;
|
|
178
|
+
};
|
|
179
|
+
name = Debug;
|
|
180
|
+
};
|
|
181
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
182
|
+
isa = XCBuildConfiguration;
|
|
183
|
+
buildSettings = {
|
|
184
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
185
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
186
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
187
|
+
CLANG_ENABLE_MODULES = YES;
|
|
188
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
189
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
190
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
191
|
+
CLANG_WARN_COMMA = YES;
|
|
192
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
193
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
194
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
195
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
196
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
197
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
198
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
199
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
200
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
201
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
202
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
203
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
204
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
205
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
206
|
+
COPY_PHASE_STRIP = YES;
|
|
207
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
208
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
209
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
210
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
211
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
212
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
213
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
214
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
215
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
216
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
217
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
218
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
219
|
+
SDKROOT = iphoneos;
|
|
220
|
+
VALIDATE_PRODUCT = YES;
|
|
221
|
+
};
|
|
222
|
+
name = Release;
|
|
223
|
+
};
|
|
224
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
225
|
+
isa = XCBuildConfiguration;
|
|
226
|
+
buildSettings = {
|
|
227
|
+
HEADER_SEARCH_PATHS = (
|
|
228
|
+
"$(inherited)",
|
|
229
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
230
|
+
"$(SRCROOT)/../../../React/**",
|
|
231
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
232
|
+
);
|
|
233
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
234
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
235
|
+
PRODUCT_NAME = Map4dServices;
|
|
236
|
+
SKIP_INSTALL = YES;
|
|
237
|
+
|
|
238
|
+
};
|
|
239
|
+
name = Debug;
|
|
240
|
+
};
|
|
241
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
242
|
+
isa = XCBuildConfiguration;
|
|
243
|
+
buildSettings = {
|
|
244
|
+
HEADER_SEARCH_PATHS = (
|
|
245
|
+
"$(inherited)",
|
|
246
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
247
|
+
"$(SRCROOT)/../../../React/**",
|
|
248
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
249
|
+
);
|
|
250
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
251
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
252
|
+
PRODUCT_NAME = Map4dServices;
|
|
253
|
+
SKIP_INSTALL = YES;
|
|
254
|
+
|
|
255
|
+
};
|
|
256
|
+
name = Release;
|
|
257
|
+
};
|
|
258
|
+
/* End XCBuildConfiguration section */
|
|
259
|
+
|
|
260
|
+
/* Begin XCConfigurationList section */
|
|
261
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Map4dServices" */ = {
|
|
262
|
+
isa = XCConfigurationList;
|
|
263
|
+
buildConfigurations = (
|
|
264
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
265
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
266
|
+
);
|
|
267
|
+
defaultConfigurationIsVisible = 0;
|
|
268
|
+
defaultConfigurationName = Release;
|
|
269
|
+
};
|
|
270
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Map4dServices" */ = {
|
|
271
|
+
isa = XCConfigurationList;
|
|
272
|
+
buildConfigurations = (
|
|
273
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
274
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
275
|
+
);
|
|
276
|
+
defaultConfigurationIsVisible = 0;
|
|
277
|
+
defaultConfigurationName = Release;
|
|
278
|
+
};
|
|
279
|
+
/* End XCConfigurationList section */
|
|
280
|
+
};
|
|
281
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
282
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RCTConvert+Services.h
|
|
3
|
+
// react-native-map4d-services
|
|
4
|
+
//
|
|
5
|
+
// Created by Huy Dang on 26/01/2022.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef RCTConvert_Services_h
|
|
9
|
+
#define RCTConvert_Services_h
|
|
10
|
+
|
|
11
|
+
#import <React/RCTConvert.h>
|
|
12
|
+
#import <Map4dServices/Map4dServices.h>
|
|
13
|
+
|
|
14
|
+
@interface RCTConvert (Services)
|
|
15
|
+
|
|
16
|
+
+ (MFLocationComponent *)MFLocationComponent:(id)json;
|
|
17
|
+
|
|
18
|
+
+ (NSArray<MFLocationComponent *> *)MFLocationComponentArray:(id)json;
|
|
19
|
+
|
|
20
|
+
+ (MFViewboxComponent *)MFViewboxComponent:(id)json;
|
|
21
|
+
|
|
22
|
+
+ (MFRouteRestriction *)MFRouteRestriction:(id)json;
|
|
23
|
+
|
|
24
|
+
+ (MFTravelMode)MFTravelMode:(id)json;
|
|
25
|
+
|
|
26
|
+
+ (MFRouteWeighting)MFRouteWeighting:(id)json;
|
|
27
|
+
|
|
28
|
+
+ (MFLanguageResult)MFLanguageResult:(id)json;
|
|
29
|
+
|
|
30
|
+
@end
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
#endif /* RCTConvert_Services_h */
|