react-native-okhi 1.0.20-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.
Files changed (86) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +15 -160
  3. package/android/build.gradle +117 -40
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/java/com/reactnativeokhi/OkhiModule.java +12 -20
  6. package/ios/OkHiExtension.swift +1 -2
  7. package/ios/OkHiStruct.swift +2 -2
  8. package/ios/Okhi.xcodeproj/project.pbxproj +5 -53
  9. package/ios/Okhi.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -3
  10. package/lib/commonjs/OkCollect/Helpers.js.map +1 -1
  11. package/lib/commonjs/OkCollect/OkHiLocationManager.js.map +1 -1
  12. package/lib/commonjs/OkCollect/Spinner.js.map +1 -1
  13. package/lib/commonjs/OkCollect/Util.js.map +1 -1
  14. package/lib/commonjs/OkCollect/index.js.map +1 -1
  15. package/lib/commonjs/OkCollect/types.js.map +1 -1
  16. package/lib/commonjs/OkCore/Helpers.js.map +1 -1
  17. package/lib/commonjs/OkCore/OkHiAuth.js.map +1 -1
  18. package/lib/commonjs/OkCore/OkHiException.js.map +1 -1
  19. package/lib/commonjs/OkCore/OkHiMode.js.map +1 -1
  20. package/lib/commonjs/OkCore/_helpers.js.map +1 -1
  21. package/lib/commonjs/OkCore/_types.js.map +1 -1
  22. package/lib/commonjs/OkCore/index.js.map +1 -1
  23. package/lib/commonjs/OkCore/types.js.map +1 -1
  24. package/lib/commonjs/OkHiNativeModule/index.js +10 -1
  25. package/lib/commonjs/OkHiNativeModule/index.js.map +1 -1
  26. package/lib/commonjs/OkVerify/index.js.map +1 -1
  27. package/lib/commonjs/OkVerify/types.js.map +1 -1
  28. package/lib/commonjs/index.js.map +1 -1
  29. package/lib/module/OkCollect/Helpers.js.map +1 -1
  30. package/lib/module/OkCollect/OkHiLocationManager.js.map +1 -1
  31. package/lib/module/OkCollect/Spinner.js.map +1 -1
  32. package/lib/module/OkCollect/Util.js.map +1 -1
  33. package/lib/module/OkCollect/index.js.map +1 -1
  34. package/lib/module/OkCollect/types.js.map +1 -1
  35. package/lib/module/OkCore/Helpers.js.map +1 -1
  36. package/lib/module/OkCore/OkHiAuth.js.map +1 -1
  37. package/lib/module/OkCore/OkHiException.js.map +1 -1
  38. package/lib/module/OkCore/OkHiMode.js.map +1 -1
  39. package/lib/module/OkCore/_helpers.js.map +1 -1
  40. package/lib/module/OkCore/_types.js.map +1 -1
  41. package/lib/module/OkCore/index.js.map +1 -1
  42. package/lib/module/OkCore/types.js.map +1 -1
  43. package/lib/module/OkHiNativeModule/index.js +11 -2
  44. package/lib/module/OkHiNativeModule/index.js.map +1 -1
  45. package/lib/module/OkVerify/index.js.map +1 -1
  46. package/lib/module/OkVerify/types.js.map +1 -1
  47. package/lib/module/index.js.map +1 -1
  48. package/lib/typescript/OkCollect/Helpers.d.ts +2 -2
  49. package/lib/typescript/OkHiNativeModule/index.d.ts +0 -1
  50. package/lib/typescript/OkVerify/index.d.ts +4 -4
  51. package/package.json +24 -27
  52. package/react-native-okhi.podspec +18 -2
  53. package/src/OkCollect/{index.tsx → index.ts} +0 -0
  54. package/src/OkCore/Helpers.ts +4 -4
  55. package/src/OkHiNativeModule/index.ts +17 -3
  56. package/android/.classpath +0 -6
  57. package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  58. package/android/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
  59. package/android/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  60. package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  61. package/android/.gradle/6.1.1/gc.properties +0 -0
  62. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  63. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  64. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  65. package/android/.gradle/checksums/checksums.lock +0 -0
  66. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  67. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  68. package/android/.gradle/vcs-1/gc.properties +0 -0
  69. package/android/.idea/android.iml +0 -2
  70. package/android/.idea/compiler.xml +0 -6
  71. package/android/.idea/gradle.xml +0 -21
  72. package/android/.idea/jarRepositories.xml +0 -45
  73. package/android/.idea/misc.xml +0 -5
  74. package/android/.idea/vcs.xml +0 -6
  75. package/android/.idea/workspace.xml +0 -56
  76. package/android/.project +0 -34
  77. package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
  78. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  79. package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  80. package/android/gradlew +0 -183
  81. package/android/gradlew.bat +0 -100
  82. package/android/local.properties +0 -8
  83. package/android/src/main/java/com/reactnativeokhi/RNOkHiCore.java +0 -18
  84. package/ios/Okhi.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  85. package/ios/Okhi.xcodeproj/project.xcworkspace/xcuserdata/kiano.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  86. 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.20-beta",
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
- "pods": "cd example && pod-install --quiet",
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
- "@commitlint/config-conventional": "^11.0.0",
52
- "@react-native-community/eslint-config": "^2.0.0",
53
- "@release-it/conventional-changelog": "^2.0.0",
54
- "@types/jest": "^26.0.0",
55
- "@types/react": "^16.9.19",
56
- "@types/react-native": "0.62.13",
57
- "commitlint": "^11.0.0",
58
- "eslint": "^7.2.0",
59
- "eslint-config-prettier": "^7.0.0",
60
- "eslint-plugin-prettier": "^3.1.3",
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": "16.13.1",
66
- "react-native": "0.63.4",
67
- "react-native-builder-bob": "^0.18.0",
68
- "release-it": "^14.2.2",
69
- "typedoc": "^0.22.6",
70
- "typescript": "^4.1.3"
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.22.0",
151
- "react-native-webview": "^11.14.0"
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 => "10.0" }
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 'OkHi', '1.8.8'
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
@@ -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
 
@@ -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>
File without changes
@@ -1,2 +0,0 @@
1
- #Fri Aug 26 10:49:01 EAT 2022
2
- gradle.version=6.1.1
File without changes
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id="android" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4" />
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="CompilerConfiguration">
4
- <bytecodeTargetLevel target="11" />
5
- </component>
6
- </project>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GradleMigrationSettings" migrationVersion="1" />
4
- <component name="GradleSettings">
5
- <option name="linkedExternalProjectsSettings">
6
- <GradleProjectSettings>
7
- <option name="testRunner" value="GRADLE" />
8
- <option name="distributionType" value="DEFAULT_WRAPPED" />
9
- <option name="externalProjectPath" value="$PROJECT_DIR$" />
10
- <option name="gradleHome" value="/usr/local/Cellar/gradle/6.6.1/libexec" />
11
- <option name="gradleJvm" value="11" />
12
- <option name="modules">
13
- <set>
14
- <option value="$PROJECT_DIR$" />
15
- </set>
16
- </option>
17
- <option name="resolveModulePerSourceSet" value="false" />
18
- </GradleProjectSettings>
19
- </option>
20
- </component>
21
- </project>
@@ -1,45 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="RemoteRepositoriesConfiguration">
4
- <remote-repository>
5
- <option name="id" value="central" />
6
- <option name="name" value="Maven Central repository" />
7
- <option name="url" value="https://repo1.maven.org/maven2" />
8
- </remote-repository>
9
- <remote-repository>
10
- <option name="id" value="jboss.community" />
11
- <option name="name" value="JBoss Community repository" />
12
- <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
13
- </remote-repository>
14
- <remote-repository>
15
- <option name="id" value="MavenLocal" />
16
- <option name="name" value="MavenLocal" />
17
- <option name="url" value="file:$USER_HOME$/.m2/repository" />
18
- </remote-repository>
19
- <remote-repository>
20
- <option name="id" value="MavenRepo" />
21
- <option name="name" value="MavenRepo" />
22
- <option name="url" value="https://repo.maven.apache.org/maven2/" />
23
- </remote-repository>
24
- <remote-repository>
25
- <option name="id" value="maven" />
26
- <option name="name" value="maven" />
27
- <option name="url" value="file:$PROJECT_DIR$/../node_modules/react-native/android/" />
28
- </remote-repository>
29
- <remote-repository>
30
- <option name="id" value="BintrayJCenter" />
31
- <option name="name" value="BintrayJCenter" />
32
- <option name="url" value="https://jcenter.bintray.com/" />
33
- </remote-repository>
34
- <remote-repository>
35
- <option name="id" value="Google" />
36
- <option name="name" value="Google" />
37
- <option name="url" value="https://dl.google.com/dl/android/maven2/" />
38
- </remote-repository>
39
- <remote-repository>
40
- <option name="id" value="maven2" />
41
- <option name="name" value="maven2" />
42
- <option name="url" value="https://jitpack.io" />
43
- </remote-repository>
44
- </component>
45
- </project>
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ExternalStorageConfigurationManager" enabled="true" />
4
- <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK" />
5
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
- </component>
6
- </project>
@@ -1,56 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AutoImportSettings">
4
- <option name="autoReloadType" value="NONE" />
5
- </component>
6
- <component name="ChangeListManager">
7
- <list default="true" id="148bea9d-4f75-4c1b-93b9-fea7bfaeb963" name="Default Changelist" comment="">
8
- <change beforePath="$PROJECT_DIR$/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/build.gradle" afterDir="false" />
9
- </list>
10
- <option name="SHOW_DIALOG" value="false" />
11
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
- <option name="LAST_RESOLUTION" value="IGNORE" />
14
- </component>
15
- <component name="ExternalProjectsData">
16
- <projectState path="$PROJECT_DIR$">
17
- <ProjectState />
18
- </projectState>
19
- </component>
20
- <component name="ExternalProjectsManager">
21
- <system id="GRADLE">
22
- <state>
23
- <projects_view>
24
- <tree_state>
25
- <expand />
26
- <select />
27
- </tree_state>
28
- </projects_view>
29
- </state>
30
- </system>
31
- </component>
32
- <component name="Git.Settings">
33
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
34
- </component>
35
- <component name="ProjectId" id="2DrFhfdOmWJ5d7qDbk7rhPz087F" />
36
- <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
37
- <component name="ProjectViewState">
38
- <option name="hideEmptyMiddlePackages" value="true" />
39
- <option name="showLibraryContents" value="true" />
40
- </component>
41
- <component name="PropertiesComponent">
42
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
43
- <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
44
- </component>
45
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
46
- <component name="TaskManager">
47
- <task active="true" id="Default" summary="Default task">
48
- <changelist id="148bea9d-4f75-4c1b-93b9-fea7bfaeb963" name="Default Changelist" comment="" />
49
- <created>1661449416516</created>
50
- <option name="number" value="Default" />
51
- <option name="presentableId" value="Default" />
52
- <updated>1661449416516</updated>
53
- </task>
54
- <servers />
55
- </component>
56
- </project>
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
@@ -1,5 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
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" "$@"