react-native-move-sdk 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 +159 -0
- package/android/.project +17 -0
- package/android/build.gradle +145 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +4 -0
- package/android/gradlew +183 -0
- package/android/gradlew.bat +100 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/in/dolph/move/sdk/MoveNotificationConfig.kt +41 -0
- package/android/src/main/java/in/dolph/move/sdk/MoveSdkConfig.kt +18 -0
- package/android/src/main/java/in/dolph/move/sdk/MoveSdkModule.kt +293 -0
- package/android/src/main/java/in/dolph/move/sdk/MoveSdkPackage.kt +19 -0
- package/android/src/main/java/in/dolph/move/sdk/MoveSdkRepository.kt +194 -0
- package/android/src/main/java/in/dolph/move/sdk/NativeMoveSdkWrapper.kt +305 -0
- package/android/src/main/res/drawable-anydpi-v24/ic_notification.xml +13 -0
- package/android/src/main/res/drawable-hdpi/ic_notification.png +0 -0
- package/android/src/main/res/drawable-mdpi/ic_notification.png +0 -0
- package/android/src/main/res/drawable-xhdpi/ic_notification.png +0 -0
- package/android/src/main/res/drawable-xxhdpi/ic_notification.png +0 -0
- package/android/src/main/res/values/strings.xml +9 -0
- package/android/src/main/strings.xml +0 -0
- package/ios/MoveSdk-Bridging-Header.h +2 -0
- package/ios/MoveSdk.xcodeproj/project.pbxproj +289 -0
- package/ios/MoveSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/MoveSdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/NativeModule/DolphinSdk.h +58 -0
- package/ios/NativeModule/DolphinSdk.swift +353 -0
- package/ios/NativeModule/DolphinSdkDemoReactNative-Bridging-Header.h +8 -0
- package/lib/commonjs/index.js +280 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/index.js +269 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/index.d.ts +98 -0
- package/package.json +135 -0
- package/react-native-move-sdk.podspec +20 -0
- package/src/index.ts +407 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
package `in`.dolph.move.sdk
|
|
2
|
+
|
|
3
|
+
import android.annotation.SuppressLint
|
|
4
|
+
import android.content.Context
|
|
5
|
+
import android.util.Log
|
|
6
|
+
import com.facebook.react.bridge.Arguments
|
|
7
|
+
import com.facebook.react.bridge.Promise
|
|
8
|
+
import com.facebook.react.bridge.ReadableArray
|
|
9
|
+
import com.facebook.react.bridge.WritableMap
|
|
10
|
+
import io.dolphin.move.DrivingService
|
|
11
|
+
import io.dolphin.move.MoveAuth
|
|
12
|
+
import io.dolphin.move.MoveAuthState
|
|
13
|
+
import io.dolphin.move.MoveConfigurationError
|
|
14
|
+
import io.dolphin.move.MoveSdk
|
|
15
|
+
import io.dolphin.move.MoveSdkState
|
|
16
|
+
import io.dolphin.move.MoveTripState
|
|
17
|
+
import io.dolphin.move.OtherService
|
|
18
|
+
import io.dolphin.move.TimelineDetectionService
|
|
19
|
+
import io.dolphin.move.WalkingService
|
|
20
|
+
|
|
21
|
+
@SuppressLint("StaticFieldLeak", "MissingPermission")
|
|
22
|
+
class NativeMoveSdkWrapper(private val context: Context) : MoveSdk.StateListener,
|
|
23
|
+
MoveSdk.InitializeListener, MoveSdk.TripStateListener, MoveSdk.AuthStateUpdateListener {
|
|
24
|
+
|
|
25
|
+
companion object {
|
|
26
|
+
|
|
27
|
+
private var instance: NativeMoveSdkWrapper? = null
|
|
28
|
+
|
|
29
|
+
@JvmStatic
|
|
30
|
+
fun getInstance(context: Context): NativeMoveSdkWrapper {
|
|
31
|
+
if (instance == null) {
|
|
32
|
+
instance = NativeMoveSdkWrapper(context)
|
|
33
|
+
}
|
|
34
|
+
return instance as NativeMoveSdkWrapper
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
private val configRepository = MoveSdkConfigRepository(context)
|
|
39
|
+
|
|
40
|
+
private var delegate: MoveSdkModule? = null
|
|
41
|
+
|
|
42
|
+
fun isNativeInitializationEnabled(): Boolean {
|
|
43
|
+
val config = configRepository.loadConfig()
|
|
44
|
+
val accessToken: String = config.auth.accessToken
|
|
45
|
+
val isInRunningState = configRepository.loadRunningState()
|
|
46
|
+
return isInRunningState && accessToken.isNotEmpty()
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
fun initNative() {
|
|
50
|
+
Log.i("MoveModule", "Init native")
|
|
51
|
+
|
|
52
|
+
val config: MoveSdkConfig = configRepository.loadConfig()
|
|
53
|
+
initialize(config)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@SuppressLint("MissingPermission")
|
|
57
|
+
fun initialize(
|
|
58
|
+
contractId: String,
|
|
59
|
+
accessToken: String,
|
|
60
|
+
refreshToken: String,
|
|
61
|
+
productId: Int,
|
|
62
|
+
// Config
|
|
63
|
+
timelineDetectionServices: ReadableArray,
|
|
64
|
+
drivingServices: ReadableArray,
|
|
65
|
+
walkingServices: ReadableArray,
|
|
66
|
+
otherServices: ReadableArray,
|
|
67
|
+
// Platform config
|
|
68
|
+
recognitionNotificationTitle: String,
|
|
69
|
+
recognitionNotificationText: String,
|
|
70
|
+
recognitionNotificationChannelId: String,
|
|
71
|
+
recognitionNotificationChannelName: String,
|
|
72
|
+
recognitionNotificationChannelDescription: String,
|
|
73
|
+
tripNotificationTitle: String,
|
|
74
|
+
tripNotificationText: String,
|
|
75
|
+
tripNotificationChannelId: String,
|
|
76
|
+
tripNotificationChannelName: String,
|
|
77
|
+
tripNotificationChannelDescription: String,
|
|
78
|
+
allowMockLocations: Boolean,
|
|
79
|
+
promise: Promise?
|
|
80
|
+
) {
|
|
81
|
+
|
|
82
|
+
val timelineDetectionServicesToUse = mutableListOf<TimelineDetectionService>()
|
|
83
|
+
val drivingServicesToUse = mutableListOf<DrivingService>()
|
|
84
|
+
val walkingServicesToUse = mutableListOf<WalkingService>()
|
|
85
|
+
val otherServicesToUse = mutableListOf<OtherService>()
|
|
86
|
+
|
|
87
|
+
timelineDetectionServices.toArrayList().forEach {
|
|
88
|
+
timelineDetectionServicesToUse.add(TimelineDetectionService.valueOf("$it"))
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
walkingServices.toArrayList().forEach {
|
|
92
|
+
walkingServicesToUse.add(WalkingService.valueOf("$it"))
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
drivingServices.toArrayList().forEach {
|
|
96
|
+
drivingServicesToUse.add(DrivingService.valueOf("$it"))
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
otherServices.toArrayList().forEach {
|
|
100
|
+
otherServicesToUse.add(OtherService.valueOf("$it"))
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
val recognitionNotification = MoveNotificationConfig(
|
|
104
|
+
recognitionNotificationTitle,
|
|
105
|
+
recognitionNotificationText,
|
|
106
|
+
recognitionNotificationChannelId,
|
|
107
|
+
recognitionNotificationChannelName,
|
|
108
|
+
recognitionNotificationChannelDescription,
|
|
109
|
+
)
|
|
110
|
+
val tripNotification = MoveNotificationConfig(
|
|
111
|
+
tripNotificationTitle,
|
|
112
|
+
tripNotificationText,
|
|
113
|
+
tripNotificationChannelId,
|
|
114
|
+
tripNotificationChannelName,
|
|
115
|
+
tripNotificationChannelDescription,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
try {
|
|
119
|
+
Log.d(MoveSdkModule.LOG_TAG, "MOVE SDK Version " + MoveSdk.version)
|
|
120
|
+
|
|
121
|
+
val moveSdkConfig = MoveSdkConfig(
|
|
122
|
+
auth = MoveAuth(
|
|
123
|
+
contractId = contractId,
|
|
124
|
+
accessToken = accessToken,
|
|
125
|
+
refreshToken = refreshToken,
|
|
126
|
+
productId = productId.toLong(),
|
|
127
|
+
),
|
|
128
|
+
timelineDetectionServices = timelineDetectionServicesToUse,
|
|
129
|
+
drivingServices = drivingServicesToUse,
|
|
130
|
+
walkingServices = walkingServicesToUse,
|
|
131
|
+
otherServices = otherServicesToUse,
|
|
132
|
+
tripNotification = tripNotification,
|
|
133
|
+
recognitionNotification = recognitionNotification,
|
|
134
|
+
allowMockLocations = allowMockLocations
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
configRepository.storeConfig(moveSdkConfig)
|
|
138
|
+
initialize(moveSdkConfig)
|
|
139
|
+
|
|
140
|
+
promise?.resolve(PROMISE_OK)
|
|
141
|
+
} catch (t: Throwable) {
|
|
142
|
+
promise?.reject(MoveSdkModule.ERROR_CODE, t.message)
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
private fun initialize(config: MoveSdkConfig) {
|
|
147
|
+
MoveSdk.Builder()
|
|
148
|
+
.authentication(config.auth)
|
|
149
|
+
.initializationListener(this)
|
|
150
|
+
.sdkStateListener(this)
|
|
151
|
+
.authStateUpdateListener(this)
|
|
152
|
+
.tripStateListener(this)
|
|
153
|
+
.timelineDetectionService(config.timelineDetectionServices)
|
|
154
|
+
.drivingServices(config.drivingServices)
|
|
155
|
+
.walkingServices(config.walkingServices)
|
|
156
|
+
.otherServices(config.otherServices)
|
|
157
|
+
.recognitionNotification(config.tripNotification.toAndroidNotification(context))
|
|
158
|
+
.tripNotification(config.recognitionNotification.toAndroidNotification(context))
|
|
159
|
+
.allowMockLocations(config.allowMockLocations)
|
|
160
|
+
.consoleLogging(true)
|
|
161
|
+
.init(context)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
fun resolveError() {
|
|
165
|
+
(MoveSdk.get()?.getSdkState() as MoveSdkState.Error).resolved()
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
fun startAutomaticDetection() {
|
|
169
|
+
configRepository.storeRunningState(true)
|
|
170
|
+
MoveSdk.get()?.startAutomaticDetection()
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
fun stopAutomaticDetection() {
|
|
174
|
+
configRepository.storeRunningState(false)
|
|
175
|
+
|
|
176
|
+
MoveSdk.get()?.stopAutomaticDetection()
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
fun shutdown() {
|
|
180
|
+
// Clear all properties, so we don't initialize it again on next startup
|
|
181
|
+
configRepository.clear()
|
|
182
|
+
|
|
183
|
+
MoveSdk.get()?.shutdown()
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
fun forceTripRecognition() {
|
|
187
|
+
MoveSdk.get()?.forceTripRecognition()
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
fun keepInForeground(enabled: Boolean) {
|
|
191
|
+
MoveSdk.get()?.keepInForeground(enabled)
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
fun keepActive(enabled: Boolean) {
|
|
195
|
+
MoveSdk.get()?.keepActive(enabled)
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
fun synchronizeUserData() {
|
|
199
|
+
MoveSdk.get()?.synchronizeUserData()
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
fun ignoreCurrentTrip() {
|
|
203
|
+
MoveSdk.get()?.ignoreCurrentTrip()
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
fun finishCurrentTrip() {
|
|
207
|
+
MoveSdk.get()?.finishCurrentTrip()
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
fun getState(promise: Promise) {
|
|
211
|
+
MoveSdk.get()?.let {
|
|
212
|
+
promise.resolve(it.getSdkState().toString())
|
|
213
|
+
} ?: promise.resolve(null)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
fun getTripState(promise: Promise) {
|
|
217
|
+
MoveSdk.get()?.let {
|
|
218
|
+
promise.resolve(it.getTripState().toString())
|
|
219
|
+
} ?: promise.resolve(MoveTripState.UNKNOWN.toString())
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
override fun onError(error: MoveConfigurationError) {
|
|
223
|
+
val data = Arguments.createMap()
|
|
224
|
+
data.putString(ARGUMENT_ERROR, error.toString())
|
|
225
|
+
emitDeviceEvent(EVENT_INIT_ERROR, data)
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
override fun onStateChanged(sdk: MoveSdk, state: MoveSdkState) {
|
|
229
|
+
val data = Arguments.createMap()
|
|
230
|
+
|
|
231
|
+
data.putString(ARGUMENT_STATE, state.toString())
|
|
232
|
+
|
|
233
|
+
if (state is MoveSdkState.Error) {
|
|
234
|
+
data.putString(ARGUMENT_ERROR_REASON, state.reason.toString())
|
|
235
|
+
}
|
|
236
|
+
emitDeviceEvent(EVENT_MOVE_STATE, data)
|
|
237
|
+
|
|
238
|
+
if (state is MoveSdkState.Ready) {
|
|
239
|
+
val isInRunningState = configRepository.loadRunningState()
|
|
240
|
+
if (isInRunningState) {
|
|
241
|
+
startAutomaticDetection()
|
|
242
|
+
}
|
|
243
|
+
} else if (state is MoveSdkState.Running) {
|
|
244
|
+
Log.d(MoveSdkModule.LOG_TAG, "Move SDK Running")
|
|
245
|
+
// Nothing to do here, all good.
|
|
246
|
+
// You may call additional features like #keepInForeground(bool)
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
override fun onTripStateChanged(tripState: MoveTripState) {
|
|
251
|
+
val data = Arguments.createMap()
|
|
252
|
+
data.putString(ARGUMENT_STATE, tripState.toString())
|
|
253
|
+
emitDeviceEvent(EVENT_TRIP_STATE, data)
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
fun applyDelegate(dolphinSdkModule: MoveSdkModule) {
|
|
257
|
+
delegate = dolphinSdkModule
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
fun updateAuth(
|
|
261
|
+
contractId: String,
|
|
262
|
+
accessToken: String,
|
|
263
|
+
refreshToken: String,
|
|
264
|
+
productId: Int
|
|
265
|
+
) {
|
|
266
|
+
val auth = MoveAuth(
|
|
267
|
+
productId = productId.toLong(),
|
|
268
|
+
contractId = contractId,
|
|
269
|
+
accessToken = accessToken,
|
|
270
|
+
refreshToken = refreshToken,
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
configRepository.storeAuth(auth)
|
|
274
|
+
|
|
275
|
+
MoveSdk.get()?.updateAuth(auth) { configurationError ->
|
|
276
|
+
val data = Arguments.createMap()
|
|
277
|
+
data.putString(ARGUMENT_ERROR, configurationError.toString())
|
|
278
|
+
emitDeviceEvent(EVENT_INIT_ERROR, data)
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
fun getAuthState(promise: Promise) {
|
|
283
|
+
MoveSdk.get()?.let {
|
|
284
|
+
promise.resolve(it.getAuthState().toString())
|
|
285
|
+
} ?: promise.resolve(MoveAuthState.UNKNOWN.toString())
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
override fun onAuthStateUpdate(state: MoveAuthState) {
|
|
289
|
+
val data = Arguments.createMap()
|
|
290
|
+
data.putString(ARGUMENT_STATE, state.toString())
|
|
291
|
+
if (state is MoveAuthState.VALID) {
|
|
292
|
+
data.putString(ARGUMENT_ACCESS_TOKEN, state.auth.accessToken)
|
|
293
|
+
data.putString(ARGUMENT_REFRESH_TOKEN, state.auth.refreshToken)
|
|
294
|
+
|
|
295
|
+
// Only store valid auth here
|
|
296
|
+
configRepository.storeAuth(state.auth)
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
emitDeviceEvent(EVENT_AUTH_STATE, data)
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
private fun emitDeviceEvent(eventName: String, eventData: WritableMap?) {
|
|
303
|
+
delegate?.emitDeviceEvent(eventName, eventData)
|
|
304
|
+
}
|
|
305
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="24dp"
|
|
3
|
+
android:height="24dp"
|
|
4
|
+
android:viewportWidth="26.086956"
|
|
5
|
+
android:viewportHeight="26.086956"
|
|
6
|
+
android:tint="#FFFFFF">
|
|
7
|
+
<group android:translateX="1.0434783"
|
|
8
|
+
android:translateY="1.0434783">
|
|
9
|
+
<path
|
|
10
|
+
android:fillColor="#FF000000"
|
|
11
|
+
android:pathData="M18.92,6.01C18.72,5.42 18.16,5 17.5,5h-11c-0.66,0 -1.21,0.42 -1.42,1.01L3,12v8c0,0.55 0.45,1 1,1h1c0.55,0 1,-0.45 1,-1v-1h12v1c0,0.55 0.45,1 1,1h1c0.55,0 1,-0.45 1,-1v-8l-2.08,-5.99zM6.5,16c-0.83,0 -1.5,-0.67 -1.5,-1.5S5.67,13 6.5,13s1.5,0.67 1.5,1.5S7.33,16 6.5,16zM17.5,16c-0.83,0 -1.5,-0.67 -1.5,-1.5s0.67,-1.5 1.5,-1.5 1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5zM5,11l1.5,-4.5h11L19,11L5,11z"/>
|
|
12
|
+
</group>
|
|
13
|
+
</vector>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources>
|
|
3
|
+
<string name="channel_name">Foreground services</string>
|
|
4
|
+
<string name="channel_description">For trip and recognition foreground service notifications</string>
|
|
5
|
+
<integer name="product_id"></integer>
|
|
6
|
+
<string name="installation_id"></string>
|
|
7
|
+
<string name="api_key"></string>
|
|
8
|
+
<string name="base_url"></string>
|
|
9
|
+
</resources>
|
|
File without changes
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
09A2803B25DA82E000603CBF /* DolphinSdk.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09A2803A25DA82E000603CBF /* DolphinSdk.swift */; };
|
|
11
|
+
/* End PBXBuildFile section */
|
|
12
|
+
|
|
13
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
14
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
15
|
+
isa = PBXCopyFilesBuildPhase;
|
|
16
|
+
buildActionMask = 2147483647;
|
|
17
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
18
|
+
dstSubfolderSpec = 16;
|
|
19
|
+
files = (
|
|
20
|
+
);
|
|
21
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
22
|
+
};
|
|
23
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
24
|
+
|
|
25
|
+
/* Begin PBXFileReference section */
|
|
26
|
+
09A2803825DA82E000603CBF /* DolphinSdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DolphinSdk.h; sourceTree = "<group>"; };
|
|
27
|
+
09A2803925DA82E000603CBF /* DolphinSdkDemoReactNative-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "DolphinSdkDemoReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
28
|
+
09A2803A25DA82E000603CBF /* DolphinSdk.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DolphinSdk.swift; sourceTree = "<group>"; };
|
|
29
|
+
134814201AA4EA6300B7C361 /* libMoveSdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMoveSdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
30
|
+
F4FF95D5245B92E700C19C63 /* MoveSdk-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MoveSdk-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
31
|
+
/* End PBXFileReference section */
|
|
32
|
+
|
|
33
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
34
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
35
|
+
isa = PBXFrameworksBuildPhase;
|
|
36
|
+
buildActionMask = 2147483647;
|
|
37
|
+
files = (
|
|
38
|
+
);
|
|
39
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
40
|
+
};
|
|
41
|
+
/* End PBXFrameworksBuildPhase section */
|
|
42
|
+
|
|
43
|
+
/* Begin PBXGroup section */
|
|
44
|
+
09A2803725DA82E000603CBF /* NativeModule */ = {
|
|
45
|
+
isa = PBXGroup;
|
|
46
|
+
children = (
|
|
47
|
+
09A2803825DA82E000603CBF /* DolphinSdk.h */,
|
|
48
|
+
09A2803925DA82E000603CBF /* DolphinSdkDemoReactNative-Bridging-Header.h */,
|
|
49
|
+
09A2803A25DA82E000603CBF /* DolphinSdk.swift */,
|
|
50
|
+
);
|
|
51
|
+
path = NativeModule;
|
|
52
|
+
sourceTree = "<group>";
|
|
53
|
+
};
|
|
54
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
55
|
+
isa = PBXGroup;
|
|
56
|
+
children = (
|
|
57
|
+
134814201AA4EA6300B7C361 /* libMoveSdk.a */,
|
|
58
|
+
);
|
|
59
|
+
name = Products;
|
|
60
|
+
sourceTree = "<group>";
|
|
61
|
+
};
|
|
62
|
+
58B511D21A9E6C8500147676 = {
|
|
63
|
+
isa = PBXGroup;
|
|
64
|
+
children = (
|
|
65
|
+
F4FF95D5245B92E700C19C63 /* MoveSdk-Bridging-Header.h */,
|
|
66
|
+
09A2803725DA82E000603CBF /* NativeModule */,
|
|
67
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
68
|
+
);
|
|
69
|
+
sourceTree = "<group>";
|
|
70
|
+
};
|
|
71
|
+
/* End PBXGroup section */
|
|
72
|
+
|
|
73
|
+
/* Begin PBXNativeTarget section */
|
|
74
|
+
58B511DA1A9E6C8500147676 /* MoveSdk */ = {
|
|
75
|
+
isa = PBXNativeTarget;
|
|
76
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "MoveSdk" */;
|
|
77
|
+
buildPhases = (
|
|
78
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
79
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
80
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
81
|
+
);
|
|
82
|
+
buildRules = (
|
|
83
|
+
);
|
|
84
|
+
dependencies = (
|
|
85
|
+
);
|
|
86
|
+
name = MoveSdk;
|
|
87
|
+
productName = RCTDataManager;
|
|
88
|
+
productReference = 134814201AA4EA6300B7C361 /* libMoveSdk.a */;
|
|
89
|
+
productType = "com.apple.product-type.library.static";
|
|
90
|
+
};
|
|
91
|
+
/* End PBXNativeTarget section */
|
|
92
|
+
|
|
93
|
+
/* Begin PBXProject section */
|
|
94
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
95
|
+
isa = PBXProject;
|
|
96
|
+
attributes = {
|
|
97
|
+
LastUpgradeCheck = 0920;
|
|
98
|
+
ORGANIZATIONNAME = Facebook;
|
|
99
|
+
TargetAttributes = {
|
|
100
|
+
58B511DA1A9E6C8500147676 = {
|
|
101
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "MoveSdk" */;
|
|
106
|
+
compatibilityVersion = "Xcode 3.2";
|
|
107
|
+
developmentRegion = English;
|
|
108
|
+
hasScannedForEncodings = 0;
|
|
109
|
+
knownRegions = (
|
|
110
|
+
English,
|
|
111
|
+
en,
|
|
112
|
+
);
|
|
113
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
114
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
115
|
+
projectDirPath = "";
|
|
116
|
+
projectRoot = "";
|
|
117
|
+
targets = (
|
|
118
|
+
58B511DA1A9E6C8500147676 /* MoveSdk */,
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
/* End PBXProject section */
|
|
122
|
+
|
|
123
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
124
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
125
|
+
isa = PBXSourcesBuildPhase;
|
|
126
|
+
buildActionMask = 2147483647;
|
|
127
|
+
files = (
|
|
128
|
+
09A2803B25DA82E000603CBF /* DolphinSdk.swift in Sources */,
|
|
129
|
+
);
|
|
130
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
131
|
+
};
|
|
132
|
+
/* End PBXSourcesBuildPhase section */
|
|
133
|
+
|
|
134
|
+
/* Begin XCBuildConfiguration section */
|
|
135
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
136
|
+
isa = XCBuildConfiguration;
|
|
137
|
+
buildSettings = {
|
|
138
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
139
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
140
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
141
|
+
CLANG_ENABLE_MODULES = YES;
|
|
142
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
143
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
144
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
145
|
+
CLANG_WARN_COMMA = YES;
|
|
146
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
147
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
148
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
149
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
150
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
151
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
152
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
153
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
154
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
155
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
156
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
157
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
158
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
159
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
160
|
+
COPY_PHASE_STRIP = NO;
|
|
161
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
162
|
+
ENABLE_TESTABILITY = YES;
|
|
163
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
164
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
165
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
166
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
167
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
168
|
+
"DEBUG=1",
|
|
169
|
+
"$(inherited)",
|
|
170
|
+
);
|
|
171
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
172
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
173
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
174
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
175
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
176
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
177
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
178
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
179
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
180
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
181
|
+
SDKROOT = iphoneos;
|
|
182
|
+
};
|
|
183
|
+
name = Debug;
|
|
184
|
+
};
|
|
185
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
186
|
+
isa = XCBuildConfiguration;
|
|
187
|
+
buildSettings = {
|
|
188
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
189
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
190
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
191
|
+
CLANG_ENABLE_MODULES = YES;
|
|
192
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
193
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
194
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
195
|
+
CLANG_WARN_COMMA = YES;
|
|
196
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
197
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
198
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
199
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
200
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
201
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
202
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
203
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
204
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
205
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
206
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
207
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
208
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
209
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
210
|
+
COPY_PHASE_STRIP = YES;
|
|
211
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
212
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
213
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
214
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
215
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
216
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
217
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
218
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
219
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
220
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
221
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
222
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
223
|
+
SDKROOT = iphoneos;
|
|
224
|
+
VALIDATE_PRODUCT = YES;
|
|
225
|
+
};
|
|
226
|
+
name = Release;
|
|
227
|
+
};
|
|
228
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
229
|
+
isa = XCBuildConfiguration;
|
|
230
|
+
buildSettings = {
|
|
231
|
+
HEADER_SEARCH_PATHS = (
|
|
232
|
+
"$(inherited)",
|
|
233
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
234
|
+
"$(SRCROOT)/../../../React/**",
|
|
235
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
236
|
+
);
|
|
237
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
238
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
239
|
+
PRODUCT_NAME = MoveSdk;
|
|
240
|
+
SKIP_INSTALL = YES;
|
|
241
|
+
SWIFT_OBJC_BRIDGING_HEADER = "MoveSdk-Bridging-Header.h";
|
|
242
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
243
|
+
SWIFT_VERSION = 5.0;
|
|
244
|
+
};
|
|
245
|
+
name = Debug;
|
|
246
|
+
};
|
|
247
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
248
|
+
isa = XCBuildConfiguration;
|
|
249
|
+
buildSettings = {
|
|
250
|
+
HEADER_SEARCH_PATHS = (
|
|
251
|
+
"$(inherited)",
|
|
252
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
253
|
+
"$(SRCROOT)/../../../React/**",
|
|
254
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
255
|
+
);
|
|
256
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
257
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
258
|
+
PRODUCT_NAME = MoveSdk;
|
|
259
|
+
SKIP_INSTALL = YES;
|
|
260
|
+
SWIFT_OBJC_BRIDGING_HEADER = "MoveSdk-Bridging-Header.h";
|
|
261
|
+
SWIFT_VERSION = 5.0;
|
|
262
|
+
};
|
|
263
|
+
name = Release;
|
|
264
|
+
};
|
|
265
|
+
/* End XCBuildConfiguration section */
|
|
266
|
+
|
|
267
|
+
/* Begin XCConfigurationList section */
|
|
268
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "MoveSdk" */ = {
|
|
269
|
+
isa = XCConfigurationList;
|
|
270
|
+
buildConfigurations = (
|
|
271
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
272
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
273
|
+
);
|
|
274
|
+
defaultConfigurationIsVisible = 0;
|
|
275
|
+
defaultConfigurationName = Release;
|
|
276
|
+
};
|
|
277
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "MoveSdk" */ = {
|
|
278
|
+
isa = XCConfigurationList;
|
|
279
|
+
buildConfigurations = (
|
|
280
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
281
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
282
|
+
);
|
|
283
|
+
defaultConfigurationIsVisible = 0;
|
|
284
|
+
defaultConfigurationName = Release;
|
|
285
|
+
};
|
|
286
|
+
/* End XCConfigurationList section */
|
|
287
|
+
};
|
|
288
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
289
|
+
}
|