react-native-okhi 1.0.22-beta → 1.0.23-beta
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 +1 -2
- package/README.md +15 -160
- package/android/build.gradle +117 -40
- package/android/gradle.properties +5 -0
- package/android/src/main/java/com/reactnativeokhi/OkhiModule.java +12 -20
- package/ios/OkHiExtension.swift +1 -2
- package/ios/OkHiStruct.swift +2 -2
- package/ios/Okhi.xcodeproj/project.pbxproj +5 -53
- package/ios/Okhi.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -3
- package/lib/commonjs/OkCollect/Helpers.js.map +1 -1
- package/lib/commonjs/OkCollect/OkHiLocationManager.js.map +1 -1
- package/lib/commonjs/OkCollect/Spinner.js.map +1 -1
- package/lib/commonjs/OkCollect/Util.js.map +1 -1
- package/lib/commonjs/OkCollect/index.js.map +1 -1
- package/lib/commonjs/OkCollect/types.js.map +1 -1
- package/lib/commonjs/OkCore/Helpers.js.map +1 -1
- package/lib/commonjs/OkCore/OkHiAuth.js.map +1 -1
- package/lib/commonjs/OkCore/OkHiException.js.map +1 -1
- package/lib/commonjs/OkCore/OkHiMode.js.map +1 -1
- package/lib/commonjs/OkCore/_helpers.js.map +1 -1
- package/lib/commonjs/OkCore/_types.js.map +1 -1
- package/lib/commonjs/OkCore/index.js.map +1 -1
- package/lib/commonjs/OkCore/types.js.map +1 -1
- package/lib/commonjs/OkHiNativeModule/index.js +10 -1
- package/lib/commonjs/OkHiNativeModule/index.js.map +1 -1
- package/lib/commonjs/OkVerify/index.js.map +1 -1
- package/lib/commonjs/OkVerify/types.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/OkCollect/Helpers.js.map +1 -1
- package/lib/module/OkCollect/OkHiLocationManager.js.map +1 -1
- package/lib/module/OkCollect/Spinner.js.map +1 -1
- package/lib/module/OkCollect/Util.js.map +1 -1
- package/lib/module/OkCollect/index.js.map +1 -1
- package/lib/module/OkCollect/types.js.map +1 -1
- package/lib/module/OkCore/Helpers.js.map +1 -1
- package/lib/module/OkCore/OkHiAuth.js.map +1 -1
- package/lib/module/OkCore/OkHiException.js.map +1 -1
- package/lib/module/OkCore/OkHiMode.js.map +1 -1
- package/lib/module/OkCore/_helpers.js.map +1 -1
- package/lib/module/OkCore/_types.js.map +1 -1
- package/lib/module/OkCore/index.js.map +1 -1
- package/lib/module/OkCore/types.js.map +1 -1
- package/lib/module/OkHiNativeModule/index.js +11 -2
- package/lib/module/OkHiNativeModule/index.js.map +1 -1
- package/lib/module/OkVerify/index.js.map +1 -1
- package/lib/module/OkVerify/types.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/OkCollect/Helpers.d.ts +2 -2
- package/lib/typescript/OkHiNativeModule/index.d.ts +0 -1
- package/lib/typescript/OkVerify/index.d.ts +4 -4
- package/package.json +24 -27
- package/react-native-okhi.podspec +18 -2
- package/src/OkCollect/{index.tsx → index.ts} +0 -0
- package/src/OkCore/Helpers.ts +4 -4
- package/src/OkHiNativeModule/index.ts +17 -3
- package/android/.classpath +0 -6
- package/android/.project +0 -34
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/android/gradlew +0 -183
- package/android/gradlew.bat +0 -100
- package/android/local.properties +0 -8
- package/android/src/main/java/com/reactnativeokhi/RNOkHiCore.java +0 -18
- package/ios/Okhi.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Okhi.xcodeproj/project.xcworkspace/xcuserdata/kiano.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Okhi.xcodeproj/xcuserdata/kiano.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-okhi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23-beta",
|
|
4
4
|
"description": "The OkHi React Native library enables you to collect and verify addresses from your users",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -28,9 +28,7 @@
|
|
|
28
28
|
"prepare": "bob build",
|
|
29
29
|
"release": "release-it",
|
|
30
30
|
"example": "yarn --cwd example",
|
|
31
|
-
"
|
|
32
|
-
"bootstrap": "yarn example && yarn && yarn pods",
|
|
33
|
-
"docs": "typedoc --out ./docs ./src --tsconfig tsconfig.json --excludePrivate --excludeProtected"
|
|
31
|
+
"bootstrap": "yarn example && yarn && yarn example pods"
|
|
34
32
|
},
|
|
35
33
|
"keywords": [
|
|
36
34
|
"react-native",
|
|
@@ -48,26 +46,26 @@
|
|
|
48
46
|
"registry": "https://registry.npmjs.org/"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"@react-native-community/eslint-config": "^
|
|
53
|
-
"@release-it/conventional-changelog": "^
|
|
54
|
-
"@types/jest": "^
|
|
55
|
-
"@types/react": "
|
|
56
|
-
"@types/react-native": "0.
|
|
57
|
-
"
|
|
58
|
-
"eslint": "^
|
|
59
|
-
"eslint-
|
|
60
|
-
"
|
|
61
|
-
"husky": "^6.0.0",
|
|
62
|
-
"jest": "^26.0.1",
|
|
49
|
+
"@babel/eslint-parser": "^7.18.2",
|
|
50
|
+
"@react-native-community/eslint-config": "^3.0.2",
|
|
51
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
52
|
+
"@types/jest": "^28.1.2",
|
|
53
|
+
"@types/react": "~17.0.21",
|
|
54
|
+
"@types/react-native": "0.68.0",
|
|
55
|
+
"eslint": "^8.4.1",
|
|
56
|
+
"eslint-config-prettier": "^8.5.0",
|
|
57
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
58
|
+
"jest": "^28.1.1",
|
|
63
59
|
"pod-install": "^0.1.0",
|
|
64
60
|
"prettier": "^2.0.5",
|
|
65
|
-
"react": "
|
|
66
|
-
"react-native": "0.
|
|
67
|
-
"react-native-builder-bob": "^0.18.
|
|
68
|
-
"release-it": "^
|
|
69
|
-
"
|
|
70
|
-
|
|
61
|
+
"react": "17.0.2",
|
|
62
|
+
"react-native": "0.68.2",
|
|
63
|
+
"react-native-builder-bob": "^0.18.3",
|
|
64
|
+
"release-it": "^15.0.0",
|
|
65
|
+
"typescript": "^4.5.2"
|
|
66
|
+
},
|
|
67
|
+
"resolutions": {
|
|
68
|
+
"@types/react": "17.0.21"
|
|
71
69
|
},
|
|
72
70
|
"peerDependencies": {
|
|
73
71
|
"react": "*",
|
|
@@ -81,9 +79,7 @@
|
|
|
81
79
|
]
|
|
82
80
|
},
|
|
83
81
|
"commitlint": {
|
|
84
|
-
"extends": [
|
|
85
|
-
"@commitlint/config-conventional"
|
|
86
|
-
]
|
|
82
|
+
"extends": []
|
|
87
83
|
},
|
|
88
84
|
"release-it": {
|
|
89
85
|
"git": {
|
|
@@ -104,6 +100,7 @@
|
|
|
104
100
|
},
|
|
105
101
|
"eslintConfig": {
|
|
106
102
|
"root": true,
|
|
103
|
+
"parser": "@babel/eslint-parser",
|
|
107
104
|
"extends": [
|
|
108
105
|
"@react-native-community",
|
|
109
106
|
"prettier"
|
|
@@ -147,7 +144,7 @@
|
|
|
147
144
|
]
|
|
148
145
|
},
|
|
149
146
|
"dependencies": {
|
|
150
|
-
"axios": "^0.
|
|
151
|
-
"react-native-webview": "^11.
|
|
147
|
+
"axios": "^0.27.2",
|
|
148
|
+
"react-native-webview": "^11.23.0"
|
|
152
149
|
}
|
|
153
150
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
4
5
|
|
|
5
6
|
Pod::Spec.new do |s|
|
|
6
7
|
s.name = "react-native-okhi"
|
|
@@ -10,11 +11,26 @@ Pod::Spec.new do |s|
|
|
|
10
11
|
s.license = package["license"]
|
|
11
12
|
s.authors = package["author"]
|
|
12
13
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
14
|
+
s.platforms = { :ios => "12.0" }
|
|
14
15
|
s.source = { :git => "https://github.com/OkHi/react-native-okhi.git", :tag => "#{s.version}" }
|
|
15
16
|
|
|
16
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
18
|
|
|
18
19
|
s.dependency "React-Core"
|
|
19
|
-
s.dependency
|
|
20
|
+
s.dependency "OkHi", "1.8.8"
|
|
21
|
+
|
|
22
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
23
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
24
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
25
|
+
s.pod_target_xcconfig = {
|
|
26
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
27
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
s.dependency "React-Codegen"
|
|
31
|
+
s.dependency "RCT-Folly"
|
|
32
|
+
s.dependency "RCTRequired"
|
|
33
|
+
s.dependency "RCTTypeSafety"
|
|
34
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
35
|
+
end
|
|
20
36
|
end
|
|
File without changes
|
package/src/OkCore/Helpers.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OkHiNativeModule, OkHiNativeEvents } from '../OkHiNativeModule';
|
|
2
|
-
import { Alert, PermissionsAndroid, Platform } from 'react-native';
|
|
2
|
+
import { Alert, Permission, PermissionsAndroid, Platform } from 'react-native';
|
|
3
3
|
import { errorHandler, isValidPlatform } from './_helpers';
|
|
4
4
|
import type {
|
|
5
5
|
LocationPermissionCallback,
|
|
@@ -34,7 +34,7 @@ const isBackgroundLocationPermissionGrantedAndroid =
|
|
|
34
34
|
return await isLocationPermissionGranted();
|
|
35
35
|
}
|
|
36
36
|
const hasPermission = await PermissionsAndroid.check(
|
|
37
|
-
PermissionsAndroid.PERMISSIONS.ACCESS_BACKGROUND_LOCATION
|
|
37
|
+
PermissionsAndroid.PERMISSIONS.ACCESS_BACKGROUND_LOCATION as Permission
|
|
38
38
|
);
|
|
39
39
|
return hasPermission;
|
|
40
40
|
};
|
|
@@ -57,8 +57,8 @@ export const isBackgroundLocationPermissionGranted = (): Promise<boolean> => {
|
|
|
57
57
|
|
|
58
58
|
const requestLocationPermissionAndroid = async (): Promise<boolean> => {
|
|
59
59
|
const status: any = await PermissionsAndroid.requestMultiple([
|
|
60
|
-
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
|
|
61
|
-
PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION,
|
|
60
|
+
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION as Permission,
|
|
61
|
+
PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION as Permission,
|
|
62
62
|
]);
|
|
63
63
|
return status['android.permission.ACCESS_FINE_LOCATION'] === 'granted';
|
|
64
64
|
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { NativeModules, NativeEventEmitter } from 'react-native';
|
|
1
|
+
import { NativeModules, NativeEventEmitter, Platform } from 'react-native';
|
|
2
2
|
import type { OkVerifyStartConfiguration } from '../OkVerify/types';
|
|
3
3
|
|
|
4
|
+
const LINKING_ERROR =
|
|
5
|
+
`The package 'react-native-okhi' doesn't seem to be linked. Make sure: \n\n` +
|
|
6
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
7
|
+
'- You rebuilt the app after installing the package\n' +
|
|
8
|
+
'- You are not using Expo managed workflow\n';
|
|
9
|
+
|
|
4
10
|
type OkHiNativeModuleType = {
|
|
5
|
-
multiply(a: number, b: number): Promise<number>;
|
|
6
11
|
isLocationServicesEnabled(): Promise<boolean>;
|
|
7
12
|
isLocationPermissionGranted(): Promise<boolean>;
|
|
8
13
|
isBackgroundLocationPermissionGranted(): Promise<boolean>;
|
|
@@ -41,7 +46,16 @@ type OkHiNativeModuleType = {
|
|
|
41
46
|
retrieveDeviceInfo(): Promise<{ manufacturer: string; model: string }>;
|
|
42
47
|
};
|
|
43
48
|
|
|
44
|
-
export const OkHiNativeModule: OkHiNativeModuleType = NativeModules.Okhi
|
|
49
|
+
export const OkHiNativeModule: OkHiNativeModuleType = NativeModules.Okhi
|
|
50
|
+
? NativeModules.Okhi
|
|
51
|
+
: new Proxy(
|
|
52
|
+
{},
|
|
53
|
+
{
|
|
54
|
+
get() {
|
|
55
|
+
throw new Error(LINKING_ERROR);
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
);
|
|
45
59
|
|
|
46
60
|
export const OkHiNativeEvents = new NativeEventEmitter(NativeModules.Okhi);
|
|
47
61
|
|
package/android/.classpath
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<classpath>
|
|
3
|
-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
|
|
4
|
-
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
|
5
|
-
<classpathentry kind="output" path="bin/default"/>
|
|
6
|
-
</classpath>
|
package/android/.project
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>android</name>
|
|
4
|
-
<comment>Project reactnativeokhi 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>0</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
|
|
Binary file
|
package/android/gradlew
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
# Copyright 2015 the original author or authors.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
##############################################################################
|
|
20
|
-
##
|
|
21
|
-
## Gradle start up script for UN*X
|
|
22
|
-
##
|
|
23
|
-
##############################################################################
|
|
24
|
-
|
|
25
|
-
# Attempt to set APP_HOME
|
|
26
|
-
# Resolve links: $0 may be a link
|
|
27
|
-
PRG="$0"
|
|
28
|
-
# Need this for relative symlinks.
|
|
29
|
-
while [ -h "$PRG" ] ; do
|
|
30
|
-
ls=`ls -ld "$PRG"`
|
|
31
|
-
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
32
|
-
if expr "$link" : '/.*' > /dev/null; then
|
|
33
|
-
PRG="$link"
|
|
34
|
-
else
|
|
35
|
-
PRG=`dirname "$PRG"`"/$link"
|
|
36
|
-
fi
|
|
37
|
-
done
|
|
38
|
-
SAVED="`pwd`"
|
|
39
|
-
cd "`dirname \"$PRG\"`/" >/dev/null
|
|
40
|
-
APP_HOME="`pwd -P`"
|
|
41
|
-
cd "$SAVED" >/dev/null
|
|
42
|
-
|
|
43
|
-
APP_NAME="Gradle"
|
|
44
|
-
APP_BASE_NAME=`basename "$0"`
|
|
45
|
-
|
|
46
|
-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
47
|
-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
48
|
-
|
|
49
|
-
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
50
|
-
MAX_FD="maximum"
|
|
51
|
-
|
|
52
|
-
warn () {
|
|
53
|
-
echo "$*"
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
die () {
|
|
57
|
-
echo
|
|
58
|
-
echo "$*"
|
|
59
|
-
echo
|
|
60
|
-
exit 1
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
# OS specific support (must be 'true' or 'false').
|
|
64
|
-
cygwin=false
|
|
65
|
-
msys=false
|
|
66
|
-
darwin=false
|
|
67
|
-
nonstop=false
|
|
68
|
-
case "`uname`" in
|
|
69
|
-
CYGWIN* )
|
|
70
|
-
cygwin=true
|
|
71
|
-
;;
|
|
72
|
-
Darwin* )
|
|
73
|
-
darwin=true
|
|
74
|
-
;;
|
|
75
|
-
MINGW* )
|
|
76
|
-
msys=true
|
|
77
|
-
;;
|
|
78
|
-
NONSTOP* )
|
|
79
|
-
nonstop=true
|
|
80
|
-
;;
|
|
81
|
-
esac
|
|
82
|
-
|
|
83
|
-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
84
|
-
|
|
85
|
-
# Determine the Java command to use to start the JVM.
|
|
86
|
-
if [ -n "$JAVA_HOME" ] ; then
|
|
87
|
-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
88
|
-
# IBM's JDK on AIX uses strange locations for the executables
|
|
89
|
-
JAVACMD="$JAVA_HOME/jre/sh/java"
|
|
90
|
-
else
|
|
91
|
-
JAVACMD="$JAVA_HOME/bin/java"
|
|
92
|
-
fi
|
|
93
|
-
if [ ! -x "$JAVACMD" ] ; then
|
|
94
|
-
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
95
|
-
|
|
96
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
97
|
-
location of your Java installation."
|
|
98
|
-
fi
|
|
99
|
-
else
|
|
100
|
-
JAVACMD="java"
|
|
101
|
-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
102
|
-
|
|
103
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
104
|
-
location of your Java installation."
|
|
105
|
-
fi
|
|
106
|
-
|
|
107
|
-
# Increase the maximum file descriptors if we can.
|
|
108
|
-
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
|
109
|
-
MAX_FD_LIMIT=`ulimit -H -n`
|
|
110
|
-
if [ $? -eq 0 ] ; then
|
|
111
|
-
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
|
112
|
-
MAX_FD="$MAX_FD_LIMIT"
|
|
113
|
-
fi
|
|
114
|
-
ulimit -n $MAX_FD
|
|
115
|
-
if [ $? -ne 0 ] ; then
|
|
116
|
-
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
|
117
|
-
fi
|
|
118
|
-
else
|
|
119
|
-
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
|
120
|
-
fi
|
|
121
|
-
fi
|
|
122
|
-
|
|
123
|
-
# For Darwin, add options to specify how the application appears in the dock
|
|
124
|
-
if $darwin; then
|
|
125
|
-
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
126
|
-
fi
|
|
127
|
-
|
|
128
|
-
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
129
|
-
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
|
130
|
-
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
131
|
-
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
132
|
-
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
133
|
-
|
|
134
|
-
# We build the pattern for arguments to be converted via cygpath
|
|
135
|
-
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
136
|
-
SEP=""
|
|
137
|
-
for dir in $ROOTDIRSRAW ; do
|
|
138
|
-
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
139
|
-
SEP="|"
|
|
140
|
-
done
|
|
141
|
-
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
142
|
-
# Add a user-defined pattern to the cygpath arguments
|
|
143
|
-
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
144
|
-
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
145
|
-
fi
|
|
146
|
-
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
147
|
-
i=0
|
|
148
|
-
for arg in "$@" ; do
|
|
149
|
-
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
|
150
|
-
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
|
151
|
-
|
|
152
|
-
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
|
153
|
-
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
|
154
|
-
else
|
|
155
|
-
eval `echo args$i`="\"$arg\""
|
|
156
|
-
fi
|
|
157
|
-
i=`expr $i + 1`
|
|
158
|
-
done
|
|
159
|
-
case $i in
|
|
160
|
-
0) set -- ;;
|
|
161
|
-
1) set -- "$args0" ;;
|
|
162
|
-
2) set -- "$args0" "$args1" ;;
|
|
163
|
-
3) set -- "$args0" "$args1" "$args2" ;;
|
|
164
|
-
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
165
|
-
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
166
|
-
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
167
|
-
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
168
|
-
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
169
|
-
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
170
|
-
esac
|
|
171
|
-
fi
|
|
172
|
-
|
|
173
|
-
# Escape application args
|
|
174
|
-
save () {
|
|
175
|
-
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
|
176
|
-
echo " "
|
|
177
|
-
}
|
|
178
|
-
APP_ARGS=`save "$@"`
|
|
179
|
-
|
|
180
|
-
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
|
181
|
-
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
|
182
|
-
|
|
183
|
-
exec "$JAVACMD" "$@"
|
package/android/gradlew.bat
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
@rem
|
|
2
|
-
@rem Copyright 2015 the original author or authors.
|
|
3
|
-
@rem
|
|
4
|
-
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
@rem you may not use this file except in compliance with the License.
|
|
6
|
-
@rem You may obtain a copy of the License at
|
|
7
|
-
@rem
|
|
8
|
-
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
@rem
|
|
10
|
-
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
@rem See the License for the specific language governing permissions and
|
|
14
|
-
@rem limitations under the License.
|
|
15
|
-
@rem
|
|
16
|
-
|
|
17
|
-
@if "%DEBUG%" == "" @echo off
|
|
18
|
-
@rem ##########################################################################
|
|
19
|
-
@rem
|
|
20
|
-
@rem Gradle startup script for Windows
|
|
21
|
-
@rem
|
|
22
|
-
@rem ##########################################################################
|
|
23
|
-
|
|
24
|
-
@rem Set local scope for the variables with windows NT shell
|
|
25
|
-
if "%OS%"=="Windows_NT" setlocal
|
|
26
|
-
|
|
27
|
-
set DIRNAME=%~dp0
|
|
28
|
-
if "%DIRNAME%" == "" set DIRNAME=.
|
|
29
|
-
set APP_BASE_NAME=%~n0
|
|
30
|
-
set APP_HOME=%DIRNAME%
|
|
31
|
-
|
|
32
|
-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
33
|
-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
34
|
-
|
|
35
|
-
@rem Find java.exe
|
|
36
|
-
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
37
|
-
|
|
38
|
-
set JAVA_EXE=java.exe
|
|
39
|
-
%JAVA_EXE% -version >NUL 2>&1
|
|
40
|
-
if "%ERRORLEVEL%" == "0" goto init
|
|
41
|
-
|
|
42
|
-
echo.
|
|
43
|
-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
44
|
-
echo.
|
|
45
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
|
46
|
-
echo location of your Java installation.
|
|
47
|
-
|
|
48
|
-
goto fail
|
|
49
|
-
|
|
50
|
-
:findJavaFromJavaHome
|
|
51
|
-
set JAVA_HOME=%JAVA_HOME:"=%
|
|
52
|
-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
53
|
-
|
|
54
|
-
if exist "%JAVA_EXE%" goto init
|
|
55
|
-
|
|
56
|
-
echo.
|
|
57
|
-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
58
|
-
echo.
|
|
59
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
|
60
|
-
echo location of your Java installation.
|
|
61
|
-
|
|
62
|
-
goto fail
|
|
63
|
-
|
|
64
|
-
:init
|
|
65
|
-
@rem Get command-line arguments, handling Windows variants
|
|
66
|
-
|
|
67
|
-
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
68
|
-
|
|
69
|
-
:win9xME_args
|
|
70
|
-
@rem Slurp the command line arguments.
|
|
71
|
-
set CMD_LINE_ARGS=
|
|
72
|
-
set _SKIP=2
|
|
73
|
-
|
|
74
|
-
:win9xME_args_slurp
|
|
75
|
-
if "x%~1" == "x" goto execute
|
|
76
|
-
|
|
77
|
-
set CMD_LINE_ARGS=%*
|
|
78
|
-
|
|
79
|
-
:execute
|
|
80
|
-
@rem Setup the command line
|
|
81
|
-
|
|
82
|
-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
83
|
-
|
|
84
|
-
@rem Execute Gradle
|
|
85
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
|
86
|
-
|
|
87
|
-
:end
|
|
88
|
-
@rem End local scope for the variables with windows NT shell
|
|
89
|
-
if "%ERRORLEVEL%"=="0" goto mainEnd
|
|
90
|
-
|
|
91
|
-
:fail
|
|
92
|
-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
93
|
-
rem the _cmd.exe /c_ return code!
|
|
94
|
-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
|
95
|
-
exit /b 1
|
|
96
|
-
|
|
97
|
-
:mainEnd
|
|
98
|
-
if "%OS%"=="Windows_NT" endlocal
|
|
99
|
-
|
|
100
|
-
:omega
|
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Mon Oct 04 11:09:26 EAT 2021
|
|
8
|
-
sdk.dir=/Users/kiano/Library/Android/sdk
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
package com.reactnativeokhi;
|
|
2
|
-
|
|
3
|
-
import android.content.Context;
|
|
4
|
-
|
|
5
|
-
import androidx.annotation.NonNull;
|
|
6
|
-
|
|
7
|
-
import io.okhi.android_core.OkHiCore;
|
|
8
|
-
import io.okhi.android_core.models.OkHiAuth;
|
|
9
|
-
import io.okhi.android_core.models.OkHiException;
|
|
10
|
-
|
|
11
|
-
public class RNOkHiCore extends OkHiCore {
|
|
12
|
-
public RNOkHiCore(@NonNull Context context) throws OkHiException {
|
|
13
|
-
super(context);
|
|
14
|
-
}
|
|
15
|
-
public OkHiAuth getAuth() {
|
|
16
|
-
return auth;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Okhi.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|