Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Maplibre bump #325

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand Down Expand Up @@ -27,7 +26,6 @@ android/.project
ios/Carthage/Checkouts
ios/Carthage/Build
junit.xml
dist/

example2
react-native-radar-*.tgz
84 changes: 84 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"name": "react-native-radar",
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
"homepage": "https://radar.com",
"license": "Apache-2.0",
"version": "3.12.1",
"main": "dist/src/index.js",
"files": [
"android",
"ios",
"src",
"README.md",
"react-native-radar.podspec",
"/dist"
],
"types": "dist/src/index.d.ts",
"scripts": {
"test": "jest ./test/*.test.js",
"check-latest-tag": "node ./scripts/check-latest-tag.cjs",
"check-beta-tag": "node ./scripts/check-beta-tag.cjs",
"build": "tsc",
"copy-assets": "./copyAssets.sh"
},
"jest": {
"preset": "react-native",
"clearMocks": true,
"reporters": [
"default",
"jest-junit"
],
"modulePathIgnorePatterns": [
"example",
"example2"
]
},
"peerDependencies": {
"@maplibre/maplibre-react-native": "^10.0.0-alpha.4",
"react": ">= 16.8.6",
"react-native": ">= 0.60.0"
},
"peerDependenciesMeta": {
"@maplibre/maplibre-react-native": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"@types/node": "^20.11.7",
"@types/react-native": "^0.73.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.4.2",
"braces": ">=2.3.2",
"eslint": "^5.6.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^22.1.2",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^23.6.0",
"jest-junit": "^5.2.0",
"logkitty": ">=0.7.1",
"metro-react-native-babel-preset": "^0.51.1",
"npm-run-all": "^4.1.5",
"react": "16.8.6",
"react-native": "0.60.0",
"typescript": "^5.3.3"
},
"bugs": {
"url": "https://github.com/radarlabs/react-native-radar/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/radarlabs/react-native-radar.git"
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@react-native-community/netinfo": "^7.1.3",
"radar-sdk-js": "^3.6.0"
}
}
52 changes: 52 additions & 0 deletions dist/src/@types/RadarNativeInterface.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { Location, RadarAutocompleteOptions, RadarContextCallback, RadarAddressCallback, RadarEventChannel, RadarGeocodeOptions, RadarGetDistanceOptions, RadarLocationCallback, RadarLogConversionCallback, RadarLogConversionOptions, RadarLogLevel, RadarMockTrackingOptions, RadarNotificationOptions, RadarPermissionsStatus, RadarReverseGeocodeOptions, RadarRouteCallback, RadarRouteMatrix, RadarSearchGeofencesCallback, RadarSearchGeofencesOptions, RadarSearchPlacesCallback, RadarSearchPlacesOptions, RadarStartTripOptions, RadarTrackCallback, RadarTrackOnceOptions, RadarTrackVerifiedCallback, RadarTrackingOptions, RadarTrackingOptionsDesiredAccuracy, RadarTrackingOptionsForegroundService, RadarTrackVerifiedOptions, RadarTripCallback, RadarTripOptions, RadarUpdateTripOptions, RadarVerifiedTrackingOptions, RadarListenerCallback, RadarGetMatrixOptions, RadarMetadata, RadarIPGeocodeCallback } from "./types";
export interface RadarNativeInterface {
initialize: (publishableKey: string, fraud?: boolean) => void;
setLogLevel: (level: RadarLogLevel) => void;
setUserId: (userId: string) => void;
getUserId: () => Promise<string>;
setDescription: (description: string) => void;
getDescription: () => Promise<string>;
setMetadata: (metadata: RadarMetadata) => void;
getMetadata: () => Promise<RadarMetadata>;
setAnonymousTrackingEnabled: (enabled: boolean) => void;
getPermissionsStatus: () => Promise<RadarPermissionsStatus>;
requestPermissions: (background: boolean) => Promise<RadarPermissionsStatus>;
getLocation: (desiredAccuracy?: RadarTrackingOptionsDesiredAccuracy) => Promise<RadarLocationCallback>;
trackOnce: (options?: RadarTrackOnceOptions | Location) => Promise<RadarTrackCallback>;
trackVerified: (options?: RadarTrackVerifiedOptions) => Promise<RadarTrackVerifiedCallback>;
getVerifiedLocationToken: () => Promise<RadarTrackVerifiedCallback>;
startTrackingEfficient: () => void;
startTrackingResponsive: () => void;
startTrackingContinuous: () => void;
startTrackingCustom: (options: RadarTrackingOptions) => void;
startTrackingVerified: (options?: RadarVerifiedTrackingOptions) => void;
mockTracking: (options: RadarMockTrackingOptions) => void;
stopTracking: () => void;
getTrackingOptions: () => Promise<RadarTrackingOptions>;
isUsingRemoteTrackingOptions: () => Promise<boolean>;
isTracking: () => boolean;
setForegroundServiceOptions: (options: RadarTrackingOptionsForegroundService) => void;
setNotificationOptions: (options: RadarNotificationOptions) => void;
getTripOptions: () => Promise<RadarTripOptions>;
startTrip: (options: RadarStartTripOptions) => Promise<RadarTripCallback>;
completeTrip: () => Promise<RadarTripCallback>;
cancelTrip: () => Promise<RadarTripCallback>;
updateTrip: (options: RadarUpdateTripOptions) => Promise<RadarTripCallback>;
acceptEvent: (eventId: string, verifiedPlaceId: string) => void;
rejectEvent: (eventId: string) => void;
getContext: (location?: Location) => Promise<RadarContextCallback>;
searchPlaces: (options: RadarSearchPlacesOptions) => Promise<RadarSearchPlacesCallback>;
searchGeofences: (options: RadarSearchGeofencesOptions) => Promise<RadarSearchGeofencesCallback>;
autocomplete: (options: RadarAutocompleteOptions) => Promise<RadarAddressCallback>;
geocode: (options: RadarGeocodeOptions) => Promise<RadarAddressCallback>;
reverseGeocode: (options?: RadarReverseGeocodeOptions) => Promise<RadarAddressCallback>;
ipGeocode: () => Promise<RadarIPGeocodeCallback>;
getDistance: (option: RadarGetDistanceOptions) => Promise<RadarRouteCallback>;
getMatrix: (option: RadarGetMatrixOptions) => Promise<RadarRouteMatrix>;
logConversion: (options: RadarLogConversionOptions) => Promise<RadarLogConversionCallback>;
sendEvent: (name: string, metadata: RadarMetadata) => void;
on: (channel: RadarEventChannel, callback: RadarListenerCallback) => void;
off: (channel: RadarEventChannel, callback?: Function | undefined) => void;
nativeSdkVersion: () => Promise<string>;
rnSdkVersion: () => string;
}
2 changes: 2 additions & 0 deletions dist/src/@types/RadarNativeInterface.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Loading