diff --git a/.gitignore b/.gitignore index d3b53df..1131c67 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,13 @@ android/keystores/debug.keystore !.yarn/sdks !.yarn/versions +example/.yarn/* +!example/.yarn/patches +!example/.yarn/plugins +!example/.yarn/releases +!example/.yarn/sdks +!example/.yarn/versions + # Expo .expo/ diff --git a/.watchmanconfig b/.watchmanconfig deleted file mode 100644 index 9e26dfe..0000000 --- a/.watchmanconfig +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml deleted file mode 100644 index 13215d6..0000000 --- a/.yarnrc.yml +++ /dev/null @@ -1,10 +0,0 @@ -nodeLinker: node-modules -nmHoistingLimits: workspaces - -plugins: - - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs - spec: "@yarnpkg/plugin-interactive-tools" - - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs - spec: "@yarnpkg/plugin-workspace-tools" - -yarnPath: .yarn/releases/yarn-3.6.1.cjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b244ab6..93655f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,28 +23,36 @@ The [example app](/example/) demonstrates usage of the library. You need to run It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app. -If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/ReactNativeGeofencingExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > @rn-bridge/react-native-geofencing`. +If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/ReactNativeGeofencingExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-geofencing`. -To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `rn-bridge-react-native-geofencing` under `Android`. +To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `rnbridge/geofencing` under `Android`. You can use various commands from the root directory to work with the project. To start the packager: +First ```sh -yarn example start +cd example +yarn install +cd ios +pod install +``` + +```sh +cd example && yarn start ``` To run the example app on Android: ```sh -yarn example android +cd example && yarn android ``` To run the example app on iOS: ```sh -yarn example ios +cd example && yarn example ios ``` Make sure your code passes TypeScript and ESLint. Run the following to verify: diff --git a/README.md b/README.md index d22479d..d991306 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,172 @@ # @rn-bridge/react-native-geofencing -Native modules to determine if a location is within defined geographical boundaries +> [!NOTE] +> Native module to determine if a location is within defined geographical boundaries. Geofencing combines awareness of the user's current location with awareness of the user's proximity to locations that may be of interest. To mark a location of interest, you specify its latitude and longitude. To adjust the proximity for the location, you add a radius. The latitude, longitude, and radius define a geofence, creating a circular area, or fence, around the location of interest. + +Fully compatible with TypeScript. + +## Supported platforms + +| Platform | Support | +|---|---| +| iOS | ✅ | +| Android | ✅ | +| Web | ❌ | +| Windows | ❌ | +| macOS | ❌ | ## Installation ```sh npm install @rn-bridge/react-native-geofencing ``` +or -## Usage +```sh +yarn add @rn-bridge/react-native-geofencing +``` +## Configuration and Permissions -```js -import { multiply } from '@rn-bridge/react-native-geofencing'; +### iOS + +To enable geofence in your app, you need to add the `NSLocationWhenInUseUsageDescription` and `NSLocationAlwaysAndWhenInUseUsageDescription` keys to your `Info.plist` file. If your app supports iOS 10 or earlier, you must also include the `NSLocationAlwaysUsageDescription` key. Without these keys, geofence requests will fail. + +To enable geofence while the app runs in the background, add the `NSLocationAlwaysUsageDescription` key to `Info.plist`. + +It’s important to ensure you’ve enabled the necessary background modes. Here’s how to do so: + +- Go to your Xcode project settings. +- Select your target. +- Go to the `Signing & Capabilities` tab. +- Enable `Background Modes` capability. +- Check `Location updates` + +Screenshot 2024-08-15 at 7 27 40 PM -// ... +

+Your `Info.plist` should look like this, Explain why the background location is required!! -const result = await multiply(3, 7); +```java +NSLocationAlwaysAndWhenInUseUsageDescription +This app need your location to provide best feature based on location +NSLocationWhenInUseUsageDescription +This app need your location to provide best feature based on location +NSLocationAlwaysUsageDescription +This app need your location to provide best feature based on location in background +UIBackgroundModes + + location + ``` +### Android -## Contributing +The first step in requesting geofence monitoring is to request the necessary permissions. To use geofencing, your app must request the following: -See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. +- `ACCESS_FINE_LOCATION` +- `ACCESS_BACKGROUND_LOCATION` if your app targets Android 10 (API level 29) or higher -## License +Your `AndroidManifest.xml` should look liks this -MIT +```java + + + + + + + + +``` + +## Summary + +### Methods + +* [`addGeofence`](#addGeofence) +* [`removeGeofence`](#removeGeofence) +* [`getRegisteredGeofences`](#getRegisteredGeofences) + +### Listeners + +* [`onEnter`](#onEnter) +* [`onExit`](#onExit) +* [`removeOnEnterListener`](#removeOnEnterListener) +* [`removeOnExitListener`](#removeOnExitListener) --- -Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob) +## Usage + +### addGeofence +```js +import { addGeofence } from '@rn-bridge/react-native-geofencing'; + +const response = await addGeofence({ + id: 'a9957259-8036-4dcb-974c-34eae9b44bdb', + latitude: 16.153062, + longitude: 100.281585, + radius: 500 + }) +console.log(response) // { success: true, id, type: "add" } +``` +Supported options: +* `id` (String) - Set the ID of the geofence. This is a string to identify this geofence. +* `latitude` (Double) - The latitude and longitude are used to define the precise geographical location of the geofence’s center. This ensures accurate detection when a device enters or exits the geofenced area. +* `longitude` (Double) - The latitude and longitude are used to define the precise geographical location of the geofence’s center. This ensures accurate detection when a device enters or exits the geofenced area. +* `radius` (Integer) - The radius defines the boundary of the geofence around the central point (latitude and longitude). It allows for flexibility in creating different-sized geofences + +### removeGeofence +```javascript +import { removeGeofence } from '@rn-bridge/react-native-geofencing'; + +const response = await removeGeofence(id) +console.log(response) // { success: true, id, type: "remove" } +``` +Supported options: +* `id` (String) - The ID uniquely identifies a geofence, enabling precise and efficient removal by referencing the specific geofence without ambiguity. + +### getRegisteredGeofences +```javascript +import { getRegisteredGeofences } from '@rn-bridge/react-native-geofencing'; + +const response = await getRegisteredGeofences() +console.log(response) // [id, ...] +``` + +> [!IMPORTANT] +> ## Listening for location transitions + +### onEnter +```javascript +import { Geofence, Events } from '@rn-bridge/react-native-geofencing'; + +Geofence.onEnter((ids: string[]) => { + console.log(Events.Enter, ids); +}); +``` + +### onExit +```javascript +import { Geofence, Events } from '@rn-bridge/react-native-geofencing'; + +Geofence.onExit((ids: string[]) => { + console.log(Events.Exit, ids); +}); +``` + +### removeOnEnterListener +```javascript +import { Geofence } from '@rn-bridge/react-native-geofencing'; + +Geofence.removeOnEnterListener() +``` + +### removeOnExitListener +```javascript +import { Geofence } from '@rn-bridge/react-native-geofencing'; + +Geofence.removeOnExitListener() +``` + diff --git a/android/build.gradle b/android/build.gradle index 95f0247..3b410ec 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,3 +1,5 @@ +import com.android.Version + buildscript { // Buildscript is evaluated before everything else so we can't use getExtOrDefault def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["ReactNativeGeofencing_kotlinVersion"] @@ -8,7 +10,7 @@ buildscript { } dependencies { - classpath "com.android.tools.build:gradle:7.2.1" + classpath "com.android.tools.build:gradle:8.3.2" // noinspection DifferentKotlinGradleVersion classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } @@ -38,8 +40,8 @@ def getExtOrIntegerDefault(name) { return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["ReactNativeGeofencing_" + name]).toInteger() } -def supportsNamespace() { - def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.') +static def supportsNamespace() { + def parsed = Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.') def major = parsed[0].toInteger() def minor = parsed[1].toInteger() @@ -49,7 +51,7 @@ def supportsNamespace() { android { if (supportsNamespace()) { - namespace "com.rnbridge.reactnativegeofencing" + namespace "com.rnbridge.geofencing" sourceSets { main { @@ -93,7 +95,9 @@ dependencies { // For < 0.71, this will be from the local maven repo // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin //noinspection GradleDynamicVersion - implementation "com.facebook.react:react-native:+" + implementation "com.facebook.react:react-android:+" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'com.google.code.gson:gson:2.11.0' + implementation 'com.google.android.gms:play-services-location:21.3.0' } diff --git a/android/gradle.properties b/android/gradle.properties index f884ade..76c636a 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,19 @@ -ReactNativeGeofencing_kotlinVersion=1.7.0 +## For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx1024m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +# +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. For more details, visit +# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects +# org.gradle.parallel=true +#Fri Aug 16 11:45:03 IST 2024 +ReactNativeGeofencing_compileSdkVersion=33 +ReactNativeGeofencing_kotlinVersion=1.9.24 ReactNativeGeofencing_minSdkVersion=21 -ReactNativeGeofencing_targetSdkVersion=31 -ReactNativeGeofencing_compileSdkVersion=31 -ReactNativeGeofencing_ndkversion=21.4.7075529 +ReactNativeGeofencing_ndkversion=26.1.10909125 +ReactNativeGeofencing_targetSdkVersion=33 +android.useAndroidX=true diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..7f93135 Binary files /dev/null and b/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..3fa8f86 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/android/gradlew b/android/gradlew new file mode 100755 index 0000000..1aa94a4 --- /dev/null +++ b/android/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/android/gradlew.bat b/android/gradlew.bat new file mode 100644 index 0000000..93e3f59 --- /dev/null +++ b/android/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 09d52c3..fb50ba0 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,3 +1,18 @@ + package="com.rnbridge.geofencing"> + + + + + + + + + + + + diff --git a/android/src/main/AndroidManifestNew.xml b/android/src/main/AndroidManifestNew.xml index a2f47b6..0715ef1 100644 --- a/android/src/main/AndroidManifestNew.xml +++ b/android/src/main/AndroidManifestNew.xml @@ -1,2 +1,17 @@ + + + + + + + + + + + + diff --git a/android/src/main/java/com/rnbridge/geofencing/GeofenceBroadcastReceiver.kt b/android/src/main/java/com/rnbridge/geofencing/GeofenceBroadcastReceiver.kt new file mode 100644 index 0000000..727c613 --- /dev/null +++ b/android/src/main/java/com/rnbridge/geofencing/GeofenceBroadcastReceiver.kt @@ -0,0 +1,48 @@ +package com.rnbridge.geofencing + +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent +import android.util.Log +import com.facebook.react.HeadlessJsTaskService +import com.google.android.gms.location.Geofence +import com.google.android.gms.location.GeofenceStatusCodes +import com.google.android.gms.location.GeofencingEvent + +class GeofenceBroadcastReceiver : BroadcastReceiver() { + override fun onReceive(context: Context?, intent: Intent?) { + if (intent == null || context == null) { + return + } + + val geofencingEvent = GeofencingEvent.fromIntent(intent) + if (geofencingEvent != null && geofencingEvent.hasError()) { + val errorMessage = GeofenceStatusCodes + .getStatusCodeString(geofencingEvent.errorCode) + Log.e(TAG, errorMessage) + return + } + + val geofenceTransition = geofencingEvent?.geofenceTransition + + if (geofenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER || geofenceTransition == Geofence.GEOFENCE_TRANSITION_EXIT) { + + val triggeringGeofences = geofencingEvent.triggeringGeofences + + val event = + if (geofenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER) "onEnter" else "onExit" + val ids = triggeringGeofences?.map { it.requestId }?.toTypedArray().orEmpty() + val i = Intent(context, GeofenceHeadlessJS::class.java) + i.putExtra("event", event) + i.putExtra("ids", ids) + context.startService(i) + HeadlessJsTaskService.acquireWakeLockNow(context) + } else { + Log.e(TAG, "Error in GeofenceBroadcastReceiver") + } + } + + companion object { + const val TAG = "GeofenceBroadcast" + } +} diff --git a/android/src/main/java/com/rnbridge/geofencing/GeofenceHeadlessJS.kt b/android/src/main/java/com/rnbridge/geofencing/GeofenceHeadlessJS.kt new file mode 100644 index 0000000..f9cd754 --- /dev/null +++ b/android/src/main/java/com/rnbridge/geofencing/GeofenceHeadlessJS.kt @@ -0,0 +1,19 @@ +package com.rnbridge.geofencing + +import android.content.Intent +import com.facebook.react.HeadlessJsTaskService +import com.facebook.react.bridge.Arguments +import com.facebook.react.jstasks.HeadlessJsTaskConfig + +class GeofenceHeadlessJS : HeadlessJsTaskService() { + override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? { + return intent.extras?.let { + HeadlessJsTaskConfig( + "onGeofenceTransition", + Arguments.fromBundle(it), + 8000, + true + ) + } + } +} diff --git a/android/src/main/java/com/rnbridge/geofencing/GeofenceManager.kt b/android/src/main/java/com/rnbridge/geofencing/GeofenceManager.kt new file mode 100644 index 0000000..7275cbd --- /dev/null +++ b/android/src/main/java/com/rnbridge/geofencing/GeofenceManager.kt @@ -0,0 +1,181 @@ +package com.rnbridge.geofencing + +import android.annotation.SuppressLint +import android.app.PendingIntent +import android.content.Context +import android.content.Intent +import android.location.Location +import android.os.Build +import android.util.Log +import com.facebook.react.bridge.Arguments +import com.facebook.react.bridge.Promise +import com.facebook.react.bridge.WritableArray +import com.google.android.gms.location.Geofence +import com.google.android.gms.location.Geofence.GEOFENCE_TRANSITION_ENTER +import com.google.android.gms.location.Geofence.GEOFENCE_TRANSITION_EXIT +import com.google.android.gms.location.GeofencingRequest +import com.google.android.gms.location.LocationServices +import com.google.gson.Gson +import com.google.gson.reflect.TypeToken + +private const val REQUEST_CODE = 1729 + +class GeofenceManager(private val context: Context) { + + private val client = LocationServices.getGeofencingClient(context) + + private val geofencingPendingIntent: PendingIntent by lazy { + PendingIntent.getBroadcast( + context, + REQUEST_CODE, + Intent(context, GeofenceBroadcastReceiver::class.java), + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) { + PendingIntent.FLAG_UPDATE_CURRENT + } else { + PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT + } + ) + } + + fun getRegisteredGeofences(promise: Promise) { + val ids = readFromSharedPreferences() + promise.resolve(ids.toWritableArray()) + } + + @SuppressLint("MissingPermission") + fun addGeofence( + id: String, + location: Location, + radiusInMeters: Float, + promise: Promise + ) { + val geofence = listOf(createGeofence(id, location, radiusInMeters)) + client.addGeofences(createGeofencingRequest(geofence), geofencingPendingIntent) + .addOnSuccessListener { + addToSharedPreferences(id) + val map = Arguments.createMap().apply { + putBoolean("success", true) + putString("id", geofence[0].requestId) + putString("type", "add") + } + promise.resolve(map) + }.addOnFailureListener { exception -> + Log.d(TAG, "registerGeofence: Failure\n$exception") + val map = Arguments.createMap().apply { + putBoolean("success", false) + putString("id", geofence[0].requestId) + putString("type", "add") + putString("error", exception.message) + } + promise.resolve(map) + } + } + + fun removeGeofence(id: String, promise: Promise) { + client.removeGeofences(listOf(id)) + .addOnSuccessListener { + removeFromSharedPreferences(id) + val map = Arguments.createMap().apply { + putBoolean("success", true) + putString("id", id) + putString("type", "remove") + } + promise.resolve(map) + }.addOnFailureListener { exception -> + Log.d(TAG, "deregisterGeofence: Failure\n$exception") + val map = Arguments.createMap().apply { + putBoolean("success", false) + putString("id", id) + putString("type", "remove") + putString("error", exception.message) + } + promise.resolve(map) + } + } + + fun removeAllGeofence(promise: Promise) { + client.removeGeofences(geofencingPendingIntent) + .addOnSuccessListener { + resetSharedPreferences() + val map = Arguments.createMap().apply { + putBoolean("success", true) + putString("type", "removeAll") + } + promise.resolve(map) + }.addOnFailureListener { exception -> + Log.d(TAG, "deregisterGeofence: Failure\n$exception") + val map = Arguments.createMap().apply { + putBoolean("success", false) + putString("type", "removeAll") + putString("error", exception.message) + } + promise.resolve(map) + } + } + + private fun createGeofencingRequest(geofence: List): GeofencingRequest { + return GeofencingRequest.Builder().apply { + setInitialTrigger(GEOFENCE_TRANSITION_ENTER) + addGeofences(geofence) + }.build() + } + + private fun createGeofence( + id: String, + location: Location, + radiusInMeters: Float, + ): Geofence { + return Geofence.Builder() + .setRequestId(id) + .setCircularRegion(location.latitude, location.longitude, radiusInMeters) + .setExpirationDuration(Geofence.NEVER_EXPIRE) + .setTransitionTypes(GEOFENCE_TRANSITION_ENTER or GEOFENCE_TRANSITION_EXIT) + .build() + } + + private fun addToSharedPreferences(id: String) { + removeFromSharedPreferences(id) + val ids = readFromSharedPreferences() + val newIds = ids.toMutableList() + newIds.add(id) + writeToSharedPreferences(newIds) + } + + private fun removeFromSharedPreferences(id: String) { + val ids = readFromSharedPreferences() + writeToSharedPreferences(ids.toMutableList().filter { it != id }) + } + + private fun resetSharedPreferences() { + val sharedPreferences = context.getSharedPreferences(TAG, Context.MODE_PRIVATE) + with(sharedPreferences.edit()) { + putString("ids", "[]") + apply() + } + } + + private fun readFromSharedPreferences(): List { + val sharedPreferences = context.getSharedPreferences(TAG, Context.MODE_PRIVATE) + val ids = sharedPreferences.getString("ids", "[]") + + val gson = Gson() + + return gson.fromJson(ids, object : TypeToken?>() {}.type) + } + + private fun writeToSharedPreferences(ids: List) { + val sharedPreferences = context.getSharedPreferences(TAG, Context.MODE_PRIVATE) + with(sharedPreferences.edit()) { + putString("ids", Gson().toJson(ids)) + apply() + } + } + + private fun List.toWritableArray(): WritableArray { + return Arguments.fromArray(this.toTypedArray()) + } + + companion object { + const val TAG = "GeofenceManager" + } +} diff --git a/android/src/main/java/com/rnbridge/geofencing/GeofencingModule.kt b/android/src/main/java/com/rnbridge/geofencing/GeofencingModule.kt new file mode 100644 index 0000000..ab8d87c --- /dev/null +++ b/android/src/main/java/com/rnbridge/geofencing/GeofencingModule.kt @@ -0,0 +1,52 @@ +package com.rnbridge.geofencing + +import android.location.Location +import com.facebook.react.bridge.Promise +import com.facebook.react.bridge.ReactApplicationContext +import com.facebook.react.bridge.ReactContextBaseJavaModule +import com.facebook.react.bridge.ReactMethod +import com.facebook.react.bridge.ReadableMap + +class GeofencingModule(reactContext: ReactApplicationContext) : + ReactContextBaseJavaModule(reactContext) { + + private val geofenceManager = GeofenceManager(reactApplicationContext) + + override fun getName(): String { + return NAME + } + + @ReactMethod + fun getRegisteredGeofences(promise: Promise) { + geofenceManager.getRegisteredGeofences(promise) + } + + @ReactMethod + fun addGeofence(params: ReadableMap, promise: Promise) { + val id = params.getString("id") as String + val latitude = params.getDouble("latitude") + val longitude = params.getDouble("longitude") + val radius = params.getDouble("radius") + + val location = Location("").apply { + this.latitude = latitude + this.longitude = longitude + } + + geofenceManager.addGeofence(id, location, radius.toFloat(), promise) + } + + @ReactMethod + fun removeGeofence(id: String, promise: Promise) { + geofenceManager.removeGeofence(id, promise) + } + + @ReactMethod + fun removeAllGeofence(promise: Promise) { + geofenceManager.removeAllGeofence(promise) + } + + companion object { + const val NAME = "Geofencing" + } +} diff --git a/android/src/main/java/com/rnbridge/reactnativegeofencing/ReactNativeGeofencingPackage.kt b/android/src/main/java/com/rnbridge/geofencing/GeofencingPackage.kt similarity index 72% rename from android/src/main/java/com/rnbridge/reactnativegeofencing/ReactNativeGeofencingPackage.kt rename to android/src/main/java/com/rnbridge/geofencing/GeofencingPackage.kt index e2794a5..569443a 100644 --- a/android/src/main/java/com/rnbridge/reactnativegeofencing/ReactNativeGeofencingPackage.kt +++ b/android/src/main/java/com/rnbridge/geofencing/GeofencingPackage.kt @@ -1,14 +1,13 @@ -package com.rnbridge.reactnativegeofencing +package com.rnbridge.geofencing import com.facebook.react.ReactPackage import com.facebook.react.bridge.NativeModule import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.uimanager.ViewManager - -class ReactNativeGeofencingPackage : ReactPackage { +class GeofencingPackage : ReactPackage { override fun createNativeModules(reactContext: ReactApplicationContext): List { - return listOf(ReactNativeGeofencingModule(reactContext)) + return listOf(GeofencingModule(reactContext)) } override fun createViewManagers(reactContext: ReactApplicationContext): List> { diff --git a/android/src/main/java/com/rnbridge/reactnativegeofencing/ReactNativeGeofencingModule.kt b/android/src/main/java/com/rnbridge/reactnativegeofencing/ReactNativeGeofencingModule.kt deleted file mode 100644 index 0ef5483..0000000 --- a/android/src/main/java/com/rnbridge/reactnativegeofencing/ReactNativeGeofencingModule.kt +++ /dev/null @@ -1,25 +0,0 @@ -package com.rnbridge.reactnativegeofencing - -import com.facebook.react.bridge.ReactApplicationContext -import com.facebook.react.bridge.ReactContextBaseJavaModule -import com.facebook.react.bridge.ReactMethod -import com.facebook.react.bridge.Promise - -class ReactNativeGeofencingModule(reactContext: ReactApplicationContext) : - ReactContextBaseJavaModule(reactContext) { - - override fun getName(): String { - return NAME - } - - // Example method - // See https://reactnative.dev/docs/native-modules-android - @ReactMethod - fun multiply(a: Double, b: Double, promise: Promise) { - promise.resolve(a * b) - } - - companion object { - const val NAME = "ReactNativeGeofencing" - } -} diff --git a/example/.watchmanconfig b/example/.watchmanconfig deleted file mode 100644 index 0967ef4..0000000 --- a/example/.watchmanconfig +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/example/index.js b/example/index.js deleted file mode 100644 index 117ddca..0000000 --- a/example/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AppRegistry } from 'react-native'; -import App from './src/App'; -import { name as appName } from './app.json'; - -AppRegistry.registerComponent(appName, () => App); diff --git a/example/index.ts b/example/index.ts new file mode 100644 index 0000000..1ef19d4 --- /dev/null +++ b/example/index.ts @@ -0,0 +1,14 @@ +import { AppRegistry } from 'react-native'; +import { App } from './src/App'; +import { name as appName } from './app.json'; +import { Geofence, Events } from '@rn-bridge/react-native-geofencing'; + +Geofence.onEnter((ids: string[]) => { + console.log(Events.Enter, ids); +}); + +Geofence.onExit((ids: string[]) => { + console.log(Events.Exit, ids); +}); + +AppRegistry.registerComponent(appName, () => App); diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock new file mode 100644 index 0000000..47cf7ff --- /dev/null +++ b/example/ios/Podfile.lock @@ -0,0 +1,1792 @@ +PODS: + - boost (1.84.0) + - DoubleConversion (1.1.6) + - FBLazyVector (0.75.1) + - fmt (9.1.0) + - glog (0.3.5) + - hermes-engine (0.75.1): + - hermes-engine/Pre-built (= 0.75.1) + - hermes-engine/Pre-built (0.75.1) + - RCT-Folly (2024.01.01.00): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCT-Folly/Default (= 2024.01.01.00) + - RCT-Folly/Default (2024.01.01.00): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCT-Folly/Fabric (2024.01.01.00): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCTDeprecation (0.75.1) + - RCTRequired (0.75.1) + - RCTTypeSafety (0.75.1): + - FBLazyVector (= 0.75.1) + - RCTRequired (= 0.75.1) + - React-Core (= 0.75.1) + - React (0.75.1): + - React-Core (= 0.75.1) + - React-Core/DevSupport (= 0.75.1) + - React-Core/RCTWebSocket (= 0.75.1) + - React-RCTActionSheet (= 0.75.1) + - React-RCTAnimation (= 0.75.1) + - React-RCTBlob (= 0.75.1) + - React-RCTImage (= 0.75.1) + - React-RCTLinking (= 0.75.1) + - React-RCTNetwork (= 0.75.1) + - React-RCTSettings (= 0.75.1) + - React-RCTText (= 0.75.1) + - React-RCTVibration (= 0.75.1) + - React-callinvoker (0.75.1) + - React-Core (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default (= 0.75.1) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/CoreModulesHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/Default (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/DevSupport (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default (= 0.75.1) + - React-Core/RCTWebSocket (= 0.75.1) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTActionSheetHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTAnimationHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTBlobHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTImageHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTLinkingHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTNetworkHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTSettingsHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTTextHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTVibrationHeaders (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-Core/RCTWebSocket (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTDeprecation + - React-Core/Default (= 0.75.1) + - React-cxxreact + - React-featureflags + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.7.0) + - Yoga + - React-CoreModules (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety (= 0.75.1) + - React-Core/CoreModulesHeaders (= 0.75.1) + - React-jsi (= 0.75.1) + - React-jsinspector + - React-NativeModulesApple + - React-RCTBlob + - React-RCTImage (= 0.75.1) + - ReactCodegen + - ReactCommon + - SocketRocket (= 0.7.0) + - React-cxxreact (0.75.1): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.75.1) + - React-debug (= 0.75.1) + - React-jsi (= 0.75.1) + - React-jsinspector + - React-logger (= 0.75.1) + - React-perflogger (= 0.75.1) + - React-runtimeexecutor (= 0.75.1) + - React-debug (0.75.1) + - React-defaultsnativemodule (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-domnativemodule + - React-Fabric + - React-featureflags + - React-featureflagsnativemodule + - React-graphics + - React-idlecallbacksnativemodule + - React-ImageManager + - React-microtasksnativemodule + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - React-domnativemodule (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-FabricComponents + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - React-Fabric (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/animations (= 0.75.1) + - React-Fabric/attributedstring (= 0.75.1) + - React-Fabric/componentregistry (= 0.75.1) + - React-Fabric/componentregistrynative (= 0.75.1) + - React-Fabric/components (= 0.75.1) + - React-Fabric/core (= 0.75.1) + - React-Fabric/dom (= 0.75.1) + - React-Fabric/imagemanager (= 0.75.1) + - React-Fabric/leakchecker (= 0.75.1) + - React-Fabric/mounting (= 0.75.1) + - React-Fabric/observers (= 0.75.1) + - React-Fabric/scheduler (= 0.75.1) + - React-Fabric/telemetry (= 0.75.1) + - React-Fabric/templateprocessor (= 0.75.1) + - React-Fabric/uimanager (= 0.75.1) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/animations (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/attributedstring (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/componentregistry (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/componentregistrynative (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/components/legacyviewmanagerinterop (= 0.75.1) + - React-Fabric/components/root (= 0.75.1) + - React-Fabric/components/view (= 0.75.1) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/legacyviewmanagerinterop (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/root (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/view (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - Yoga + - React-Fabric/core (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/dom (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/imagemanager (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/leakchecker (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/mounting (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/observers (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/observers/events (= 0.75.1) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/observers/events (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/scheduler (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/observers/events + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-performancetimeline + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/telemetry (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/templateprocessor (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/uimanager (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/uimanager/consistency (= 0.75.1) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererconsistency + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/uimanager/consistency (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererconsistency + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-FabricComponents (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-FabricComponents/components (= 0.75.1) + - React-FabricComponents/textlayoutmanager (= 0.75.1) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-FabricComponents/components/inputaccessory (= 0.75.1) + - React-FabricComponents/components/iostextinput (= 0.75.1) + - React-FabricComponents/components/modal (= 0.75.1) + - React-FabricComponents/components/rncore (= 0.75.1) + - React-FabricComponents/components/safeareaview (= 0.75.1) + - React-FabricComponents/components/scrollview (= 0.75.1) + - React-FabricComponents/components/text (= 0.75.1) + - React-FabricComponents/components/textinput (= 0.75.1) + - React-FabricComponents/components/unimplementedview (= 0.75.1) + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/inputaccessory (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/iostextinput (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/modal (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/rncore (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/safeareaview (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/scrollview (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/text (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/textinput (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/components/unimplementedview (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricComponents/textlayoutmanager (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/core + - Yoga + - React-FabricImage (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - RCTRequired (= 0.75.1) + - RCTTypeSafety (= 0.75.1) + - React-Fabric + - React-graphics + - React-ImageManager + - React-jsi + - React-jsiexecutor (= 0.75.1) + - React-logger + - React-rendererdebug + - React-utils + - ReactCommon + - Yoga + - React-featureflags (0.75.1) + - React-featureflagsnativemodule (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - React-graphics (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-jsi + - React-jsiexecutor + - React-utils + - React-hermes (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-cxxreact (= 0.75.1) + - React-jsi + - React-jsiexecutor (= 0.75.1) + - React-jsinspector + - React-perflogger (= 0.75.1) + - React-runtimeexecutor + - React-idlecallbacksnativemodule (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - React-ImageManager (0.75.1): + - glog + - RCT-Folly/Fabric + - React-Core/Default + - React-debug + - React-Fabric + - React-graphics + - React-rendererdebug + - React-utils + - React-jserrorhandler (0.75.1): + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-debug + - React-jsi + - React-jsi (0.75.1): + - boost + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-jsiexecutor (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-cxxreact (= 0.75.1) + - React-jsi (= 0.75.1) + - React-jsinspector + - React-perflogger (= 0.75.1) + - React-jsinspector (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-featureflags + - React-jsi + - React-runtimeexecutor (= 0.75.1) + - React-jsitracing (0.75.1): + - React-jsi + - React-logger (0.75.1): + - glog + - React-Mapbuffer (0.75.1): + - glog + - React-debug + - React-microtasksnativemodule (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - react-native-geofencing (0.1.0): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-featureflags + - React-graphics + - React-ImageManager + - React-NativeModulesApple + - React-RCTFabric + - React-rendererdebug + - React-utils + - ReactCodegen + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - Yoga + - React-nativeconfig (0.75.1) + - React-NativeModulesApple (0.75.1): + - glog + - hermes-engine + - React-callinvoker + - React-Core + - React-cxxreact + - React-jsi + - React-jsinspector + - React-runtimeexecutor + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-perflogger (0.75.1) + - React-performancetimeline (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - React-cxxreact + - React-RCTActionSheet (0.75.1): + - React-Core/RCTActionSheetHeaders (= 0.75.1) + - React-RCTAnimation (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Core/RCTAnimationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCodegen + - ReactCommon + - React-RCTAppDelegate (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-CoreModules + - React-debug + - React-defaultsnativemodule + - React-Fabric + - React-featureflags + - React-graphics + - React-hermes + - React-nativeconfig + - React-NativeModulesApple + - React-RCTFabric + - React-RCTImage + - React-RCTNetwork + - React-rendererdebug + - React-RuntimeApple + - React-RuntimeCore + - React-RuntimeHermes + - React-runtimescheduler + - React-utils + - ReactCodegen + - ReactCommon + - React-RCTBlob (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-Core/RCTBlobHeaders + - React-Core/RCTWebSocket + - React-jsi + - React-jsinspector + - React-NativeModulesApple + - React-RCTNetwork + - ReactCodegen + - ReactCommon + - React-RCTFabric (0.75.1): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-Core + - React-debug + - React-Fabric + - React-FabricComponents + - React-FabricImage + - React-featureflags + - React-graphics + - React-ImageManager + - React-jsi + - React-jsinspector + - React-nativeconfig + - React-performancetimeline + - React-RCTImage + - React-RCTText + - React-rendererconsistency + - React-rendererdebug + - React-runtimescheduler + - React-utils + - Yoga + - React-RCTImage (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Core/RCTImageHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTNetwork + - ReactCodegen + - ReactCommon + - React-RCTLinking (0.75.1): + - React-Core/RCTLinkingHeaders (= 0.75.1) + - React-jsi (= 0.75.1) + - React-NativeModulesApple + - ReactCodegen + - ReactCommon + - ReactCommon/turbomodule/core (= 0.75.1) + - React-RCTNetwork (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Core/RCTNetworkHeaders + - React-jsi + - React-NativeModulesApple + - ReactCodegen + - ReactCommon + - React-RCTSettings (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - RCTTypeSafety + - React-Core/RCTSettingsHeaders + - React-jsi + - React-NativeModulesApple + - ReactCodegen + - ReactCommon + - React-RCTText (0.75.1): + - React-Core/RCTTextHeaders (= 0.75.1) + - Yoga + - React-RCTVibration (0.75.1): + - RCT-Folly (= 2024.01.01.00) + - React-Core/RCTVibrationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCodegen + - ReactCommon + - React-rendererconsistency (0.75.1) + - React-rendererdebug (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - RCT-Folly (= 2024.01.01.00) + - React-debug + - React-rncore (0.75.1) + - React-RuntimeApple (0.75.1): + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-callinvoker + - React-Core/Default + - React-CoreModules + - React-cxxreact + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-Mapbuffer + - React-NativeModulesApple + - React-RCTFabric + - React-RuntimeCore + - React-runtimeexecutor + - React-RuntimeHermes + - React-runtimescheduler + - React-utils + - React-RuntimeCore (0.75.1): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-cxxreact + - React-featureflags + - React-jserrorhandler + - React-jsi + - React-jsiexecutor + - React-jsinspector + - React-runtimeexecutor + - React-runtimescheduler + - React-utils + - React-runtimeexecutor (0.75.1): + - React-jsi (= 0.75.1) + - React-RuntimeHermes (0.75.1): + - hermes-engine + - RCT-Folly/Fabric (= 2024.01.01.00) + - React-featureflags + - React-hermes + - React-jsi + - React-jsinspector + - React-jsitracing + - React-nativeconfig + - React-RuntimeCore + - React-utils + - React-runtimescheduler (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker + - React-cxxreact + - React-debug + - React-featureflags + - React-jsi + - React-rendererconsistency + - React-rendererdebug + - React-runtimeexecutor + - React-utils + - React-utils (0.75.1): + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-debug + - React-jsi (= 0.75.1) + - ReactCodegen (0.75.1): + - DoubleConversion + - glog + - hermes-engine + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - React-debug + - React-Fabric + - React-FabricImage + - React-featureflags + - React-graphics + - React-jsi + - React-jsiexecutor + - React-NativeModulesApple + - React-rendererdebug + - React-utils + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - ReactCommon (0.75.1): + - ReactCommon/turbomodule (= 0.75.1) + - ReactCommon/turbomodule (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.75.1) + - React-cxxreact (= 0.75.1) + - React-jsi (= 0.75.1) + - React-logger (= 0.75.1) + - React-perflogger (= 0.75.1) + - ReactCommon/turbomodule/bridging (= 0.75.1) + - ReactCommon/turbomodule/core (= 0.75.1) + - ReactCommon/turbomodule/bridging (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.75.1) + - React-cxxreact (= 0.75.1) + - React-jsi (= 0.75.1) + - React-logger (= 0.75.1) + - React-perflogger (= 0.75.1) + - ReactCommon/turbomodule/core (0.75.1): + - DoubleConversion + - fmt (= 9.1.0) + - glog + - hermes-engine + - RCT-Folly (= 2024.01.01.00) + - React-callinvoker (= 0.75.1) + - React-cxxreact (= 0.75.1) + - React-debug (= 0.75.1) + - React-featureflags (= 0.75.1) + - React-jsi (= 0.75.1) + - React-logger (= 0.75.1) + - React-perflogger (= 0.75.1) + - React-utils (= 0.75.1) + - SocketRocket (0.7.0) + - Yoga (0.0.0) + +DEPENDENCIES: + - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) + - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) + - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) + - fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`) + - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) + - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) + - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCTDeprecation (from `../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`) + - RCTRequired (from `../node_modules/react-native/Libraries/Required`) + - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) + - React (from `../node_modules/react-native/`) + - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Core (from `../node_modules/react-native/`) + - React-Core/RCTWebSocket (from `../node_modules/react-native/`) + - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) + - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) + - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`) + - React-defaultsnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/defaults`) + - React-domnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/dom`) + - React-Fabric (from `../node_modules/react-native/ReactCommon`) + - React-FabricComponents (from `../node_modules/react-native/ReactCommon`) + - React-FabricImage (from `../node_modules/react-native/ReactCommon`) + - React-featureflags (from `../node_modules/react-native/ReactCommon/react/featureflags`) + - React-featureflagsnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/featureflags`) + - React-graphics (from `../node_modules/react-native/ReactCommon/react/renderer/graphics`) + - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`) + - React-idlecallbacksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks`) + - React-ImageManager (from `../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios`) + - React-jserrorhandler (from `../node_modules/react-native/ReactCommon/jserrorhandler`) + - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) + - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) + - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`) + - React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`) + - React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`) + - react-native-geofencing (from `../..`) + - React-nativeconfig (from `../node_modules/react-native/ReactCommon`) + - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`) + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) + - React-performancetimeline (from `../node_modules/react-native/ReactCommon/react/performance/timeline`) + - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) + - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) + - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`) + - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) + - React-RCTFabric (from `../node_modules/react-native/React`) + - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) + - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) + - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) + - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) + - React-RCTText (from `../node_modules/react-native/Libraries/Text`) + - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-rendererconsistency (from `../node_modules/react-native/ReactCommon/react/renderer/consistency`) + - React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`) + - React-rncore (from `../node_modules/react-native/ReactCommon`) + - React-RuntimeApple (from `../node_modules/react-native/ReactCommon/react/runtime/platform/ios`) + - React-RuntimeCore (from `../node_modules/react-native/ReactCommon/react/runtime`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - React-RuntimeHermes (from `../node_modules/react-native/ReactCommon/react/runtime`) + - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`) + - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) + - ReactCodegen (from `build/generated/ios`) + - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) + - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) + +SPEC REPOS: + trunk: + - SocketRocket + +EXTERNAL SOURCES: + boost: + :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" + DoubleConversion: + :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" + FBLazyVector: + :path: "../node_modules/react-native/Libraries/FBLazyVector" + fmt: + :podspec: "../node_modules/react-native/third-party-podspecs/fmt.podspec" + glog: + :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" + hermes-engine: + :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" + :tag: hermes-2024-08-15-RNv0.75.1-4b3bf912cc0f705b51b71ce1a5b8bd79b93a451b + RCT-Folly: + :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" + RCTDeprecation: + :path: "../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation" + RCTRequired: + :path: "../node_modules/react-native/Libraries/Required" + RCTTypeSafety: + :path: "../node_modules/react-native/Libraries/TypeSafety" + React: + :path: "../node_modules/react-native/" + React-callinvoker: + :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Core: + :path: "../node_modules/react-native/" + React-CoreModules: + :path: "../node_modules/react-native/React/CoreModules" + React-cxxreact: + :path: "../node_modules/react-native/ReactCommon/cxxreact" + React-debug: + :path: "../node_modules/react-native/ReactCommon/react/debug" + React-defaultsnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/defaults" + React-domnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/dom" + React-Fabric: + :path: "../node_modules/react-native/ReactCommon" + React-FabricComponents: + :path: "../node_modules/react-native/ReactCommon" + React-FabricImage: + :path: "../node_modules/react-native/ReactCommon" + React-featureflags: + :path: "../node_modules/react-native/ReactCommon/react/featureflags" + React-featureflagsnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/featureflags" + React-graphics: + :path: "../node_modules/react-native/ReactCommon/react/renderer/graphics" + React-hermes: + :path: "../node_modules/react-native/ReactCommon/hermes" + React-idlecallbacksnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks" + React-ImageManager: + :path: "../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios" + React-jserrorhandler: + :path: "../node_modules/react-native/ReactCommon/jserrorhandler" + React-jsi: + :path: "../node_modules/react-native/ReactCommon/jsi" + React-jsiexecutor: + :path: "../node_modules/react-native/ReactCommon/jsiexecutor" + React-jsinspector: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern" + React-jsitracing: + :path: "../node_modules/react-native/ReactCommon/hermes/executor/" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" + React-Mapbuffer: + :path: "../node_modules/react-native/ReactCommon" + React-microtasksnativemodule: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks" + react-native-geofencing: + :path: "../.." + React-nativeconfig: + :path: "../node_modules/react-native/ReactCommon" + React-NativeModulesApple: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios" + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" + React-performancetimeline: + :path: "../node_modules/react-native/ReactCommon/react/performance/timeline" + React-RCTActionSheet: + :path: "../node_modules/react-native/Libraries/ActionSheetIOS" + React-RCTAnimation: + :path: "../node_modules/react-native/Libraries/NativeAnimation" + React-RCTAppDelegate: + :path: "../node_modules/react-native/Libraries/AppDelegate" + React-RCTBlob: + :path: "../node_modules/react-native/Libraries/Blob" + React-RCTFabric: + :path: "../node_modules/react-native/React" + React-RCTImage: + :path: "../node_modules/react-native/Libraries/Image" + React-RCTLinking: + :path: "../node_modules/react-native/Libraries/LinkingIOS" + React-RCTNetwork: + :path: "../node_modules/react-native/Libraries/Network" + React-RCTSettings: + :path: "../node_modules/react-native/Libraries/Settings" + React-RCTText: + :path: "../node_modules/react-native/Libraries/Text" + React-RCTVibration: + :path: "../node_modules/react-native/Libraries/Vibration" + React-rendererconsistency: + :path: "../node_modules/react-native/ReactCommon/react/renderer/consistency" + React-rendererdebug: + :path: "../node_modules/react-native/ReactCommon/react/renderer/debug" + React-rncore: + :path: "../node_modules/react-native/ReactCommon" + React-RuntimeApple: + :path: "../node_modules/react-native/ReactCommon/react/runtime/platform/ios" + React-RuntimeCore: + :path: "../node_modules/react-native/ReactCommon/react/runtime" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + React-RuntimeHermes: + :path: "../node_modules/react-native/ReactCommon/react/runtime" + React-runtimescheduler: + :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler" + React-utils: + :path: "../node_modules/react-native/ReactCommon/react/utils" + ReactCodegen: + :path: build/generated/ios + ReactCommon: + :path: "../node_modules/react-native/ReactCommon" + Yoga: + :path: "../node_modules/react-native/ReactCommon/yoga" + +SPEC CHECKSUMS: + boost: 4cb898d0bf20404aab1850c656dcea009429d6c1 + DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5 + FBLazyVector: a3071c12f1650bfa84f2815e9982426256a0aae1 + fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120 + glog: 69ef571f3de08433d766d614c73a9838a06bf7eb + hermes-engine: e949b1da40409c52aa7bd79ff32cec045f5b4650 + RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740 + RCTDeprecation: bc01aeeb7acc314fc615a092001050d2e97c353a + RCTRequired: a511d4665e1f7ac044aad6486aa19d061bd2d365 + RCTTypeSafety: e77969bb08d920251de98b1fc1df223d7039c1ff + React: d7184b3f39c367504fe746f26b9d68a1dff0085b + React-callinvoker: 45fca04012bbc94978d3655007339dcf1a5232fd + React-Core: 1f79ea2071f8ac48ff56b2aff9b849a5ef25292a + React-CoreModules: 67f22193aa2ada01f1497a68f16ee940f69661e5 + React-cxxreact: 8ec017ccd74352fb814501707f81ba011d37459f + React-debug: 352c197132c626eddc6a1cd76e2697d1f2c8aaf2 + React-defaultsnativemodule: 794b7b45463b7eb6550194d24dfab90ed6c6d240 + React-domnativemodule: a25e07b5a169ff01847d46c51b66be67e9805fb9 + React-Fabric: 2dfa25f9dc66beb09d2ed0d0d05061c2f42ba352 + React-FabricComponents: f4551cba79793f3996265dfd56ca8031a75c091f + React-FabricImage: d464ec4461429c5d6aae9cda11635b4519aeb17b + React-featureflags: eb9f39413a653bd71a3eade6cafcefbc90bf7453 + React-featureflagsnativemodule: e2dea6751669d670ed11ba3fda37ef0756cb2adb + React-graphics: ec9d045f0f25e588d97899f6f5b92aee3dbcca8d + React-hermes: 3a250e0191116de7ef757b74d39386e83c609775 + React-idlecallbacksnativemodule: a401d60bda48a7cdbe2d4c5dc9e968dc37e2cc65 + React-ImageManager: 4ea61bac6827c3339ded2e3ec0752865975a1b40 + React-jserrorhandler: dd8ceb17410423e1b0f92742b105d8a4e30a988e + React-jsi: 66a12cec67ef950655b881d545018f08fa38a2d9 + React-jsiexecutor: 79d2789093ab9b821ceee0e15a79b21115cdbd4d + React-jsinspector: 929691bef04499c30fca9374ed6954ca30919cff + React-jsitracing: 8003b1956692fdd34b737a95ffd8efbb12f9986f + React-logger: 0a81d1a40650bbdafb255fe4616edb83feed0ee9 + React-Mapbuffer: b758bec0d9994c10a2841dfd5ec70673665fd3e2 + React-microtasksnativemodule: f25dba9c8c3f8be0b3368d52b99abd6e381dee1d + react-native-geofencing: c0c458b20c341c78435f659f075b6347ceec5f5a + React-nativeconfig: 7af2ccce165f86b233a9f9d63295f6207e62640e + React-NativeModulesApple: db1c1ee9dda26c9e58d824b4100fed83add82ae9 + React-perflogger: 7c4e97b47d8bc58c03fad1a6b97d96181b59aa41 + React-performancetimeline: ff6c906204f8efe69a43385389179812124fee3e + React-RCTActionSheet: 4d320d60f7343d15c681b4a3cb44fcf1e1d319a7 + React-RCTAnimation: 523261cf9e7852bb627d12f89e423ee4839428fb + React-RCTAppDelegate: f0bcfe72d53195d16defd6b4cd8ce0591190c4a1 + React-RCTBlob: c9aa6336d7a0195fa8960cdae1806a80d1a56083 + React-RCTFabric: ff72c45356b1089ffc9d241618a04cbe0302ae0d + React-RCTImage: 2c4f61a43046c6098c17ed998189729b78e2c9e1 + React-RCTLinking: 17fc004f09b77265e34351afc4a501d5dc3a4d17 + React-RCTNetwork: 1590882206f723a2b50e7a492b592696e28dc05e + React-RCTSettings: bca2756c3b9ad9fefc789276be734fc49c3287fc + React-RCTText: ec488070f17fbab655abb3e102b79d1b1dc7b007 + React-RCTVibration: d84f562d6b14a6cb2b082225f55f47cbd190482f + React-rendererconsistency: 10d49d3d663e52b28fac749543473207f0dd411e + React-rendererdebug: f3f5b36ae16b859ae4fc3354dc4436067265fff9 + React-rncore: 2f9b482f627d8854a0b247e78119764d73d42335 + React-RuntimeApple: 4749c1ffc84765252ee2d2f8d8fd0b01e4d5e63a + React-RuntimeCore: 1d44cd3189d61fa91ae6bb46e374c097ce5d8873 + React-runtimeexecutor: 7f3bb572e57574f0e45338f2e33339d1b712e7ea + React-RuntimeHermes: 11f77829525f1371b2b9aad060f6bf31fafd60a1 + React-runtimescheduler: 5bdbfb4e9c4efc508f9f1da8ef0a9e62362d9713 + React-utils: 0ae17a2fe87b43a939826410d2fcbb28d44f1bfc + ReactCodegen: e9156d86a166f3e10dc8fb6160764048df3528bc + ReactCommon: 3ae48fa4cfa7052a270c2150ececfc94e541fb8a + SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d + Yoga: 06fc4b2c3664ae0e278964b8fbcb0ee9d21f0a5a + +PODFILE CHECKSUM: 9c9a2c02e28b4975c6cf8fd766e641ebb6d4520f + +COCOAPODS: 1.15.2 diff --git a/example/ios/ReactNativeGeofencingExample.xcodeproj/project.pbxproj b/example/ios/ReactNativeGeofencingExample.xcodeproj/project.pbxproj index 83b92e7..8079093 100644 --- a/example/ios/ReactNativeGeofencingExample.xcodeproj/project.pbxproj +++ b/example/ios/ReactNativeGeofencingExample.xcodeproj/project.pbxproj @@ -12,6 +12,7 @@ 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 229C07CD3D58F608572E44EF /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 3A474FEBE568263F44608461 /* PrivacyInfo.xcprivacy */; }; 7699B88040F8A987B510C191 /* libPods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.a */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ @@ -38,6 +39,7 @@ 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeGeofencingExample/main.m; sourceTree = ""; }; 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = ReactNativeGeofencingExample/PrivacyInfo.xcprivacy; sourceTree = ""; }; 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 3A474FEBE568263F44608461 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = ReactNativeGeofencingExample/PrivacyInfo.xcprivacy; sourceTree = ""; }; 3B4392A12AC88292D35C810B /* Pods-ReactNativeGeofencingExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeGeofencingExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeGeofencingExample/Pods-ReactNativeGeofencingExample.debug.xcconfig"; sourceTree = ""; }; 5709B34CF0A7D63546082F79 /* Pods-ReactNativeGeofencingExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeGeofencingExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeGeofencingExample/Pods-ReactNativeGeofencingExample.release.xcconfig"; sourceTree = ""; }; 5B7EB9410499542E8C5724F5 /* Pods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests/Pods-ReactNativeGeofencingExample-ReactNativeGeofencingExampleTests.debug.xcconfig"; sourceTree = ""; }; @@ -94,6 +96,7 @@ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 13B07FB71A68108700A75B9A /* main.m */, 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */, + 3A474FEBE568263F44608461 /* PrivacyInfo.xcprivacy */, ); name = ReactNativeGeofencingExample; sourceTree = ""; @@ -245,6 +248,7 @@ files = ( 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + 229C07CD3D58F608572E44EF /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -431,7 +435,7 @@ "-lc++", "$(inherited)", ); - PRODUCT_BUNDLE_IDENTIFIER = "rnbridge.reactnativegeofencing.example"; + PRODUCT_BUNDLE_IDENTIFIER = rnbridge.reactnativegeofencing.example; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeGeofencingExample.app/ReactNativeGeofencingExample"; }; @@ -455,7 +459,7 @@ "-lc++", "$(inherited)", ); - PRODUCT_BUNDLE_IDENTIFIER = "rnbridge.reactnativegeofencing.example"; + PRODUCT_BUNDLE_IDENTIFIER = rnbridge.reactnativegeofencing.example; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeGeofencingExample.app/ReactNativeGeofencingExample"; }; @@ -467,7 +471,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = R7S39UR27F; ENABLE_BITCODE = NO; INFOPLIST_FILE = ReactNativeGeofencingExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( @@ -480,8 +487,9 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "rnbridge.reactnativegeofencing.example"; + PRODUCT_BUNDLE_IDENTIFIER = rnbridge.reactnativegeofencing.example; PRODUCT_NAME = ReactNativeGeofencingExample; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -494,7 +502,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = R7S39UR27F; INFOPLIST_FILE = ReactNativeGeofencingExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -506,8 +517,9 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = "rnbridge.reactnativegeofencing.example"; + PRODUCT_BUNDLE_IDENTIFIER = rnbridge.reactnativegeofencing.example; PRODUCT_NAME = ReactNativeGeofencingExample; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; @@ -517,6 +529,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CC = ""; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_CXX_LIBRARY = "libc++"; @@ -544,6 +557,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; + CXX = ""; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; @@ -563,6 +577,8 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD = ""; + LDPLUSPLUS = ""; LD_RUNPATH_SEARCH_PATHS = ( /usr/lib/swift, "$(inherited)", @@ -582,7 +598,15 @@ "-DFOLLY_CFG_NO_COROUTINES=1", "-DFOLLY_HAVE_CLOCK_GETTIME=1", ); + OTHER_LDFLAGS = ( + "$(inherited)", + "-Wl", + "-ld_classic", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG"; + USE_HERMES = true; }; name = Debug; }; @@ -590,6 +614,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CC = ""; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++20"; CLANG_CXX_LIBRARY = "libc++"; @@ -617,6 +642,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; + CXX = ""; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; @@ -629,6 +655,8 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD = ""; + LDPLUSPLUS = ""; LD_RUNPATH_SEARCH_PATHS = ( /usr/lib/swift, "$(inherited)", @@ -647,7 +675,14 @@ "-DFOLLY_CFG_NO_COROUTINES=1", "-DFOLLY_HAVE_CLOCK_GETTIME=1", ); + OTHER_LDFLAGS = ( + "$(inherited)", + "-Wl", + "-ld_classic", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; + USE_HERMES = true; VALIDATE_PRODUCT = YES; }; name = Release; diff --git a/example/ios/ReactNativeGeofencingExample.xcworkspace/contents.xcworkspacedata b/example/ios/ReactNativeGeofencingExample.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..2626c2a --- /dev/null +++ b/example/ios/ReactNativeGeofencingExample.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/example/ios/ReactNativeGeofencingExample/Info.plist b/example/ios/ReactNativeGeofencingExample/Info.plist index 006d397..3725d14 100644 --- a/example/ios/ReactNativeGeofencingExample/Info.plist +++ b/example/ios/ReactNativeGeofencingExample/Info.plist @@ -32,8 +32,16 @@ NSAllowsLocalNetworking + NSLocationAlwaysAndWhenInUseUsageDescription + This app need your location to provide best feature based on location NSLocationWhenInUseUsageDescription - + This app need your location to provide best feature based on location + NSLocationAlwaysUsageDescription + This app need your location to provide best feature based on location in background + UIBackgroundModes + + location + UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities diff --git a/example/src/App.tsx b/example/src/App.tsx index 8f135c0..8f7b265 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,20 +1,83 @@ -import { useState, useEffect } from 'react'; -import { StyleSheet, View, Text } from 'react-native'; -import { multiply } from '@rn-bridge/react-native-geofencing'; +import React from 'react'; +import { + StyleSheet, + View, + TouchableOpacity, + Text, + PermissionsAndroid, + Platform, +} from 'react-native'; +import { + addGeofence, + removeGeofence, + getRegisteredGeofences, +} from '@rn-bridge/react-native-geofencing'; -export default function App() { - const [result, setResult] = useState(); +const Button = ({ + title, + style = {}, + textStyle = {}, + onPress, +}: { + title: string; + style: any; + textStyle: any; + onPress: () => void; +}) => { + return ( + + {title} + + ); +}; - useEffect(() => { - multiply(3, 7).then(setResult); +export const App = () => { + React.useEffect(() => { + if (Platform.OS === 'android') { + PermissionsAndroid.request('android.permission.ACCESS_FINE_LOCATION'); + } }, []); return ( - Result: {result} +