@flybits/react-native-concierge 0.0.0 → 0.1.8

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/package.json CHANGED
@@ -1,14 +1,195 @@
1
1
  {
2
2
  "name": "@flybits/react-native-concierge",
3
- "publishConfig": {
4
- "access": "public"
3
+ "version": "0.1.8",
4
+ "description": "A React Native wrapper for the Flybits Concierge",
5
+ "source": "./src/index.tsx",
6
+ "main": "./lib/commonjs/index.js",
7
+ "module": "./lib/module/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./lib/typescript/module/src/index.d.ts",
12
+ "default": "./lib/module/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./lib/typescript/commonjs/src/index.d.ts",
16
+ "default": "./lib/commonjs/index.js"
17
+ }
18
+ }
5
19
  },
6
- "version": "0.0.0",
7
- "main": "index.js",
20
+ "files": [
21
+ "lib",
22
+ "android",
23
+ "ios",
24
+ "cpp",
25
+ "*.podspec",
26
+ "!ios/build",
27
+ "!android/build",
28
+ "!android/gradle",
29
+ "!android/gradlew",
30
+ "!android/gradlew.bat",
31
+ "!android/local.properties",
32
+ "!**/__tests__",
33
+ "!**/__fixtures__",
34
+ "!**/__mocks__",
35
+ "!**/.*"
36
+ ],
8
37
  "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1"
38
+ "example": "yarn workspace react-native-concierge-example",
39
+ "test": "jest",
40
+ "typecheck": "tsc",
41
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
42
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
43
+ "prepare-rc": "bob build",
44
+ "release-rc": "release-it --preRelease=rc",
45
+ "prepare-alpha": "bob build && babel --plugins transform-remove-console ./lib/commonjs/index.js --out-file ./lib/commonjs/index.js && babel --plugins transform-remove-console ./lib/module/index.js --out-file ./lib/module/index.js",
46
+ "release-alpha": "release-it --preRelease=alpha",
47
+ "prepare": "bob build && babel --plugins transform-remove-console ./lib/commonjs/index.js --out-file ./lib/commonjs/index.js && babel --plugins transform-remove-console ./lib/module/index.js --out-file ./lib/module/index.js",
48
+ "release": "release-it",
49
+ "prepare-beta": "bob build",
50
+ "release-beta": "release-it --preRelease=beta"
10
51
  },
11
- "author": "",
12
- "license": "ISC",
13
- "description": ""
52
+ "keywords": [
53
+ "react-native",
54
+ "ios",
55
+ "android"
56
+ ],
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+ssh://git@github.com/flybits/concierge-react-native-v2.git"
60
+ },
61
+ "author": "Flybits",
62
+ "license": "MIT",
63
+ "bugs": {
64
+ "url": "https://github.com/flybits/concierge-react-native-v2/issues"
65
+ },
66
+ "homepage": "https://github.com/flybits/concierge-react-native-v2#readme",
67
+ "dependencies": {
68
+ "react-native-url-polyfill": "^2.0.0"
69
+ },
70
+ "devDependencies": {
71
+ "@babel/cli": "^7.27.2",
72
+ "@commitlint/config-conventional": "^17.0.2",
73
+ "@evilmartians/lefthook": "^1.5.0",
74
+ "@react-native/eslint-config": "^0.73.1",
75
+ "@release-it/conventional-changelog": "^5.0.0",
76
+ "@types/jest": "^29.5.5",
77
+ "@types/react": "^18.2.44",
78
+ "babel-plugin-transform-remove-console": "^6.9.4",
79
+ "commitlint": "^17.0.2",
80
+ "del-cli": "^5.1.0",
81
+ "eslint": "^8.51.0",
82
+ "eslint-config-prettier": "^9.0.0",
83
+ "eslint-plugin-prettier": "^5.0.1",
84
+ "jest": "^29.7.0",
85
+ "prettier": "^3.0.3",
86
+ "react": "18.3.1",
87
+ "react-native": "0.75.4",
88
+ "react-native-builder-bob": "^0.30.2",
89
+ "release-it": "^19.0.0",
90
+ "turbo": "^1.10.7",
91
+ "typescript": "^5.2.2"
92
+ },
93
+ "resolutions": {
94
+ "@types/react": "^18.2.44"
95
+ },
96
+ "peerDependencies": {
97
+ "react": "*",
98
+ "react-native": "*"
99
+ },
100
+ "workspaces": [
101
+ "example"
102
+ ],
103
+ "packageManager": "yarn@3.6.1",
104
+ "jest": {
105
+ "preset": "react-native",
106
+ "modulePathIgnorePatterns": [
107
+ "<rootDir>/example/node_modules",
108
+ "<rootDir>/lib/"
109
+ ]
110
+ },
111
+ "commitlint": {
112
+ "extends": [
113
+ "@commitlint/config-conventional"
114
+ ]
115
+ },
116
+ "release-it": {
117
+ "git": {
118
+ "commitMessage": "chore: release ${version}",
119
+ "tagName": "v${version}"
120
+ },
121
+ "npm": {
122
+ "publish": true
123
+ },
124
+ "github": {
125
+ "release": true
126
+ },
127
+ "plugins": {
128
+ "@release-it/conventional-changelog": {
129
+ "preset": "angular",
130
+ "ignoreRecommendedBump": true
131
+ }
132
+ }
133
+ },
134
+ "eslintConfig": {
135
+ "root": true,
136
+ "extends": [
137
+ "@react-native",
138
+ "prettier"
139
+ ],
140
+ "rules": {
141
+ "react/react-in-jsx-scope": "off",
142
+ "prettier/prettier": [
143
+ "error",
144
+ {
145
+ "quoteProps": "consistent",
146
+ "singleQuote": true,
147
+ "tabWidth": 2,
148
+ "trailingComma": "es5",
149
+ "useTabs": false
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "eslintIgnore": [
155
+ "node_modules/",
156
+ "lib/"
157
+ ],
158
+ "prettier": {
159
+ "quoteProps": "consistent",
160
+ "singleQuote": true,
161
+ "tabWidth": 2,
162
+ "trailingComma": "es5",
163
+ "useTabs": false
164
+ },
165
+ "react-native-builder-bob": {
166
+ "source": "src",
167
+ "output": "lib",
168
+ "targets": [
169
+ [
170
+ "commonjs",
171
+ {
172
+ "esm": true
173
+ }
174
+ ],
175
+ [
176
+ "module",
177
+ {
178
+ "esm": true
179
+ }
180
+ ],
181
+ [
182
+ "typescript",
183
+ {
184
+ "project": "tsconfig.build.json",
185
+ "esm": true
186
+ }
187
+ ]
188
+ ]
189
+ },
190
+ "create-react-native-library": {
191
+ "type": "view-legacy",
192
+ "languages": "kotlin-swift",
193
+ "version": "0.41.2"
194
+ }
14
195
  }
@@ -0,0 +1,48 @@
1
+ require "json"
2
+
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'
5
+
6
+ Pod::Spec.new do |s|
7
+ s.name = "react-native-concierge"
8
+ s.version = package["version"]
9
+ s.summary = package["description"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
12
+ s.authors = package["author"]
13
+
14
+ s.platforms = { :ios => min_ios_version_supported }
15
+ s.source = { :git => "https://github.com/flybits/concierge-react-native-v2.git", :tag => "#{s.version}" }
16
+
17
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
18
+
19
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
20
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
21
+
22
+ s.dependency "FlybitsConcierge", "~> 5.1.7-rc1"
23
+ s.dependency "FlybitsContextLocationPluginSDK", "~> 5.1.7-rc1"
24
+
25
+ if respond_to?(:install_modules_dependencies, true)
26
+ install_modules_dependencies(s)
27
+ else
28
+ s.dependency "React-Core"
29
+
30
+ # Don't install the dependencies when we run `pod install` in the old architecture.
31
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
32
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
33
+ s.pod_target_xcconfig = {
34
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
35
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
36
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
37
+ }
38
+ s.dependency "React-RCTFabric"
39
+ s.dependency "React-Codegen"
40
+ s.dependency "RCT-Folly"
41
+ s.dependency "RCTRequired"
42
+ s.dependency "RCTTypeSafety"
43
+ s.dependency "ReactCommon/turbomodule/core"
44
+
45
+ end
46
+ end
47
+
48
+ end