react-native-map4d-services 0.1.0 → 1.0.2

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 (40) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +24 -24
  3. package/android/build.gradle +60 -59
  4. package/android/src/main/AndroidManifest.xml +4 -4
  5. package/android/src/main/java/com/reactnativemap4dservices/Map4dServicesModule.java +91 -34
  6. package/android/src/main/java/com/reactnativemap4dservices/Map4dServicesPackage.java +28 -28
  7. package/android/src/main/java/com/reactnativemap4dservices/SClient.java +50 -0
  8. package/android/src/main/java/com/reactnativemap4dservices/SConverter.java +166 -0
  9. package/android/src/main/java/com/reactnativemap4dservices/SJsonUtils.java +130 -0
  10. package/android/src/main/java/com/reactnativemap4dservices/SRequest.java +376 -0
  11. package/ios/Map4dServices.h +5 -5
  12. package/ios/Map4dServices.m +81 -81
  13. package/ios/SClient.h +23 -23
  14. package/ios/SClient.m +47 -47
  15. package/ios/SParamConvert.h +44 -0
  16. package/ios/SParamConvert.m +229 -0
  17. package/ios/SRequest.h +40 -40
  18. package/ios/SRequest.m +142 -143
  19. package/lib/commonjs/index.js.map +1 -1
  20. package/lib/module/index.js.map +1 -1
  21. package/lib/typescript/index.d.ts +111 -111
  22. package/package.json +150 -150
  23. package/react-native-map4d-services.podspec +20 -20
  24. package/src/index.tsx +174 -174
  25. package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  26. package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
  27. package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
  28. package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
  29. package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
  30. package/android/.gradle/7.1.1/gc.properties +0 -0
  31. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  32. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  33. package/android/.gradle/checksums/checksums.lock +0 -0
  34. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  35. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  36. package/android/.gradle/vcs-1/gc.properties +0 -0
  37. package/ios/.DS_Store +0 -0
  38. package/ios/Map4dServices.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  39. package/ios/RCTConvert+Services.h +0 -33
  40. package/ios/RCTConvert+Services.m +0 -146
package/package.json CHANGED
@@ -1,150 +1,150 @@
1
- {
2
- "name": "react-native-map4d-services",
3
- "version": "0.1.0",
4
- "description": "React Native Map4dServices for iOS + Android",
5
- "main": "lib/commonjs/index",
6
- "module": "lib/module/index",
7
- "types": "lib/typescript/index.d.ts",
8
- "react-native": "src/index",
9
- "source": "src/index",
10
- "files": [
11
- "src",
12
- "lib",
13
- "android",
14
- "ios",
15
- "cpp",
16
- "react-native-map4d-services.podspec",
17
- "!lib/typescript/example",
18
- "!android/build",
19
- "!ios/build",
20
- "!**/__tests__",
21
- "!**/__fixtures__",
22
- "!**/__mocks__"
23
- ],
24
- "scripts": {
25
- "test": "jest",
26
- "typescript": "tsc --noEmit",
27
- "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
- "prepare": "bob build",
29
- "release": "release-it",
30
- "example": "yarn --cwd example",
31
- "pods": "cd example && pod-install --quiet",
32
- "bootstrap": "yarn example && yarn && yarn pods"
33
- },
34
- "keywords": [
35
- "react",
36
- "react-native",
37
- "map4d",
38
- "services",
39
- "map4d-services",
40
- "iotlink"
41
- ],
42
- "repository": "https://github.com/map4d/map4d-services-react-native",
43
- "author": "IOTLink <admin@iotlink.com.vn> (https://iotlink.com.vn/)",
44
- "license": "MIT",
45
- "bugs": {
46
- "url": "https://github.com/map4d/map4d-services-react-native/issues"
47
- },
48
- "homepage": "https://github.com/map4d/map4d-services-react-native#readme",
49
- "publishConfig": {
50
- "registry": "https://registry.npmjs.org/"
51
- },
52
- "devDependencies": {
53
- "@commitlint/config-conventional": "^11.0.0",
54
- "@react-native-community/eslint-config": "^2.0.0",
55
- "@release-it/conventional-changelog": "^2.0.0",
56
- "@types/jest": "^26.0.0",
57
- "@types/react": "^16.9.19",
58
- "@types/react-native": "0.62.13",
59
- "commitlint": "^11.0.0",
60
- "eslint": "^7.2.0",
61
- "eslint-config-prettier": "^7.0.0",
62
- "eslint-plugin-prettier": "^3.1.3",
63
- "husky": "^6.0.0",
64
- "jest": "^26.0.1",
65
- "pod-install": "^0.1.0",
66
- "prettier": "^2.0.5",
67
- "react": "16.13.1",
68
- "react-native": "0.63.4",
69
- "react-native-builder-bob": "^0.18.0",
70
- "release-it": "^14.2.2",
71
- "typescript": "^4.1.3"
72
- },
73
- "peerDependencies": {
74
- "react": "*",
75
- "react-native": "*"
76
- },
77
- "jest": {
78
- "preset": "react-native",
79
- "modulePathIgnorePatterns": [
80
- "<rootDir>/example/node_modules",
81
- "<rootDir>/lib/"
82
- ]
83
- },
84
- "commitlint": {
85
- "extends": [
86
- "@commitlint/config-conventional"
87
- ]
88
- },
89
- "release-it": {
90
- "git": {
91
- "commitMessage": "chore: release ${version}",
92
- "tagName": "v${version}"
93
- },
94
- "npm": {
95
- "publish": true
96
- },
97
- "github": {
98
- "release": true
99
- },
100
- "plugins": {
101
- "@release-it/conventional-changelog": {
102
- "preset": "angular"
103
- }
104
- }
105
- },
106
- "eslintConfig": {
107
- "root": true,
108
- "extends": [
109
- "@react-native-community",
110
- "prettier"
111
- ],
112
- "rules": {
113
- "prettier/prettier": [
114
- "error",
115
- {
116
- "quoteProps": "consistent",
117
- "singleQuote": true,
118
- "tabWidth": 2,
119
- "trailingComma": "es5",
120
- "useTabs": false
121
- }
122
- ]
123
- }
124
- },
125
- "eslintIgnore": [
126
- "node_modules/",
127
- "lib/"
128
- ],
129
- "prettier": {
130
- "quoteProps": "consistent",
131
- "singleQuote": true,
132
- "tabWidth": 2,
133
- "trailingComma": "es5",
134
- "useTabs": false
135
- },
136
- "react-native-builder-bob": {
137
- "source": "src",
138
- "output": "lib",
139
- "targets": [
140
- "commonjs",
141
- "module",
142
- [
143
- "typescript",
144
- {
145
- "project": "tsconfig.build.json"
146
- }
147
- ]
148
- ]
149
- }
150
- }
1
+ {
2
+ "name": "react-native-map4d-services",
3
+ "version": "1.0.2",
4
+ "description": "React Native Map4dServices for iOS + Android",
5
+ "main": "lib/commonjs/index",
6
+ "module": "lib/module/index",
7
+ "types": "lib/typescript/index.d.ts",
8
+ "react-native": "src/index",
9
+ "source": "src/index",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "android",
14
+ "ios",
15
+ "cpp",
16
+ "react-native-map4d-services.podspec",
17
+ "!lib/typescript/example",
18
+ "!android/build",
19
+ "!ios/build",
20
+ "!**/__tests__",
21
+ "!**/__fixtures__",
22
+ "!**/__mocks__"
23
+ ],
24
+ "scripts": {
25
+ "test": "jest",
26
+ "typescript": "tsc --noEmit",
27
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
28
+ "prepare": "bob build",
29
+ "release": "release-it",
30
+ "example": "yarn --cwd example",
31
+ "pods": "cd example && pod-install --quiet",
32
+ "bootstrap": "yarn example && yarn && yarn pods"
33
+ },
34
+ "keywords": [
35
+ "react",
36
+ "react-native",
37
+ "map4d",
38
+ "services",
39
+ "map4d-services",
40
+ "iotlink"
41
+ ],
42
+ "repository": "https://github.com/map4d/map4d-services-react-native",
43
+ "author": "IOTLink <admin@iotlink.com.vn> (https://iotlink.com.vn/)",
44
+ "license": "MIT",
45
+ "bugs": {
46
+ "url": "https://github.com/map4d/map4d-services-react-native/issues"
47
+ },
48
+ "homepage": "https://github.com/map4d/map4d-services-react-native#readme",
49
+ "publishConfig": {
50
+ "registry": "https://registry.npmjs.org/"
51
+ },
52
+ "devDependencies": {
53
+ "@commitlint/config-conventional": "^11.0.0",
54
+ "@react-native-community/eslint-config": "^2.0.0",
55
+ "@release-it/conventional-changelog": "^2.0.0",
56
+ "@types/jest": "^26.0.0",
57
+ "@types/react": "^16.9.19",
58
+ "@types/react-native": "0.62.13",
59
+ "commitlint": "^11.0.0",
60
+ "eslint": "^7.2.0",
61
+ "eslint-config-prettier": "^7.0.0",
62
+ "eslint-plugin-prettier": "^3.1.3",
63
+ "husky": "^6.0.0",
64
+ "jest": "^26.0.1",
65
+ "pod-install": "^0.1.0",
66
+ "prettier": "^2.0.5",
67
+ "react": "16.13.1",
68
+ "react-native": "0.63.4",
69
+ "react-native-builder-bob": "^0.18.0",
70
+ "release-it": "^14.2.2",
71
+ "typescript": "^4.1.3"
72
+ },
73
+ "peerDependencies": {
74
+ "react": "*",
75
+ "react-native": "*"
76
+ },
77
+ "jest": {
78
+ "preset": "react-native",
79
+ "modulePathIgnorePatterns": [
80
+ "<rootDir>/example/node_modules",
81
+ "<rootDir>/lib/"
82
+ ]
83
+ },
84
+ "commitlint": {
85
+ "extends": [
86
+ "@commitlint/config-conventional"
87
+ ]
88
+ },
89
+ "release-it": {
90
+ "git": {
91
+ "commitMessage": "chore: release ${version}",
92
+ "tagName": "v${version}"
93
+ },
94
+ "npm": {
95
+ "publish": true
96
+ },
97
+ "github": {
98
+ "release": true
99
+ },
100
+ "plugins": {
101
+ "@release-it/conventional-changelog": {
102
+ "preset": "angular"
103
+ }
104
+ }
105
+ },
106
+ "eslintConfig": {
107
+ "root": true,
108
+ "extends": [
109
+ "@react-native-community",
110
+ "prettier"
111
+ ],
112
+ "rules": {
113
+ "prettier/prettier": [
114
+ "error",
115
+ {
116
+ "quoteProps": "consistent",
117
+ "singleQuote": true,
118
+ "tabWidth": 2,
119
+ "trailingComma": "es5",
120
+ "useTabs": false
121
+ }
122
+ ]
123
+ }
124
+ },
125
+ "eslintIgnore": [
126
+ "node_modules/",
127
+ "lib/"
128
+ ],
129
+ "prettier": {
130
+ "quoteProps": "consistent",
131
+ "singleQuote": true,
132
+ "tabWidth": 2,
133
+ "trailingComma": "es5",
134
+ "useTabs": false
135
+ },
136
+ "react-native-builder-bob": {
137
+ "source": "src",
138
+ "output": "lib",
139
+ "targets": [
140
+ "commonjs",
141
+ "module",
142
+ [
143
+ "typescript",
144
+ {
145
+ "project": "tsconfig.build.json"
146
+ }
147
+ ]
148
+ ]
149
+ }
150
+ }
@@ -1,20 +1,20 @@
1
- require "json"
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = "react-native-map4d-services"
7
- s.version = package["version"]
8
- s.summary = package["description"]
9
- s.homepage = package["homepage"]
10
- s.license = package["license"]
11
- s.authors = package["author"]
12
-
13
- s.platforms = { :ios => "10.0" }
14
- s.source = { :git => "https://github.com/map4d/map4d-services-react-native.git", :tag => "#{s.version}" }
15
-
16
- s.source_files = "ios/**/*.{h,m,mm}"
17
-
18
- s.dependency "React-Core"
19
- s.dependency "Map4dServices"
20
- end
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "react-native-map4d-services"
7
+ s.version = package["version"]
8
+ s.summary = package["description"]
9
+ s.homepage = package["homepage"]
10
+ s.license = package["license"]
11
+ s.authors = package["author"]
12
+
13
+ s.platforms = { :ios => "10.0" }
14
+ s.source = { :git => "https://github.com/map4d/map4d-services-react-native.git", :tag => "#{s.version}" }
15
+
16
+ s.source_files = "ios/**/*.{h,m,mm}"
17
+
18
+ s.dependency "React-Core"
19
+ s.dependency "Map4dServices", "~> 2.0.0"
20
+ end