react-native-steerpath-smart-map 1.29.5 → 2.0.0-alpha.1

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.
Files changed (116) hide show
  1. package/.eslintrc.js +66 -0
  2. package/.prettierrc +7 -0
  3. package/CHANGELOG.md +35 -0
  4. package/README.md +7 -0
  5. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNEventKeys.class +0 -0
  6. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartGeofenceManager.class +0 -0
  7. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartLocationManager.class +0 -0
  8. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapManager.class +0 -0
  9. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapModule.class +0 -0
  10. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapPackage.class +0 -0
  11. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapPackage.kt +28 -0
  12. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapView.class +0 -0
  13. package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapViewManager.class +0 -0
  14. package/android/bin/src/main/java/com/steerpath/rnsmartmap/Utils.class +0 -0
  15. package/android/build.gradle +22 -33
  16. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  17. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartLocationManager.java +22 -14
  18. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartMapManager.java +9 -31
  19. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartMapPackage.java +11 -9
  20. package/android/src/main/java/com/steerpath/rnsmartmap/Utils.java +36 -36
  21. package/ios/RNSmartLocationManager.m +28 -3
  22. package/ios/RNSmartMapManager.m +10 -22
  23. package/lib/commonjs/SmartLocationManager.js +50 -0
  24. package/lib/commonjs/SmartLocationManager.js.map +1 -0
  25. package/lib/commonjs/SmartLocationManager.web.js +11 -0
  26. package/lib/commonjs/SmartLocationManager.web.js.map +1 -0
  27. package/lib/commonjs/SmartMapManager.js +59 -0
  28. package/lib/commonjs/SmartMapManager.js.map +1 -0
  29. package/lib/commonjs/SmartMapManager.web.js +24 -0
  30. package/lib/commonjs/SmartMapManager.web.js.map +1 -0
  31. package/lib/commonjs/index.js +28 -0
  32. package/lib/commonjs/index.js.map +1 -0
  33. package/lib/commonjs/package.json +1 -0
  34. package/lib/module/SmartLocationManager.js +46 -0
  35. package/lib/module/SmartLocationManager.js.map +1 -0
  36. package/lib/module/SmartLocationManager.web.js +7 -0
  37. package/lib/module/SmartLocationManager.web.js.map +1 -0
  38. package/lib/module/SmartMapManager.js +54 -0
  39. package/lib/module/SmartMapManager.js.map +1 -0
  40. package/lib/module/SmartMapManager.web.js +20 -0
  41. package/lib/module/SmartMapManager.web.js.map +1 -0
  42. package/lib/module/index.js +5 -0
  43. package/lib/module/index.js.map +1 -0
  44. package/lib/typescript/SmartLocationManager.d.ts +19 -0
  45. package/lib/typescript/SmartLocationManager.d.ts.map +1 -0
  46. package/{dist → lib/typescript}/SmartLocationManager.web.d.ts +1 -0
  47. package/lib/typescript/SmartLocationManager.web.d.ts.map +1 -0
  48. package/{dist → lib/typescript}/SmartMapManager.d.ts +13 -15
  49. package/lib/typescript/SmartMapManager.d.ts.map +1 -0
  50. package/lib/typescript/SmartMapManager.web.d.ts +8 -0
  51. package/lib/typescript/SmartMapManager.web.d.ts.map +1 -0
  52. package/lib/typescript/index.d.ts +5 -0
  53. package/lib/typescript/index.d.ts.map +1 -0
  54. package/package.json +38 -13
  55. package/react-native-steerpath-smart-map.podspec +15 -12
  56. package/src/SmartLocationManager.ts +25 -9
  57. package/src/SmartMapManager.ts +12 -19
  58. package/src/SmartMapManager.web.ts +3 -24
  59. package/src/index.ts +3 -4
  60. package/tsconfig.json +14 -9
  61. package/.eslintrc.json +0 -81
  62. package/android/bin/.project +0 -34
  63. package/android/bin/.settings/org.eclipse.buildship.core.prefs +0 -13
  64. package/android/bin/README.md +0 -14
  65. package/android/bin/build.gradle +0 -59
  66. package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
  67. package/android/bin/gradle/wrapper/gradle-wrapper.properties +0 -6
  68. package/android/bin/gradlew +0 -172
  69. package/android/bin/gradlew.bat +0 -84
  70. package/android/bin/src/main/AndroidManifest.xml +0 -4
  71. package/android/src/main/java/com/steerpath/rnsmartmap/RNEventKeys.java +0 -29
  72. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartGeofenceManager.java +0 -103
  73. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartMapModule.java +0 -284
  74. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartMapView.java +0 -470
  75. package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartMapViewManager.java +0 -307
  76. package/dist/SmartGeofenceManager.d.ts +0 -17
  77. package/dist/SmartGeofenceManager.js +0 -61
  78. package/dist/SmartGeofenceManager.web.d.ts +0 -9
  79. package/dist/SmartGeofenceManager.web.js +0 -10
  80. package/dist/SmartLocationManager.d.ts +0 -11
  81. package/dist/SmartLocationManager.js +0 -22
  82. package/dist/SmartLocationManager.web.js +0 -4
  83. package/dist/SmartMapEventManager.web.d.ts +0 -5
  84. package/dist/SmartMapEventManager.web.js +0 -10
  85. package/dist/SmartMapManager.js +0 -53
  86. package/dist/SmartMapManager.web.d.ts +0 -12
  87. package/dist/SmartMapManager.web.js +0 -33
  88. package/dist/SmartMapView.d.ts +0 -3
  89. package/dist/SmartMapView.js +0 -294
  90. package/dist/SmartMapView.web.d.ts +0 -3
  91. package/dist/SmartMapView.web.js +0 -270
  92. package/dist/SmartMapViewProps.d.ts +0 -267
  93. package/dist/SmartMapViewProps.js +0 -76
  94. package/dist/index.d.ts +0 -5
  95. package/dist/index.js +0 -5
  96. package/dist/internalUtils.d.ts +0 -1
  97. package/dist/internalUtils.js +0 -5
  98. package/ios/RCTConvert+SmartMapView.h +0 -35
  99. package/ios/RCTConvert+SmartMapView.m +0 -295
  100. package/ios/RNSmartGeofenceManager.h +0 -24
  101. package/ios/RNSmartGeofenceManager.m +0 -110
  102. package/ios/RNSmartMapUserTaskEventManager.h +0 -19
  103. package/ios/RNSmartMapUserTaskEventManager.m +0 -46
  104. package/ios/RNSmartMapView.h +0 -37
  105. package/ios/RNSmartMapView.m +0 -21
  106. package/ios/RNSmartMapViewManager.h +0 -27
  107. package/ios/RNSmartMapViewManager.m +0 -608
  108. package/package-lock.json +0 -6570
  109. package/src/SmartGeofenceManager.ts +0 -94
  110. package/src/SmartGeofenceManager.web.ts +0 -11
  111. package/src/SmartMapEventManager.web.ts +0 -13
  112. package/src/SmartMapView.tsx +0 -377
  113. package/src/SmartMapView.web.tsx +0 -342
  114. package/src/SmartMapViewProps.ts +0 -338
  115. package/src/internalUtils.ts +0 -5
  116. package/src/typings/steerpath-smart-sdk.d.ts +0 -5
@@ -1,15 +1,14 @@
1
1
  /* eslint-disable prefer-destructuring */
2
2
  import { NativeModules, Platform } from "react-native";
3
- import { ConfigSDK } from './SmartMapViewProps';
3
+ export type ConfigSDK = {
4
+ apiKey: string;
5
+ configFilePath?: string | null;
6
+ configString?: string | null;
7
+ }
4
8
 
5
9
  const RNSmartMapManager = NativeModules.RNSmartMapManager;
6
10
 
7
- interface FetchVersionResponse {
8
- smartSDKVersion: string;
9
- mapboxSDKVersion: string;
10
- }
11
-
12
- export interface LiveConfig {
11
+ export type LiveConfig = {
13
12
  transmit?: {
14
13
  id: string;
15
14
  password: string;
@@ -49,13 +48,6 @@ export const SmartMapManager = {
49
48
  configString,
50
49
  });
51
50
  },
52
- /**
53
- *
54
- * @deprecated Use loginToLive instead.
55
- */
56
- setLiveConfig(config: LiveConfig | null): void {
57
- RNSmartMapManager.setLiveConfig(config);
58
- },
59
51
  /**
60
52
  * Share user location by setting transmit options and show live updates on map by setting receive options.
61
53
  *
@@ -72,10 +64,11 @@ export const SmartMapManager = {
72
64
  logoutFromLive(): void {
73
65
  RNSmartMapManager.logoutFromLive();
74
66
  },
75
- fetchVersions(callback: (versions: FetchVersionResponse) => void) {
76
- RNSmartMapManager.fetchVersions(callback);
67
+ /**
68
+ *
69
+ * @returns Native (iOS/Android) Smart SDK version as a string
70
+ */
71
+ fetchVersion(): Promise<string> {
72
+ return RNSmartMapManager.fetchVersion();
77
73
  },
78
- setLanguage(languageCode: String): void {
79
- RNSmartMapManager.setLanguage(languageCode);
80
- }
81
74
  };
@@ -1,38 +1,17 @@
1
- /* eslint-disable prefer-destructuring */
2
- import { steerpath } from "steerpath-smart-sdk";
3
-
4
- type SmartSDK = {
5
- setLanguage(languageCode: String): void;
6
- }
7
- let smartSDKInstance: SmartSDK = {
8
- setLanguage: () => {}
9
- }
10
-
11
1
  export const SmartMapManager = {
12
- start(apiKey: string, config?: Record<string, unknown> | string): void {
13
- const smartSDK = new steerpath.SmartSDK();
14
- smartSDKInstance = smartSDK;
15
- smartSDK.start(apiKey, config);
2
+ start(): void {
3
+ // No web implementation
16
4
  },
17
- /**
18
- * Not implemented for web. Use start() instead.
19
- */
20
5
  startWithConfig(): void{
21
6
  // No web implementation
22
7
  },
23
- setLanguage(languageCode: String): void {
24
- smartSDKInstance.setLanguage(languageCode);
25
- },
26
- setLiveConfig(): void {
27
- // No web implementation
28
- },
29
8
  loginToLive(): void {
30
9
  // No web implementation
31
10
  },
32
11
  logoutFromLive(): void {
33
12
  // No web implementation
34
13
  },
35
- fetchVersions(): void {
14
+ fetchVersion(): void {
36
15
  // No web implementation
37
16
  }
38
17
  };
package/src/index.ts CHANGED
@@ -1,5 +1,4 @@
1
- export * from './SmartGeofenceManager'
2
1
  export * from './SmartMapManager'
3
- export * from './SmartMapView'
4
- export * from './SmartMapViewProps'
5
- export * from './SmartLocationManager'
2
+ export * from './SmartLocationManager'
3
+ export type { ConfigSDK, LiveConfig } from './SmartMapManager'
4
+ export type { LocationResponse } from './SmartLocationManager'
package/tsconfig.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "outDir": "dist",
3
+ "outDir": "lib/typescript",
4
4
  "declaration": true,
5
5
  "allowSyntheticDefaultImports": true,
6
6
  "esModuleInterop": true,
7
7
  "jsx": "react",
8
- "lib": ["es6", "dom", "dom.iterable"],
9
- "moduleResolution": "node",
10
- "typeRoots": ["./src/typings"],
8
+ "lib": [
9
+ "esnext",
10
+ "dom"
11
+ ],
12
+ "moduleResolution": "bundler",
11
13
  "strict": true,
12
- "target": "es5",
14
+ "target": "esnext",
13
15
  "skipLibCheck": true,
14
16
  "forceConsistentCasingInFileNames": true,
15
- "module": "es2015",
17
+ "module": "esnext",
16
18
  "resolveJsonModule": true,
17
19
  "noImplicitAny": false
18
20
  },
@@ -20,7 +22,10 @@
20
22
  "node_modules",
21
23
  "babel.config.js",
22
24
  "metro.config.js",
23
- "jest.config.js"
25
+ "jest.config.js",
26
+ "example"
24
27
  ],
25
- "include": ["src"]
26
- }
28
+ "include": [
29
+ "src"
30
+ ]
31
+ }
package/.eslintrc.json DELETED
@@ -1,81 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es6": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:react/recommended",
9
- "plugin:@typescript-eslint/eslint-recommended",
10
- "plugin:@typescript-eslint/recommended"
11
- ],
12
- "globals": {
13
- "Atomics": "readonly",
14
- "SharedArrayBuffer": "readonly"
15
- },
16
- "parser": "@typescript-eslint/parser",
17
- "parserOptions": {
18
- "ecmaFeatures": {
19
- "jsx": true
20
- },
21
- "ecmaVersion": 11,
22
- "sourceType": "module"
23
- },
24
- "plugins": ["react", "@typescript-eslint"],
25
- "rules": {
26
- "no-plusplus": "off",
27
- "react-hooks/rules-of-hooks": "error",
28
- "react-hooks/exhaustive-deps": "warn",
29
- "react/jsx-filename-extension": "off",
30
- "@typescript-eslint/no-use-before-define": "off",
31
- "@typescript-eslint/explicit-function-return-type": "off",
32
- "no-param-reassign": "off",
33
- "no-use-before-define": "off",
34
- "import/prefer-default-export": "off",
35
- "react/prop-types": "off",
36
- "class-methods-use-this": "off",
37
- "import/no-extraneous-dependencies": "off",
38
- "import/newline-after-import": "off",
39
- "@typescript-eslint/no-var-requires": "off",
40
- "@typescript-eslint/no-unused-vars": "off",
41
- "@typescript-eslint/camelcase": "off",
42
- "react/jsx-indent": "off",
43
- "prefer-const": "off",
44
- "consistent-return": "off",
45
- "@typescript-eslint/semi": "off",
46
- "array-callback-return": "off",
47
- "react/jsx-boolean-value": "off",
48
- "react/jsx-curly-brace-presence": "off",
49
- "react/jsx-curly-newline": "off",
50
- "no-else-return": "off",
51
- "no-inner-declarations": "off",
52
- "no-unused-expressions": "off",
53
- "@typescript-eslint/prefer-interface": "off",
54
- "@typescript-eslint/array-type": "off",
55
- "@typescript-eslint/no-dupe-class-members": "off",
56
- "@typescript-eslint/no-implied-eval": "off",
57
- "@typescript-eslint/no-throw-literal": "off",
58
- "@typescript-eslint/no-unused-expressions": "off",
59
- "spaced-comment": "off",
60
- "no-console": "off",
61
- "no-useless-return": "warn",
62
- "no-prototype-builtins": "warn",
63
- "react/jsx-wrap-multilines": "off",
64
- "react/jsx-props-no-spreading": "off",
65
- "@typescript-eslint/no-explicit-any": "error",
66
- "func-names": "off",
67
- "import/no-cycle": "warn",
68
- "no-nested-ternary": "warn",
69
- "global-require": "warn",
70
- "no-underscore-dangle": "warn",
71
- "react/no-array-index-key": "warn",
72
- "no-lonely-if": "off"
73
- },
74
- "settings": {
75
- "import/resolver": {
76
- "node": {
77
- "extensions": [".js", ".jsx", ".ts", ".tsx"]
78
- }
79
- }
80
- }
81
- }
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>android</name>
4
- <comment>Project android created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.jdt.core.javabuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>org.eclipse.jdt.core.javanature</nature>
21
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
- </natures>
23
- <filteredResources>
24
- <filter>
25
- <id>1665064202851</id>
26
- <name></name>
27
- <type>30</type>
28
- <matcher>
29
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
- <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
- </matcher>
32
- </filter>
33
- </filteredResources>
34
- </projectDescription>
@@ -1,13 +0,0 @@
1
- arguments=
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5
- connection.project.dir=
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true
@@ -1,14 +0,0 @@
1
- README
2
- ======
3
-
4
- If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm:
5
-
6
- 1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed
7
- 2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK
8
- ```
9
- ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle
10
- sdk.dir=/Users/{username}/Library/Android/sdk
11
- ```
12
- 3. Delete the `maven` folder
13
- 4. Run `sudo ./gradlew installArchives`
14
- 5. Verify that latest set of generated files is in the maven folder with the correct version number
@@ -1,59 +0,0 @@
1
- buildscript {
2
- ext.safeExtGet = {prop, fallback ->
3
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
4
- }
5
- repositories {
6
- mavenCentral()
7
- google()
8
- jcenter()
9
- }
10
-
11
- dependencies {
12
- classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '4.0.2')}")
13
- }
14
- }
15
-
16
- apply plugin: 'com.android.library'
17
- apply plugin: 'maven-publish'
18
-
19
- def DEFAULT_COMPILE_SDK_VERSION = 30
20
- def DEFAULT_BUILD_TOOLS_VERSION = "30.0.3"
21
- def DEFAULT_MIN_SDK_VERSION = 21
22
- def DEFAULT_TARGET_SDK_VERSION = 30
23
-
24
- android {
25
- compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
26
- buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
27
-
28
- defaultConfig {
29
- minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
30
- targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
31
- versionCode 1
32
- versionName "1.0"
33
- }
34
- lintOptions {
35
- abortOnError false
36
- }
37
-
38
- compileOptions {
39
- sourceCompatibility JavaVersion.VERSION_1_8
40
- targetCompatibility JavaVersion.VERSION_1_8
41
- }
42
- }
43
-
44
- repositories {
45
- maven {
46
- url "$projectDir/../node_modules/react-native/android"
47
- }
48
- mavenCentral()
49
- // For Steerpath Smart Map SDK
50
- maven { url "https://android-sdk.steerpath.net" }
51
- google()
52
- }
53
-
54
- dependencies {
55
- implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
56
- implementation "com.steerpath:smart:android-smart-1.15.0"
57
- implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
58
- implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
59
- }
@@ -1,6 +0,0 @@
1
- #Wed May 11 12:57:00 EEST 2022
2
- distributionBase=GRADLE_USER_HOME
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
4
- distributionPath=wrapper/dists
5
- zipStorePath=wrapper/dists
6
- zipStoreBase=GRADLE_USER_HOME
@@ -1,172 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- ##############################################################################
4
- ##
5
- ## Gradle start up script for UN*X
6
- ##
7
- ##############################################################################
8
-
9
- # Attempt to set APP_HOME
10
- # Resolve links: $0 may be a link
11
- PRG="$0"
12
- # Need this for relative symlinks.
13
- while [ -h "$PRG" ] ; do
14
- ls=`ls -ld "$PRG"`
15
- link=`expr "$ls" : '.*-> \(.*\)$'`
16
- if expr "$link" : '/.*' > /dev/null; then
17
- PRG="$link"
18
- else
19
- PRG=`dirname "$PRG"`"/$link"
20
- fi
21
- done
22
- SAVED="`pwd`"
23
- cd "`dirname \"$PRG\"`/" >/dev/null
24
- APP_HOME="`pwd -P`"
25
- cd "$SAVED" >/dev/null
26
-
27
- APP_NAME="Gradle"
28
- APP_BASE_NAME=`basename "$0"`
29
-
30
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31
- DEFAULT_JVM_OPTS=""
32
-
33
- # Use the maximum available, or set MAX_FD != -1 to use that value.
34
- MAX_FD="maximum"
35
-
36
- warn () {
37
- echo "$*"
38
- }
39
-
40
- die () {
41
- echo
42
- echo "$*"
43
- echo
44
- exit 1
45
- }
46
-
47
- # OS specific support (must be 'true' or 'false').
48
- cygwin=false
49
- msys=false
50
- darwin=false
51
- nonstop=false
52
- case "`uname`" in
53
- CYGWIN* )
54
- cygwin=true
55
- ;;
56
- Darwin* )
57
- darwin=true
58
- ;;
59
- MINGW* )
60
- msys=true
61
- ;;
62
- NONSTOP* )
63
- nonstop=true
64
- ;;
65
- esac
66
-
67
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68
-
69
- # Determine the Java command to use to start the JVM.
70
- if [ -n "$JAVA_HOME" ] ; then
71
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72
- # IBM's JDK on AIX uses strange locations for the executables
73
- JAVACMD="$JAVA_HOME/jre/sh/java"
74
- else
75
- JAVACMD="$JAVA_HOME/bin/java"
76
- fi
77
- if [ ! -x "$JAVACMD" ] ; then
78
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79
-
80
- Please set the JAVA_HOME variable in your environment to match the
81
- location of your Java installation."
82
- fi
83
- else
84
- JAVACMD="java"
85
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86
-
87
- Please set the JAVA_HOME variable in your environment to match the
88
- location of your Java installation."
89
- fi
90
-
91
- # Increase the maximum file descriptors if we can.
92
- if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93
- MAX_FD_LIMIT=`ulimit -H -n`
94
- if [ $? -eq 0 ] ; then
95
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96
- MAX_FD="$MAX_FD_LIMIT"
97
- fi
98
- ulimit -n $MAX_FD
99
- if [ $? -ne 0 ] ; then
100
- warn "Could not set maximum file descriptor limit: $MAX_FD"
101
- fi
102
- else
103
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104
- fi
105
- fi
106
-
107
- # For Darwin, add options to specify how the application appears in the dock
108
- if $darwin; then
109
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110
- fi
111
-
112
- # For Cygwin, switch paths to Windows format before running java
113
- if $cygwin ; then
114
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116
- JAVACMD=`cygpath --unix "$JAVACMD"`
117
-
118
- # We build the pattern for arguments to be converted via cygpath
119
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120
- SEP=""
121
- for dir in $ROOTDIRSRAW ; do
122
- ROOTDIRS="$ROOTDIRS$SEP$dir"
123
- SEP="|"
124
- done
125
- OURCYGPATTERN="(^($ROOTDIRS))"
126
- # Add a user-defined pattern to the cygpath arguments
127
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129
- fi
130
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
131
- i=0
132
- for arg in "$@" ; do
133
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135
-
136
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138
- else
139
- eval `echo args$i`="\"$arg\""
140
- fi
141
- i=$((i+1))
142
- done
143
- case $i in
144
- (0) set -- ;;
145
- (1) set -- "$args0" ;;
146
- (2) set -- "$args0" "$args1" ;;
147
- (3) set -- "$args0" "$args1" "$args2" ;;
148
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154
- esac
155
- fi
156
-
157
- # Escape application args
158
- save () {
159
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160
- echo " "
161
- }
162
- APP_ARGS=$(save "$@")
163
-
164
- # Collect all arguments for the java command, following the shell quoting and substitution rules
165
- eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166
-
167
- # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168
- if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169
- cd "$(dirname "$0")"
170
- fi
171
-
172
- exec "$JAVACMD" "$@"
@@ -1,84 +0,0 @@
1
- @if "%DEBUG%" == "" @echo off
2
- @rem ##########################################################################
3
- @rem
4
- @rem Gradle startup script for Windows
5
- @rem
6
- @rem ##########################################################################
7
-
8
- @rem Set local scope for the variables with windows NT shell
9
- if "%OS%"=="Windows_NT" setlocal
10
-
11
- set DIRNAME=%~dp0
12
- if "%DIRNAME%" == "" set DIRNAME=.
13
- set APP_BASE_NAME=%~n0
14
- set APP_HOME=%DIRNAME%
15
-
16
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
- set DEFAULT_JVM_OPTS=
18
-
19
- @rem Find java.exe
20
- if defined JAVA_HOME goto findJavaFromJavaHome
21
-
22
- set JAVA_EXE=java.exe
23
- %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
25
-
26
- echo.
27
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
- echo.
29
- echo Please set the JAVA_HOME variable in your environment to match the
30
- echo location of your Java installation.
31
-
32
- goto fail
33
-
34
- :findJavaFromJavaHome
35
- set JAVA_HOME=%JAVA_HOME:"=%
36
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
-
38
- if exist "%JAVA_EXE%" goto init
39
-
40
- echo.
41
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
- echo.
43
- echo Please set the JAVA_HOME variable in your environment to match the
44
- echo location of your Java installation.
45
-
46
- goto fail
47
-
48
- :init
49
- @rem Get command-line arguments, handling Windows variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
-
53
- :win9xME_args
54
- @rem Slurp the command line arguments.
55
- set CMD_LINE_ARGS=
56
- set _SKIP=2
57
-
58
- :win9xME_args_slurp
59
- if "x%~1" == "x" goto execute
60
-
61
- set CMD_LINE_ARGS=%*
62
-
63
- :execute
64
- @rem Setup the command line
65
-
66
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
-
68
- @rem Execute Gradle
69
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70
-
71
- :end
72
- @rem End local scope for the variables with windows NT shell
73
- if "%ERRORLEVEL%"=="0" goto mainEnd
74
-
75
- :fail
76
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77
- rem the _cmd.exe /c_ return code!
78
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79
- exit /b 1
80
-
81
- :mainEnd
82
- if "%OS%"=="Windows_NT" endlocal
83
-
84
- :omega
@@ -1,4 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.steerpath.rnsmartmap">
3
-
4
- </manifest>
@@ -1,29 +0,0 @@
1
- package com.steerpath.rnsmartmap;
2
-
3
- public class RNEventKeys {
4
-
5
- // MAP EVENTS
6
- public static final String MAP_LOADED = "onMapLoaded";
7
- public static final String MAP_CLICKED = "onMapClicked";
8
- public static final String USER_FLOOR_CHANGED = "onUserFloorChanged";
9
- public static final String VISIBLE_FLOOR_CHANGED = "onVisibleFloorChanged";
10
- public static final String SEARCH_RESULT_SELECTED = "onSearchResultSelected";
11
- public static final String SEARCH_CATEGORY_SELECTED = "onSearchCategorySelected";
12
-
13
- // USER TASK
14
- public static final String USER_TASK_RESPONSE = "onUserTaskResponse";
15
-
16
- // VIEW STATUS
17
- public static final String VIEW_STATUS_CHANGED = "onViewStatusChanged";
18
- public static final String BOTTOMSHEET_STATE_CHANGED = "onBottomSheetStateChanged";
19
-
20
- // NAVIGATION EVENTS
21
- public static final String NAVIGATION_FAILED = "onNavigationFailed";
22
- public static final String NAVIGATION_ENDED = "onNavigationEnded";
23
- public static final String NAVIGATION_STARTED = "onNavigationStarted";
24
- public static final String NAVIGATION_PREVIEW_APPEARED = "onNavigationPreviewAppeared";
25
- public static final String NAVIGATION_DESTINATION_REACHED = "onNavigationDestinationReached";
26
- public static final String ON_BACK_PRESSED = "onBackPressed";
27
-
28
- public static final String ON_LOCATION_CHANGED = "locationChanged";
29
- }