react-native-pointr 9.5.0 → 9.7.0

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 (79) hide show
  1. package/API_REFERENCE.md +1035 -557
  2. package/CHANGELOG.md +12 -0
  3. package/README.md +75 -216
  4. package/android/build.gradle +1 -1
  5. package/android/src/main/java/com/pointr/PTRMapWidgetManager.kt +156 -0
  6. package/ios/PTRMapWidgetContainerView.swift +179 -1
  7. package/ios/PTRMapWidgetManager-Bridging.m +6 -0
  8. package/ios/PTRNativeLibrary.swift +14 -0
  9. package/package.json +30 -6
  10. package/react-native-pointr.podspec +1 -1
  11. package/src/PTRMapWidgetUtils.ts +2 -8
  12. package/src/api/MapWidgetApi.ts +45 -0
  13. package/src/api/PointrSdk.ts +241 -0
  14. package/src/api/index.ts +9 -0
  15. package/src/commands/index.ts +275 -0
  16. package/src/components/index.tsx +130 -0
  17. package/src/constants/index.ts +104 -0
  18. package/src/hooks/index.ts +8 -0
  19. package/src/hooks/usePointrEvents.ts +40 -0
  20. package/src/hooks/usePointrPois.ts +41 -0
  21. package/src/hooks/usePointrPosition.ts +31 -0
  22. package/src/hooks/usePointrSdk.ts +41 -0
  23. package/src/index.tsx +87 -7
  24. package/src/{PTRPoiManager.ts → managers/PTRPoiManager.ts} +1 -1
  25. package/src/types/config.ts +57 -0
  26. package/src/types/events.ts +106 -0
  27. package/src/types/index.ts +35 -0
  28. package/.vscode/settings.json +0 -21
  29. package/example/pointr_rn_demo/.bundle/config +0 -2
  30. package/example/pointr_rn_demo/.eslintrc.js +0 -4
  31. package/example/pointr_rn_demo/.prettierrc.js +0 -5
  32. package/example/pointr_rn_demo/.watchmanconfig +0 -1
  33. package/example/pointr_rn_demo/App.tsx +0 -323
  34. package/example/pointr_rn_demo/Gemfile +0 -16
  35. package/example/pointr_rn_demo/Gemfile.lock +0 -111
  36. package/example/pointr_rn_demo/README.md +0 -188
  37. package/example/pointr_rn_demo/__tests__/App.test.tsx +0 -13
  38. package/example/pointr_rn_demo/android/app/build.gradle +0 -119
  39. package/example/pointr_rn_demo/android/app/debug.keystore +0 -0
  40. package/example/pointr_rn_demo/android/app/proguard-rules.pro +0 -10
  41. package/example/pointr_rn_demo/android/app/src/main/AndroidManifest.xml +0 -27
  42. package/example/pointr_rn_demo/android/app/src/main/java/com/pointr_rn_demo/MainActivity.kt +0 -22
  43. package/example/pointr_rn_demo/android/app/src/main/java/com/pointr_rn_demo/MainApplication.kt +0 -27
  44. package/example/pointr_rn_demo/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  45. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  46. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  47. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  48. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  49. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  50. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  51. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  52. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  53. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  54. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  55. package/example/pointr_rn_demo/android/app/src/main/res/values/strings.xml +0 -3
  56. package/example/pointr_rn_demo/android/app/src/main/res/values/styles.xml +0 -9
  57. package/example/pointr_rn_demo/android/build.gradle +0 -34
  58. package/example/pointr_rn_demo/android/gradle.properties +0 -44
  59. package/example/pointr_rn_demo/android/settings.gradle +0 -6
  60. package/example/pointr_rn_demo/app.json +0 -4
  61. package/example/pointr_rn_demo/babel.config.js +0 -3
  62. package/example/pointr_rn_demo/index.js +0 -16
  63. package/example/pointr_rn_demo/ios/.xcode.env +0 -11
  64. package/example/pointr_rn_demo/ios/Podfile +0 -40
  65. package/example/pointr_rn_demo/ios/pointr_rn_demo/AppDelegate.swift +0 -48
  66. package/example/pointr_rn_demo/ios/pointr_rn_demo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  67. package/example/pointr_rn_demo/ios/pointr_rn_demo/Images.xcassets/Contents.json +0 -6
  68. package/example/pointr_rn_demo/ios/pointr_rn_demo/Info.plist +0 -63
  69. package/example/pointr_rn_demo/ios/pointr_rn_demo/LaunchScreen.storyboard +0 -47
  70. package/example/pointr_rn_demo/ios/pointr_rn_demo/PrivacyInfo.xcprivacy +0 -37
  71. package/example/pointr_rn_demo/ios/pointr_rn_demo.xcodeproj/project.pbxproj +0 -488
  72. package/example/pointr_rn_demo/ios/pointr_rn_demo.xcodeproj/xcshareddata/xcschemes/pointr_rn_demo.xcscheme +0 -88
  73. package/example/pointr_rn_demo/ios/pointr_rn_demo.xcworkspace/contents.xcworkspacedata +0 -10
  74. package/example/pointr_rn_demo/jest.config.js +0 -3
  75. package/example/pointr_rn_demo/metro.config.js +0 -22
  76. package/example/pointr_rn_demo/package.json +0 -47
  77. package/example/pointr_rn_demo/prepare-demo-distribution.sh +0 -103
  78. package/example/pointr_rn_demo/tsconfig.json +0 -5
  79. package/prepare-distribution.sh +0 -151
@@ -1,16 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby ">= 2.6.10"
5
-
6
- # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
- gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
- gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
- gem 'xcodeproj', '< 1.26.0'
10
- gem 'concurrent-ruby', '< 1.3.4'
11
-
12
- # Ruby 3.4.0 has removed some libraries from the standard library.
13
- gem 'bigdecimal'
14
- gem 'logger'
15
- gem 'benchmark'
16
- gem 'mutex_m'
@@ -1,111 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- CFPropertyList (3.0.8)
5
- activesupport (6.1.7.10)
6
- concurrent-ruby (~> 1.0, >= 1.0.2)
7
- i18n (>= 1.6, < 2)
8
- minitest (>= 5.1)
9
- tzinfo (~> 2.0)
10
- zeitwerk (~> 2.3)
11
- addressable (2.8.7)
12
- public_suffix (>= 2.0.2, < 7.0)
13
- algoliasearch (1.27.5)
14
- httpclient (~> 2.8, >= 2.8.3)
15
- json (>= 1.5.1)
16
- atomos (0.1.3)
17
- benchmark (0.5.0)
18
- bigdecimal (3.3.1)
19
- claide (1.1.0)
20
- cocoapods (1.15.2)
21
- addressable (~> 2.8)
22
- claide (>= 1.0.2, < 2.0)
23
- cocoapods-core (= 1.15.2)
24
- cocoapods-deintegrate (>= 1.0.3, < 2.0)
25
- cocoapods-downloader (>= 2.1, < 3.0)
26
- cocoapods-plugins (>= 1.0.0, < 2.0)
27
- cocoapods-search (>= 1.0.0, < 2.0)
28
- cocoapods-trunk (>= 1.6.0, < 2.0)
29
- cocoapods-try (>= 1.1.0, < 2.0)
30
- colored2 (~> 3.1)
31
- escape (~> 0.0.4)
32
- fourflusher (>= 2.3.0, < 3.0)
33
- gh_inspector (~> 1.0)
34
- molinillo (~> 0.8.0)
35
- nap (~> 1.0)
36
- ruby-macho (>= 2.3.0, < 3.0)
37
- xcodeproj (>= 1.23.0, < 2.0)
38
- cocoapods-core (1.15.2)
39
- activesupport (>= 5.0, < 8)
40
- addressable (~> 2.8)
41
- algoliasearch (~> 1.0)
42
- concurrent-ruby (~> 1.1)
43
- fuzzy_match (~> 2.0.4)
44
- nap (~> 1.0)
45
- netrc (~> 0.11)
46
- public_suffix (~> 4.0)
47
- typhoeus (~> 1.0)
48
- cocoapods-deintegrate (1.0.5)
49
- cocoapods-downloader (2.1)
50
- cocoapods-plugins (1.0.0)
51
- nap
52
- cocoapods-search (1.0.1)
53
- cocoapods-trunk (1.6.0)
54
- nap (>= 0.8, < 2.0)
55
- netrc (~> 0.11)
56
- cocoapods-try (1.2.0)
57
- colored2 (3.1.2)
58
- concurrent-ruby (1.3.3)
59
- escape (0.0.4)
60
- ethon (0.15.0)
61
- ffi (>= 1.15.0)
62
- ffi (1.17.2)
63
- fourflusher (2.3.1)
64
- fuzzy_match (2.0.4)
65
- gh_inspector (1.1.3)
66
- httpclient (2.9.0)
67
- mutex_m
68
- i18n (1.14.7)
69
- concurrent-ruby (~> 1.0)
70
- json (2.7.6)
71
- logger (1.7.0)
72
- minitest (5.25.4)
73
- molinillo (0.8.0)
74
- mutex_m (0.3.0)
75
- nanaimo (0.3.0)
76
- nap (1.1.0)
77
- netrc (0.11.0)
78
- public_suffix (4.0.7)
79
- rexml (3.4.4)
80
- ruby-macho (2.5.1)
81
- typhoeus (1.5.0)
82
- ethon (>= 0.9.0, < 0.16.0)
83
- tzinfo (2.0.6)
84
- concurrent-ruby (~> 1.0)
85
- xcodeproj (1.25.1)
86
- CFPropertyList (>= 2.3.3, < 4.0)
87
- atomos (~> 0.1.3)
88
- claide (>= 1.0.2, < 2.0)
89
- colored2 (~> 3.1)
90
- nanaimo (~> 0.3.0)
91
- rexml (>= 3.3.6, < 4.0)
92
- zeitwerk (2.6.18)
93
-
94
- PLATFORMS
95
- ruby
96
-
97
- DEPENDENCIES
98
- activesupport (>= 6.1.7.5, != 7.1.0)
99
- benchmark
100
- bigdecimal
101
- cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
102
- concurrent-ruby (< 1.3.4)
103
- logger
104
- mutex_m
105
- xcodeproj (< 1.26.0)
106
-
107
- RUBY VERSION
108
- ruby 2.6.10p210
109
-
110
- BUNDLED WITH
111
- 2.4.22
@@ -1,188 +0,0 @@
1
- # Pointr React Native Demo
2
-
3
- This is a demo [**React Native**](https://reactnative.dev) project showcasing the Pointr SDK integration, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
4
-
5
- # Getting Started
6
-
7
- > **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
8
-
9
- ## Prerequisites
10
-
11
- - Node.js >= 20
12
- - React Native 0.82.1
13
- - Xcode (for iOS development)
14
- - Android Studio (for Android development)
15
-
16
- ## Setup Instructions
17
-
18
- ### Step 1: Install React Native Pointr Package
19
-
20
- This demo requires the `react-native-pointr` package. You have two options:
21
-
22
- #### Option A: Local Package (Recommended for Testing)
23
-
24
- 1. Place the `react-native-pointr` package in the parent directory structure
25
- 2. The demo expects the package at: `../../../react-native-pointr` (relative to the demo folder)
26
- 3. Verify the path in `package.json` under dependencies:
27
- ```json
28
- "react-native-pointr": "file:../../../react-native-pointr"
29
- ```
30
-
31
- #### Option B: Published Package
32
-
33
- If the package is published to npm, update `package.json` to reference it:
34
-
35
- ```json
36
- "react-native-pointr": "^9.5.0"
37
- ```
38
-
39
- ### Step 2: Configure Pointr Credentials
40
-
41
- Before installing dependencies, you need to configure your Pointr credentials:
42
-
43
- #### Android (android/build.gradle)
44
-
45
- Replace the Maven credentials in `android/build.gradle`:
46
-
47
- ```gradle
48
- credentials {
49
- username 'YOUR_MAVEN_USERNAME' // Replace with your Maven username
50
- password 'YOUR_MAVEN_PASSWORD' // Replace with your Maven password
51
- }
52
- ```
53
-
54
- #### iOS (ios/Podfile)
55
-
56
- Replace the Pointr SDK token in `ios/Podfile` (line 4):
57
-
58
- ```ruby
59
- ENV['POINTR_SDK_TOKEN'] = 'YOUR_POINTR_SDK_TOKEN' // Replace with your SDK token
60
- ```
61
-
62
- #### App Configuration (App.tsx)
63
-
64
- Replace the Pointr SDK credentials in `App.tsx` (lines 54-56 and 276-278):
65
-
66
- ```typescript
67
- NativeModules.PTRNativePointrLibrary.initialize(
68
- "YOUR_CLIENT_ID", // Replace with your client ID
69
- "YOUR_LICENSE_KEY", // Replace with your license key
70
- "https://your-instance.pointr.cloud", // Replace with your instance URL
71
- 0
72
- );
73
- ```
74
-
75
- ### Step 3: Install Dependencies
76
-
77
- ```bash
78
- npm install
79
- cd ios && pod install && cd ..
80
- ```
81
-
82
- Or use the reset script for a complete setup:
83
-
84
- ```bash
85
- npm run reset
86
- ```
87
-
88
- ### Step 4: Start Metro
89
-
90
- First, you will need to run **Metro**, the JavaScript build tool for React Native.
91
-
92
- To start the Metro dev server, run the following command from the root of your React Native project:
93
-
94
- ```sh
95
- # Using npm
96
- npm start
97
-
98
- # OR using Yarn
99
- yarn start
100
- ```
101
-
102
- ### Step 5: Build and Run Your App
103
-
104
- With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:
105
-
106
- ### For Android
107
-
108
- ```sh
109
- # Using npm
110
- npm run android
111
-
112
- # OR using Yarn
113
- yarn android
114
- ```
115
-
116
- ### For iOS
117
-
118
- ```sh
119
- # Using npm
120
- npm run ios
121
-
122
- # OR using Yarn
123
- yarn ios
124
- ```
125
-
126
- If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.
127
-
128
- This is one way to run your app — you can also build it directly from Android Studio or Xcode.
129
-
130
- ## Features Demonstrated
131
-
132
- This demo showcases the following Pointr SDK capabilities:
133
-
134
- - **Map Widget Integration**: Shows how to integrate and display the Pointr map
135
- - **POI Management**: Demonstrates fetching and displaying Points of Interest
136
- - **Navigation Commands**: Examples of various map commands (site, building, level, POI, path)
137
- - **Geofence Events**: Listening to geofence enter/exit events
138
- - **Wayfinding Events**: Tracking wayfinding navigation state
139
- - **My Car Feature**: Marking and showing saved car locations
140
-
141
- ## Available Scripts
142
-
143
- - `npm start` - Start Metro bundler
144
- - `npm run android` - Run on Android
145
- - `npm run ios` - Run on iOS
146
- - `npm run clean` - Clean build artifacts and caches
147
- - `npm run reset` - Complete reset (clean + install + pod install)
148
- - `npm run lint` - Run ESLint
149
- - `npm test` - Run tests
150
- - `npm run prepare-dist` - Create distribution package
151
-
152
- ## Modifying the App
153
-
154
- Now that you have successfully run the app, let's make changes!
155
-
156
- Open `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).
157
-
158
- When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:
159
-
160
- - **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
161
- - **iOS**: Press <kbd>R</kbd> in iOS Simulator.
162
-
163
- # Pointr SDK Documentation
164
-
165
- For more information about the Pointr React Native SDK, please refer to the main package documentation.
166
-
167
- ## Congratulations! :tada:
168
-
169
- You've successfully run and modified your React Native App. :partying_face:
170
-
171
- ### Now what?
172
-
173
- - If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
174
- - If you're curious to learn more about React Native, check out the [docs](https://reactnative.dev/docs/getting-started).
175
-
176
- # Troubleshooting
177
-
178
- If you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
179
-
180
- # Learn More
181
-
182
- To learn more about React Native, take a look at the following resources:
183
-
184
- - [React Native Website](https://reactnative.dev) - learn more about React Native.
185
- - [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
186
- - [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
187
- - [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
188
- - [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
@@ -1,13 +0,0 @@
1
- /**
2
- * @format
3
- */
4
-
5
- import React from 'react';
6
- import ReactTestRenderer from 'react-test-renderer';
7
- import App from '../App';
8
-
9
- test('renders correctly', async () => {
10
- await ReactTestRenderer.act(() => {
11
- ReactTestRenderer.create(<App />);
12
- });
13
- });
@@ -1,119 +0,0 @@
1
- apply plugin: "com.android.application"
2
- apply plugin: "org.jetbrains.kotlin.android"
3
- apply plugin: "com.facebook.react"
4
-
5
- /**
6
- * This is the configuration block to customize your React Native Android app.
7
- * By default you don't need to apply any configuration, just uncomment the lines you need.
8
- */
9
- react {
10
- /* Folders */
11
- // The root of your project, i.e. where "package.json" lives. Default is '../..'
12
- // root = file("../../")
13
- // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14
- // reactNativeDir = file("../../node_modules/react-native")
15
- // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16
- // codegenDir = file("../../node_modules/@react-native/codegen")
17
- // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18
- // cliFile = file("../../node_modules/react-native/cli.js")
19
-
20
- /* Variants */
21
- // The list of variants to that are debuggable. For those we're going to
22
- // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
23
- // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
24
- // debuggableVariants = ["liteDebug", "prodDebug"]
25
-
26
- /* Bundling */
27
- // A list containing the node command and its flags. Default is just 'node'.
28
- // nodeExecutableAndArgs = ["node"]
29
- //
30
- // The command to run when bundling. By default is 'bundle'
31
- // bundleCommand = "ram-bundle"
32
- //
33
- // The path to the CLI configuration file. Default is empty.
34
- // bundleConfig = file(../rn-cli.config.js)
35
- //
36
- // The name of the generated asset file containing your JS bundle
37
- // bundleAssetName = "MyApplication.android.bundle"
38
- //
39
- // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
40
- // entryFile = file("../js/MyApplication.android.js")
41
- //
42
- // A list of extra flags to pass to the 'bundle' commands.
43
- // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
44
- // extraPackagerArgs = []
45
-
46
- /* Hermes Commands */
47
- // The hermes compiler command to run. By default it is 'hermesc'
48
- // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
49
- //
50
- // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
51
- // hermesFlags = ["-O", "-output-source-map"]
52
-
53
- /* Autolinking */
54
- autolinkLibrariesWithApp()
55
- }
56
-
57
- /**
58
- * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
59
- */
60
- def enableProguardInReleaseBuilds = false
61
-
62
- /**
63
- * The preferred build flavor of JavaScriptCore (JSC)
64
- *
65
- * For example, to use the international variant, you can use:
66
- * `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
67
- *
68
- * The international variant includes ICU i18n library and necessary data
69
- * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
70
- * give correct results when using with locales other than en-US. Note that
71
- * this variant is about 6MiB larger per architecture than default.
72
- */
73
- def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
74
-
75
- android {
76
- ndkVersion rootProject.ext.ndkVersion
77
- buildToolsVersion rootProject.ext.buildToolsVersion
78
- compileSdk rootProject.ext.compileSdkVersion
79
-
80
- namespace "com.pointr_rn_demo"
81
- defaultConfig {
82
- applicationId "com.pointr_rn_demo"
83
- minSdkVersion rootProject.ext.minSdkVersion
84
- targetSdkVersion rootProject.ext.targetSdkVersion
85
- versionCode 1
86
- versionName "1.0"
87
- }
88
- signingConfigs {
89
- debug {
90
- storeFile file('debug.keystore')
91
- storePassword 'android'
92
- keyAlias 'androiddebugkey'
93
- keyPassword 'android'
94
- }
95
- }
96
- buildTypes {
97
- debug {
98
- signingConfig signingConfigs.debug
99
- }
100
- release {
101
- // Caution! In production, you need to generate your own keystore file.
102
- // see https://reactnative.dev/docs/signed-apk-android.
103
- signingConfig signingConfigs.debug
104
- minifyEnabled enableProguardInReleaseBuilds
105
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
106
- }
107
- }
108
- }
109
-
110
- dependencies {
111
- // The version of react-native is set by the React Native Gradle Plugin
112
- implementation("com.facebook.react:react-android:0.82.1")
113
-
114
- if (hermesEnabled.toBoolean()) {
115
- implementation("com.facebook.react:hermes-android:0.82.1")
116
- } else {
117
- implementation jscFlavor
118
- }
119
- }
@@ -1,10 +0,0 @@
1
- # Add project specific ProGuard rules here.
2
- # By default, the flags in this file are appended to flags specified
3
- # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
- # You can edit the include path and order by changing the proguardFiles
5
- # directive in build.gradle.
6
- #
7
- # For more details, see
8
- # http://developer.android.com/guide/developing/tools/proguard.html
9
-
10
- # Add any project specific keep options here:
@@ -1,27 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
-
3
- <uses-permission android:name="android.permission.INTERNET" />
4
-
5
- <application
6
- android:name=".MainApplication"
7
- android:label="@string/app_name"
8
- android:icon="@mipmap/ic_launcher"
9
- android:roundIcon="@mipmap/ic_launcher_round"
10
- android:allowBackup="false"
11
- android:theme="@style/AppTheme"
12
- android:usesCleartextTraffic="${usesCleartextTraffic}"
13
- android:supportsRtl="true">
14
- <activity
15
- android:name=".MainActivity"
16
- android:label="@string/app_name"
17
- android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
18
- android:launchMode="singleTask"
19
- android:windowSoftInputMode="adjustResize"
20
- android:exported="true">
21
- <intent-filter>
22
- <action android:name="android.intent.action.MAIN" />
23
- <category android:name="android.intent.category.LAUNCHER" />
24
- </intent-filter>
25
- </activity>
26
- </application>
27
- </manifest>
@@ -1,22 +0,0 @@
1
- package com.pointr_rn_demo
2
-
3
- import com.facebook.react.ReactActivity
4
- import com.facebook.react.ReactActivityDelegate
5
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6
- import com.facebook.react.defaults.DefaultReactActivityDelegate
7
-
8
- class MainActivity : ReactActivity() {
9
-
10
- /**
11
- * Returns the name of the main component registered from JavaScript. This is used to schedule
12
- * rendering of the component.
13
- */
14
- override fun getMainComponentName(): String = "pointr_rn_demo"
15
-
16
- /**
17
- * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
18
- * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
19
- */
20
- override fun createReactActivityDelegate(): ReactActivityDelegate =
21
- DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
22
- }
@@ -1,27 +0,0 @@
1
- package com.pointr_rn_demo
2
-
3
- import android.app.Application
4
- import com.facebook.react.PackageList
5
- import com.facebook.react.ReactApplication
6
- import com.facebook.react.ReactHost
7
- import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
8
- import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
9
-
10
- class MainApplication : Application(), ReactApplication {
11
-
12
- override val reactHost: ReactHost by lazy {
13
- getDefaultReactHost(
14
- context = applicationContext,
15
- packageList =
16
- PackageList(this).packages.apply {
17
- // Packages that cannot be autolinked yet can be added manually here, for example:
18
- // add(MyReactNativePackage())
19
- },
20
- )
21
- }
22
-
23
- override fun onCreate() {
24
- super.onCreate()
25
- loadReactNative(this)
26
- }
27
- }
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Copyright (C) 2014 The Android Open Source Project
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- -->
16
- <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
- android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
- android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
- android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
- android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
- >
22
-
23
- <selector>
24
- <!--
25
- This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
- The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
- NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
-
29
- <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
-
31
- For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
- -->
33
- <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
- <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
- </selector>
36
-
37
- </inset>
@@ -1,3 +0,0 @@
1
- <resources>
2
- <string name="app_name">pointr_rn_demo</string>
3
- </resources>
@@ -1,9 +0,0 @@
1
- <resources>
2
-
3
- <!-- Base application theme. -->
4
- <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
5
- <!-- Customize your theme here. -->
6
- <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
- </style>
8
-
9
- </resources>
@@ -1,34 +0,0 @@
1
- buildscript {
2
- ext {
3
- buildToolsVersion = "36.0.0"
4
- minSdkVersion = 24
5
- compileSdkVersion = 36
6
- targetSdkVersion = 36
7
- ndkVersion = "27.1.12297006"
8
- kotlinVersion = "2.2.21"
9
- }
10
- repositories {
11
- google()
12
- mavenCentral()
13
- }
14
- dependencies {
15
- classpath("com.facebook.react:react-native-gradle-plugin")
16
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
17
- }
18
- }
19
-
20
- allprojects {
21
- repositories {
22
- google()
23
- mavenCentral()
24
- maven {
25
- url "https://android.pointr.dev/artifactory/gradle-release-local"
26
- credentials {
27
- username 'discover'
28
- password 'AKCp5ejy2i3iwwJbXZzCTvtgcarhYWLztx1TCxXzBdhhMK4Qjhp945jz7JwtMK5SBoARGLkdF'
29
- }
30
- }
31
- }
32
- }
33
-
34
- apply plugin: "com.facebook.react.rootproject"