react-native-pointr 9.3.1 → 9.6.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 (58) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/com/pointr/PTRMapWidgetManager.kt +5 -5
  4. package/package.json +15 -2
  5. package/react-native-pointr.podspec +1 -1
  6. package/example/pointr_rn_demo/.bundle/config +0 -2
  7. package/example/pointr_rn_demo/.eslintrc.js +0 -4
  8. package/example/pointr_rn_demo/.prettierrc.js +0 -5
  9. package/example/pointr_rn_demo/.watchmanconfig +0 -1
  10. package/example/pointr_rn_demo/App.tsx +0 -323
  11. package/example/pointr_rn_demo/Gemfile +0 -16
  12. package/example/pointr_rn_demo/Gemfile.lock +0 -111
  13. package/example/pointr_rn_demo/README.md +0 -188
  14. package/example/pointr_rn_demo/__tests__/App.test.tsx +0 -13
  15. package/example/pointr_rn_demo/android/app/build.gradle +0 -119
  16. package/example/pointr_rn_demo/android/app/debug.keystore +0 -0
  17. package/example/pointr_rn_demo/android/app/proguard-rules.pro +0 -10
  18. package/example/pointr_rn_demo/android/app/src/main/AndroidManifest.xml +0 -27
  19. package/example/pointr_rn_demo/android/app/src/main/java/com/pointr_rn_demo/MainActivity.kt +0 -22
  20. package/example/pointr_rn_demo/android/app/src/main/java/com/pointr_rn_demo/MainApplication.kt +0 -27
  21. package/example/pointr_rn_demo/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  22. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  23. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  24. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  25. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  26. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  27. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  28. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  29. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  30. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  31. package/example/pointr_rn_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  32. package/example/pointr_rn_demo/android/app/src/main/res/values/strings.xml +0 -3
  33. package/example/pointr_rn_demo/android/app/src/main/res/values/styles.xml +0 -9
  34. package/example/pointr_rn_demo/android/build.gradle +0 -32
  35. package/example/pointr_rn_demo/android/gradle.properties +0 -44
  36. package/example/pointr_rn_demo/android/settings.gradle +0 -6
  37. package/example/pointr_rn_demo/app.json +0 -4
  38. package/example/pointr_rn_demo/babel.config.js +0 -3
  39. package/example/pointr_rn_demo/index.js +0 -16
  40. package/example/pointr_rn_demo/ios/.xcode.env +0 -11
  41. package/example/pointr_rn_demo/ios/Podfile +0 -40
  42. package/example/pointr_rn_demo/ios/Podfile.lock +0 -2767
  43. package/example/pointr_rn_demo/ios/pointr_rn_demo/AppDelegate.swift +0 -48
  44. package/example/pointr_rn_demo/ios/pointr_rn_demo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  45. package/example/pointr_rn_demo/ios/pointr_rn_demo/Images.xcassets/Contents.json +0 -6
  46. package/example/pointr_rn_demo/ios/pointr_rn_demo/Info.plist +0 -63
  47. package/example/pointr_rn_demo/ios/pointr_rn_demo/LaunchScreen.storyboard +0 -47
  48. package/example/pointr_rn_demo/ios/pointr_rn_demo/PrivacyInfo.xcprivacy +0 -37
  49. package/example/pointr_rn_demo/ios/pointr_rn_demo.xcodeproj/project.pbxproj +0 -496
  50. package/example/pointr_rn_demo/ios/pointr_rn_demo.xcodeproj/xcshareddata/xcschemes/pointr_rn_demo.xcscheme +0 -88
  51. package/example/pointr_rn_demo/ios/pointr_rn_demo.xcworkspace/contents.xcworkspacedata +0 -10
  52. package/example/pointr_rn_demo/jest.config.js +0 -3
  53. package/example/pointr_rn_demo/metro.config.js +0 -22
  54. package/example/pointr_rn_demo/package-lock.json +0 -11747
  55. package/example/pointr_rn_demo/package.json +0 -46
  56. package/example/pointr_rn_demo/prepare-demo-distribution.sh +0 -103
  57. package/example/pointr_rn_demo/tsconfig.json +0 -5
  58. package/prepare-distribution.sh +0 -84
@@ -1,46 +0,0 @@
1
- {
2
- "name": "pointr_rn_demo",
3
- "version": "9.3.1",
4
- "private": true,
5
- "scripts": {
6
- "clean": "watchman watch-del-all || true && rm -rf node_modules ios/Pods ios/Podfile.lock ios/build android/.gradle android/app/build android/build",
7
- "reset": "npm run clean && npm install && cd ios && pod install && cd ..",
8
- "start": "npx react-native start",
9
- "start:clean": "npx react-native start --reset-cache",
10
- "android": "npx react-native run-android",
11
- "ios": "npx react-native run-ios",
12
- "lint": "eslint .",
13
- "test": "jest",
14
- "prepare-dist": "chmod +x prepare-demo-distribution.sh && ./prepare-demo-distribution.sh"
15
- },
16
- "dependencies": {
17
- "@react-native/new-app-screen": "0.82.1",
18
- "react": "19.1.1",
19
- "react-native": "0.82.1",
20
- "react-native-pointr": "file:../../../react-native-pointr",
21
- "react-native-safe-area-context": "^5.6.2"
22
- },
23
- "devDependencies": {
24
- "@babel/core": "^7.25.2",
25
- "@babel/preset-env": "^7.25.3",
26
- "@babel/runtime": "^7.25.0",
27
- "@react-native-community/cli": "20.0.0",
28
- "@react-native-community/cli-platform-android": "20.0.0",
29
- "@react-native-community/cli-platform-ios": "20.0.0",
30
- "@react-native/babel-preset": "0.82.1",
31
- "@react-native/eslint-config": "0.82.1",
32
- "@react-native/metro-config": "0.82.1",
33
- "@react-native/typescript-config": "0.82.1",
34
- "@types/jest": "^29.5.13",
35
- "@types/react": "^19.1.1",
36
- "@types/react-test-renderer": "^19.1.0",
37
- "eslint": "^8.19.0",
38
- "jest": "^29.6.3",
39
- "prettier": "2.8.8",
40
- "react-test-renderer": "19.1.1",
41
- "typescript": "^5.8.3"
42
- },
43
- "engines": {
44
- "node": ">=20"
45
- }
46
- }
@@ -1,103 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Script to prepare pointr_rn_demo project for distribution
4
- # This script cleans build artifacts, removes sensitive information, and creates a compressed archive
5
-
6
- set -e # Exit on error
7
-
8
- PROJECT_NAME="pointr_rn_demo"
9
- VERSION=$(grep -o '"version": "[^"]*"' package.json | head -1 | sed 's/"version": "\(.*\)"/\1/')
10
- OUTPUT_NAME="${PROJECT_NAME}-${VERSION}.zip"
11
- TEMP_DIR="${PROJECT_NAME}-${VERSION}"
12
- DIST_DIR="../../dist"
13
-
14
- # Create dist directory if it doesn't exist and get absolute path
15
- mkdir -p "${DIST_DIR}"
16
- DIST_DIR_ABS=$(cd "${DIST_DIR}" && pwd)
17
-
18
- echo "🧹 Starting demo project cleanup and preparation..."
19
- echo "📌 Project version: ${VERSION}"
20
-
21
- # Create a temporary copy of the project
22
- echo "📦 Creating temporary copy..."
23
- rsync -a --exclude="node_modules" \
24
- --exclude="ios/Pods" \
25
- --exclude="ios/build" \
26
- --exclude="ios/Podfile.lock" \
27
- --exclude="android/build" \
28
- --exclude="android/app/build" \
29
- --exclude="android/.gradle" \
30
- --exclude="android/local.properties" \
31
- --exclude=".DS_Store" \
32
- --exclude="*.log" \
33
- --exclude=".git" \
34
- --exclude="prepare-demo-distribution.sh" \
35
- ./ "../${TEMP_DIR}/"
36
-
37
- cd "../${TEMP_DIR}"
38
-
39
- # Remove sensitive information from App.tsx
40
- echo "🔒 Removing sensitive information..."
41
- if [ -f "App.tsx" ]; then
42
- # Replace credentials with placeholder values
43
- sed -i '' 's/"1ee58e56-fc35-4ec4-b32e-5d49e65fb52d"/"YOUR_CLIENT_ID"/g' App.tsx
44
- sed -i '' 's/"af5d9431-56a3-46a9-ae0a-65d9757528d1"/"YOUR_LICENSE_KEY"/g' App.tsx
45
- sed -i '' 's|"https://sample-app-v9.pointr.cloud"|"https://your-instance.pointr.cloud"|g' App.tsx
46
- echo "✓ Replaced credentials in App.tsx"
47
- fi
48
-
49
- # Remove sensitive information from Android build.gradle
50
- if [ -f "android/build.gradle" ]; then
51
- sed -i '' "s/username 'discover'/username 'YOUR_MAVEN_USERNAME'/g" android/build.gradle
52
- sed -i '' "s/password 'AKCp5ejy2i3iwwJbXZzCTvtgcarhYWLztx1TCxXzBdhhMK4Qjhp945jz7JwtMK5SBoARGLkdF'/password 'YOUR_MAVEN_PASSWORD'/g" android/build.gradle
53
- echo "✓ Replaced Maven credentials in android/build.gradle"
54
- fi
55
-
56
- # Remove sensitive information from iOS Podfile
57
- if [ -f "ios/Podfile" ]; then
58
- sed -i '' "s|ENV\['POINTR_SDK_TOKEN'\] = 'sv=2023-01-03&st=2024-10-23T06%3A40%3A13Z&se=2035-11-08T06%3A40%3A00Z&sr=c&sp=r&sig=WaCbhxt4pMqf9Oqzgf%2FnDj1SbdvyzwCtFdsWLW4KFqA%3D'|ENV['POINTR_SDK_TOKEN'] = 'YOUR_POINTR_SDK_TOKEN'|g" ios/Podfile
59
- echo "✓ Replaced Pointr SDK token in ios/Podfile"
60
- fi
61
-
62
- # Clean any remaining build artifacts
63
- echo "🤖 Cleaning build artifacts..."
64
- rm -rf node_modules
65
- rm -rf ios/Pods ios/build ios/Podfile.lock
66
- rm -rf android/build android/app/build android/.gradle
67
- rm -f android/local.properties
68
- rm -rf .gradle
69
- rm -f .DS_Store
70
- rm -f *.log npm-debug.log* yarn-debug.log* yarn-error.log*
71
- rm -f package-lock.json yarn.lock
72
-
73
- # Remove IDE and development files
74
- echo "🗑️ Removing development files..."
75
- rm -rf .vscode .idea
76
- rm -rf .git .gitignore .github
77
- rm -f .watchmanconfig
78
-
79
- # Create the zip archive
80
- echo "📦 Creating compressed archive..."
81
- cd ..
82
- zip -r "${OUTPUT_NAME}" "${TEMP_DIR}" -x "*.DS_Store" -q
83
-
84
- # Move the archive to dist directory
85
- mv "${OUTPUT_NAME}" "${DIST_DIR_ABS}/"
86
-
87
- # Clean up temporary directory
88
- echo "🧼 Cleaning up temporary files..."
89
- rm -rf "${TEMP_DIR}"
90
-
91
- cd "${PROJECT_NAME}"
92
-
93
- echo "✅ Demo distribution package created successfully!"
94
- echo "📦 Output file: ${OUTPUT_NAME}"
95
- echo "📍 Location: ${DIST_DIR_ABS}/${OUTPUT_NAME}"
96
- echo ""
97
- echo "⚠️ Note: All sensitive credentials have been replaced with placeholders:"
98
- echo " • App.tsx: YOUR_CLIENT_ID, YOUR_LICENSE_KEY, your-instance.pointr.cloud"
99
- echo " • android/build.gradle: YOUR_MAVEN_USERNAME, YOUR_MAVEN_PASSWORD"
100
- echo " • ios/Podfile: YOUR_POINTR_SDK_TOKEN"
101
- echo ""
102
- echo " Recipients must configure all credentials before running the app."
103
- echo " See README.md in the package for detailed setup instructions."
@@ -1,5 +0,0 @@
1
- {
2
- "extends": "@react-native/typescript-config",
3
- "include": ["**/*.ts", "**/*.tsx"],
4
- "exclude": ["**/node_modules", "**/Pods"]
5
- }
@@ -1,84 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Script to prepare react-native-pointr package for distribution
4
- # This script cleans build artifacts, removes git history, and creates a compressed archive
5
-
6
- set -e # Exit on error
7
-
8
- PACKAGE_NAME="react-native-pointr"
9
- VERSION=$(grep -o '"version": "[^"]*"' package.json | head -1 | sed 's/"version": "\(.*\)"/\1/')
10
- OUTPUT_NAME="${PACKAGE_NAME}-${VERSION}.zip"
11
- TEMP_DIR="${PACKAGE_NAME}_temp"
12
-
13
- echo "🧹 Starting package cleanup and preparation..."
14
- echo "📌 Package version: ${VERSION}"
15
-
16
- # Create a temporary copy of the package
17
- echo "📦 Creating temporary copy..."
18
- rsync -a --exclude=".git" \
19
- --exclude="node_modules" \
20
- --exclude="example" \
21
- --exclude=".DS_Store" \
22
- --exclude="*.log" \
23
- --exclude="prepare-distribution.sh" \
24
- ./ "../${TEMP_DIR}/"
25
-
26
- cd "../${TEMP_DIR}"
27
-
28
- # Clean Android build artifacts
29
- echo "🤖 Cleaning Android build artifacts..."
30
- if [ -d "android/build" ]; then
31
- rm -rf android/build
32
- fi
33
- if [ -d "android/.gradle" ]; then
34
- rm -rf android/.gradle
35
- fi
36
-
37
- # Clean iOS build artifacts
38
- echo "🍎 Cleaning iOS build artifacts..."
39
- if [ -d "ios/build" ]; then
40
- rm -rf ios/build
41
- fi
42
- if [ -d "ios/Pods" ]; then
43
- rm -rf ios/Pods
44
- fi
45
- if [ -f "ios/Podfile.lock" ]; then
46
- rm -f ios/Podfile.lock
47
- fi
48
-
49
- # Remove common development files
50
- echo "🗑️ Removing development files..."
51
- rm -rf .git
52
- rm -rf .gitignore
53
- rm -rf .github
54
- rm -rf node_modules
55
- rm -rf .vscode
56
- rm -rf .idea
57
- rm -f .DS_Store
58
- rm -f *.log
59
- rm -f npm-debug.log*
60
- rm -f yarn-debug.log*
61
- rm -f yarn-error.log*
62
- rm -f package-lock.json
63
- rm -f yarn.lock
64
-
65
- # Create the zip archive
66
- echo "📦 Creating compressed archive..."
67
- cd ..
68
- zip -r "${OUTPUT_NAME}" "${TEMP_DIR}" -x "*.DS_Store" -q
69
-
70
- # Create dist directory if it doesn't exist
71
- mkdir -p "${PACKAGE_NAME}/dist"
72
-
73
- # Move the archive to dist directory
74
- mv "${OUTPUT_NAME}" "${PACKAGE_NAME}/dist/"
75
-
76
- # Clean up temporary directory
77
- echo "🧼 Cleaning up temporary files..."
78
- rm -rf "${TEMP_DIR}"
79
-
80
- cd "${PACKAGE_NAME}"
81
-
82
- echo "✅ Distribution package created successfully!"
83
- echo "📦 Output file: ${OUTPUT_NAME}"
84
- echo "📍 Location: $(pwd)/dist/${OUTPUT_NAME}"