├── .npmignore
├── Demo
└── MotionEventManagerSample
│ ├── .watchmanconfig
│ ├── .gitattributes
│ ├── app.json
│ ├── babel.config.js
│ ├── android
│ ├── app
│ │ ├── src
│ │ │ ├── main
│ │ │ │ ├── res
│ │ │ │ │ ├── values
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── motioneventmanagersample
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── debug
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build_defs.bzl
│ │ ├── proguard-rules.pro
│ │ ├── BUCK
│ │ └── build.gradle
│ ├── keystores
│ │ ├── debug.keystore.properties
│ │ └── BUCK
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── settings.gradle
│ ├── gradle.properties
│ ├── build.gradle
│ ├── gradlew.bat
│ └── gradlew
│ ├── ios
│ ├── MotionEventManagerSample
│ │ ├── Images.xcassets
│ │ │ ├── Contents.json
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.h
│ │ ├── main.m
│ │ ├── AppDelegate.m
│ │ ├── Info.plist
│ │ └── Base.lproj
│ │ │ └── LaunchScreen.xib
│ ├── MotionEventManagerSampleTests
│ │ ├── Info.plist
│ │ └── MotionEventManagerSampleTests.m
│ ├── MotionEventManagerSample-tvOSTests
│ │ └── Info.plist
│ ├── MotionEventManagerSample-tvOS
│ │ └── Info.plist
│ └── MotionEventManagerSample.xcodeproj
│ │ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── MotionEventManagerSample.xcscheme
│ │ │ └── MotionEventManagerSample-tvOS.xcscheme
│ │ └── project.pbxproj
│ ├── .buckconfig
│ ├── index.js
│ ├── __tests__
│ └── App-test.js
│ ├── metro.config.js
│ ├── package.json
│ ├── .gitignore
│ ├── App.js
│ └── .flowconfig
├── android
├── src
│ └── main
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── renrendai
│ │ └── motionevent
│ │ ├── SensorListener.java
│ │ ├── BaseEvent.java
│ │ ├── BaseSensorManager.java
│ │ ├── gyroscope
│ │ ├── GyroscopeManager.java
│ │ └── RNGyroscopeModule.java
│ │ ├── magnetometer
│ │ ├── MagnetometerManager.java
│ │ └── RNMagnetometerModule.java
│ │ ├── accelerometer
│ │ ├── AccelerometerManager.java
│ │ └── RNAccelerometerModule.java
│ │ ├── MotionEventPackage.java
│ │ ├── BaseSensorModule.java
│ │ └── devicemotion
│ │ ├── DeviceOrientationManager.java
│ │ └── RNDeviceMotionModule.java
└── build.gradle
├── ios
├── RNGyroscopeModule.h
├── RNAccelerometerModule.h
├── RNDeviceMotionModule.h
├── RNMagnetometerModule.h
├── RNMotionEventManager.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ ├── xcuserdata
│ │ │ └── rrd.xcuserdatad
│ │ │ │ └── UserInterfaceState.xcuserstate
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcuserdata
│ │ └── rrd.xcuserdatad
│ │ │ └── xcschemes
│ │ │ └── xcschememanagement.plist
│ └── project.pbxproj
├── RNGyroscopeModule.m
├── RNMagnetometerModule.m
├── RNAccelerometerModule.m
└── RNDeviceMotionModule.m
├── index.js
├── RNMotionEventManager.podspec
├── src
├── GyroscopeModule.js
├── DeviceMotionModule.js
├── MagnetometerModule.js
└── AccelerometerModule.js
├── package.json
├── LICENSE
├── API.md
├── README.md
└── README_en.md
/.npmignore:
--------------------------------------------------------------------------------
1 | Demo/
2 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "MotionEventManagerSample",
3 | "displayName": "MotionEventManagerSample"
4 | }
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | };
4 |
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | MotionEventManagerSample
3 |
4 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/ios/RNGyroscopeModule.h:
--------------------------------------------------------------------------------
1 |
2 | #import
3 | #import
4 |
5 | @interface RNGyroscopeModule : NSObject
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/ios/RNAccelerometerModule.h:
--------------------------------------------------------------------------------
1 |
2 | #import
3 | #import
4 |
5 | @interface RNAccelerometerModule : NSObject
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/ios/RNDeviceMotionModule.h:
--------------------------------------------------------------------------------
1 |
2 | #import
3 | #import
4 |
5 | @interface RNDeviceMotionModule : NSObject
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/ios/RNMagnetometerModule.h:
--------------------------------------------------------------------------------
1 |
2 | #import
3 | #import
4 |
5 | @interface RNMagnetometerModule : NSObject
6 |
7 | @end
8 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/SensorListener.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent;
2 |
3 | public interface SensorListener {
4 | void onSensorChanged(double x, double y, double z);
5 | }
6 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/Demo/MotionEventManagerSample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import {AppRegistry} from 'react-native';
6 | import App from './App';
7 | import {name as appName} from './app.json';
8 |
9 | AppRegistry.registerComponent(appName, () => App);
10 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | export { DeviceMotionModule } from './src/DeviceMotionModule';
2 | export { AccelerometerModule } from './src/AccelerometerModule';
3 | export { GyroscopeModule } from './src/GyroscopeModule';
4 | export { MagnetometerModule } from './src/MagnetometerModule';
--------------------------------------------------------------------------------
/ios/RNMotionEventManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
6 |
--------------------------------------------------------------------------------
/ios/RNMotionEventManager.xcodeproj/project.xcworkspace/xcuserdata/rrd.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrd-fe/react-native-motion-event-manager/HEAD/ios/RNMotionEventManager.xcodeproj/project.xcworkspace/xcuserdata/rrd.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'MotionEventManagerSample'
2 | include ':react-native-motion-event-manager'
3 | project(':react-native-motion-event-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-motion-event-manager/android')
4 |
5 | include ':app'
6 |
--------------------------------------------------------------------------------
/ios/RNMotionEventManager.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/__tests__/App-test.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import 'react-native';
6 | import React from 'react';
7 | import App from '../App';
8 |
9 | // Note: test renderer must be required after react-native.
10 | import renderer from 'react-test-renderer';
11 |
12 | it('renders correctly', () => {
13 | renderer.create();
14 | });
15 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/metro.config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Metro configuration for React Native
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | */
7 |
8 | module.exports = {
9 | transformer: {
10 | getTransformOptions: async () => ({
11 | transform: {
12 | experimentalImportSupport: false,
13 | inlineRequires: false,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/RNMotionEventManager.xcodeproj/xcuserdata/rrd.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | RNMotionEventManager.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (nonatomic, strong) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/java/com/motioneventmanagersample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.motioneventmanagersample;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "MotionEventManagerSample";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/RNMotionEventManager.podspec:
--------------------------------------------------------------------------------
1 | require 'json'
2 |
3 | package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4 |
5 | Pod::Spec.new do |s|
6 |
7 | s.name = 'RNMotionEventManager'
8 | s.version = package['version']
9 | s.summary = package['description']
10 | s.author = package['author']
11 | s.license = package['license']
12 | s.homepage = package['homepage']
13 | s.source = { :git => 'https://github.com/rrd-fe/react-native-motion-event-manager.git', :tag => "#{s.version}" }
14 | s.platform = :ios, '8.0'
15 |
16 | s.source_files = 'ios/**/*.{h,m,c,mm,md}'
17 | s.public_header_files = 'ios/*.h'
18 |
19 | s.dependency 'React'
20 |
21 | end
22 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "MotionEventManagerSample",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "react": "16.8.3",
11 | "react-native": "0.59.8",
12 | "react-native-motion-event-manager": "^0.0.3"
13 | },
14 | "devDependencies": {
15 | "@babel/core": "^7.4.5",
16 | "@babel/runtime": "^7.4.5",
17 | "babel-jest": "^24.8.0",
18 | "jest": "^24.8.0",
19 | "metro-react-native-babel-preset": "^0.54.1",
20 | "react-test-renderer": "16.8.3"
21 | },
22 | "jest": {
23 | "preset": "react-native"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | def safeExtGet(prop, fallback) {
4 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
5 | }
6 |
7 | def _reactNativeVersion = safeExtGet("reactNative", "+")
8 |
9 | android {
10 | compileSdkVersion safeExtGet("compileSdkVersion", 28)
11 |
12 | defaultConfig {
13 | minSdkVersion safeExtGet("minSdkVersion", 14)
14 | targetSdkVersion safeExtGet("targetSdkVersion", 28)
15 | versionCode 1
16 | versionName "1.0"
17 | }
18 |
19 | lintOptions {
20 | abortOnError false
21 | }
22 | }
23 |
24 | dependencies {
25 | implementation fileTree(dir: 'libs', include: ['*.jar'])
26 | implementation "com.facebook.react:react-native:${_reactNativeVersion}"
27 | }
28 |
--------------------------------------------------------------------------------
/src/GyroscopeModule.js:
--------------------------------------------------------------------------------
1 |
2 | import {
3 | Animated,
4 | NativeModules,
5 | } from 'react-native';
6 |
7 | const RNGyroscopeModule = NativeModules.RNGyroscopeModule;
8 |
9 | var GyroscopeModule = {
10 | startGyroscopeUpdates: function(eventMapping) {
11 | // Since allocateTag() is not exposed to public, we set a big unique number to
12 | // the tag param as a workaround
13 | let tag = 100004;
14 | let eventName = 'onGyroscopeChange';
15 | Animated.attachNativeEvent(tag, eventName, [{
16 | nativeEvent: eventMapping,
17 | }]);
18 | RNGyroscopeModule.startGyroscopeUpdates(tag, eventName);
19 | },
20 | stopGyroscopeUpdates: function() {
21 | RNGyroscopeModule.stopGyroscopeUpdates();
22 | },
23 | }
24 |
25 | export { GyroscopeModule };
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-motion-event-manager",
3 | "version": "0.0.4",
4 | "description": "Extract device motion event to React Native, use native driver to provide high performance.",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "keywords": [
10 | "react-native",
11 | "Animated.event",
12 | "CMMotionManager",
13 | "MotionManager",
14 | "Accelerometer",
15 | "Gyroscope",
16 | "Magnetometer",
17 | "yaw",
18 | "pitch",
19 | "roll",
20 | "native driver"
21 | ],
22 | "author": "Michael Bai",
23 | "license": "MIT",
24 | "homepage": "https://github.com/rrd-fe/react-native-motion-event-manager",
25 | "repository": "https://github.com/rrd-fe/react-native-motion-event-manager.git"
26 | }
27 |
--------------------------------------------------------------------------------
/src/DeviceMotionModule.js:
--------------------------------------------------------------------------------
1 |
2 | import {
3 | Animated,
4 | NativeModules,
5 | } from 'react-native';
6 |
7 | const RNMotionModule = NativeModules.RNDeviceMotionModule;
8 |
9 | var DeviceMotionModule = {
10 | startDeviceMotionUpdates: function(eventMapping) {
11 | // Since allocateTag() is not exposed to public, we set a big unique number to
12 | // the tag param as a workaround
13 | let tag = 100000;
14 | let eventName = 'onMotionChange';
15 | Animated.attachNativeEvent(tag, eventName, [{
16 | nativeEvent: eventMapping,
17 | }]);
18 | RNMotionModule.startDeviceMotionUpdates(tag, eventName);
19 | },
20 | stopDeviceMotionUpdates: function() {
21 | RNMotionModule.stopDeviceMotionUpdates();
22 | },
23 | }
24 |
25 | export { DeviceMotionModule };
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/src/MagnetometerModule.js:
--------------------------------------------------------------------------------
1 |
2 | import {
3 | Animated,
4 | NativeModules,
5 | } from 'react-native';
6 |
7 | const RNMagnetometerModule = NativeModules.RNMagnetometerModule;
8 |
9 | var MagnetometerModule = {
10 | startMagnetometerUpdates: function(eventMapping) {
11 | // Since allocateTag() is not exposed to public, we set a big unique number to
12 | // the tag param as a workaround
13 | let tag = 100006;
14 | let eventName = 'onMagnetometerChange';
15 | Animated.attachNativeEvent(tag, eventName, [{
16 | nativeEvent: eventMapping,
17 | }]);
18 | RNMagnetometerModule.startMagnetometerUpdates(tag, eventName);
19 | },
20 | stopMagnetometerUpdates: function() {
21 | RNMagnetometerModule.stopMagnetometerUpdates();
22 | },
23 | }
24 |
25 | export { MagnetometerModule };
--------------------------------------------------------------------------------
/src/AccelerometerModule.js:
--------------------------------------------------------------------------------
1 |
2 | import {
3 | Animated,
4 | NativeModules,
5 | } from 'react-native';
6 |
7 | const RNAccelerometerModule = NativeModules.RNAccelerometerModule;
8 |
9 | var AccelerometerModule = {
10 | startAccelerometerUpdates: function(eventMapping) {
11 | // Since allocateTag() is not exposed to public, we set a big unique number to
12 | // the tag param as a workaround
13 | let tag = 100002;
14 | let eventName = 'onAccelerometerChange';
15 | Animated.attachNativeEvent(tag, eventName, [{
16 | nativeEvent: eventMapping,
17 | }]);
18 | RNAccelerometerModule.startAccelerometerUpdates(tag, eventName);
19 | },
20 | stopAccelerometerUpdates: function() {
21 | RNAccelerometerModule.stopAccelerometerUpdates();
22 | },
23 | }
24 |
25 | export { AccelerometerModule };
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "28.0.3"
6 | minSdkVersion = 16
7 | compileSdkVersion = 28
8 | targetSdkVersion = 28
9 | supportLibVersion = "28.0.0"
10 | }
11 | repositories {
12 | google()
13 | jcenter()
14 | }
15 | dependencies {
16 | classpath 'com.android.tools.build:gradle:3.3.1'
17 |
18 | // NOTE: Do not place your application dependencies here; they belong
19 | // in the individual module build.gradle files
20 | }
21 | }
22 |
23 | allprojects {
24 | repositories {
25 | mavenLocal()
26 | google()
27 | jcenter()
28 | maven {
29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
30 | url "$rootDir/../node_modules/react-native/android"
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/BaseEvent.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent;
2 |
3 | import com.facebook.react.bridge.WritableMap;
4 | import com.facebook.react.uimanager.events.Event;
5 | import com.facebook.react.uimanager.events.RCTEventEmitter;
6 |
7 | public abstract class BaseEvent extends Event {
8 |
9 | private String eventName;
10 | private double x;
11 | private double y;
12 | private double z;
13 |
14 | public BaseEvent(int viewTag, String eventName, double x, double y, double z) {
15 | super(viewTag);
16 | this.eventName = eventName;
17 | this.x = x;
18 | this.y = y;
19 | this.z = z;
20 | }
21 |
22 | @Override
23 | public String getEventName() {
24 | return eventName;
25 | }
26 |
27 | @Override
28 | public void dispatch(RCTEventEmitter rctEventEmitter) {
29 | rctEventEmitter.receiveEvent(getViewTag(), getEventName(), createEventData(x, y, z));
30 | }
31 |
32 | protected abstract WritableMap createEventData(double x, double y, double z);
33 | }
34 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
13 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Daniel Schmidt
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/BaseSensorManager.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent;
2 |
3 | import android.content.Context;
4 | import android.hardware.SensorManager;
5 |
6 | public abstract class BaseSensorManager {
7 |
8 | private SensorManager sensorManager;
9 | private SensorListener listener = DEFAULTLISTENER;
10 |
11 | public BaseSensorManager(Context context) {
12 | sensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
13 | }
14 |
15 | void setSensorListener(SensorListener listener) {
16 | if (this.listener != null) {
17 | this.listener = listener;
18 | } else {
19 | this.listener = DEFAULTLISTENER;
20 | }
21 | }
22 |
23 | void resetSensorListener() {
24 | this.listener = DEFAULTLISTENER;
25 | }
26 |
27 | protected SensorListener getSensorListener() {
28 | return listener;
29 | }
30 |
31 | protected SensorManager getSensorManager() {
32 | return sensorManager;
33 | }
34 |
35 | public abstract void registerSensor();
36 |
37 | public abstract void unRegisterSensor();
38 |
39 | private final static SensorListener DEFAULTLISTENER = new SensorListener() {
40 | @Override
41 | public void onSensorChanged(double x, double y, double z) {
42 |
43 | }
44 | };
45 | }
46 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/gyroscope/GyroscopeManager.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.gyroscope;
2 |
3 | import android.content.Context;
4 | import android.hardware.Sensor;
5 | import android.hardware.SensorEvent;
6 | import android.hardware.SensorEventListener;
7 | import android.hardware.SensorManager;
8 |
9 | import com.renrendai.motionevent.BaseSensorManager;
10 |
11 | class GyroscopeManager extends BaseSensorManager implements SensorEventListener {
12 |
13 | public GyroscopeManager(Context context) {
14 | super(context);
15 | }
16 |
17 | @Override
18 | public void registerSensor() {
19 | Sensor accelerometer = getSensorManager().getDefaultSensor(Sensor.TYPE_GYROSCOPE);
20 | if (accelerometer != null) {
21 | getSensorManager().registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_GAME);
22 | }
23 | }
24 |
25 | @Override
26 | public void unRegisterSensor() {
27 | getSensorManager().unregisterListener(this);
28 | }
29 |
30 | @Override
31 | public void onSensorChanged(SensorEvent event) {
32 | if (event.sensor.getType() == Sensor.TYPE_GYROSCOPE) {
33 | getSensorListener().onSensorChanged(event.values[0], event.values[1], event.values[2]);
34 | }
35 | }
36 |
37 | @Override
38 | public void onAccuracyChanged(Sensor sensor, int accuracy) {
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/src/main/java/com/motioneventmanagersample/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.motioneventmanagersample;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.renrendai.motionevent.MotionEventPackage;
7 | import com.facebook.react.ReactNativeHost;
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.shell.MainReactPackage;
10 | import com.facebook.soloader.SoLoader;
11 |
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | return Arrays.asList(
26 | new MainReactPackage(),
27 | new MotionEventPackage()
28 | );
29 | }
30 |
31 | @Override
32 | protected String getJSMainModuleName() {
33 | return "index";
34 | }
35 | };
36 |
37 | @Override
38 | public ReactNativeHost getReactNativeHost() {
39 | return mReactNativeHost;
40 | }
41 |
42 | @Override
43 | public void onCreate() {
44 | super.onCreate();
45 | SoLoader.init(this, /* native exopackage */ false);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/magnetometer/MagnetometerManager.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.magnetometer;
2 |
3 | import android.content.Context;
4 | import android.hardware.Sensor;
5 | import android.hardware.SensorEvent;
6 | import android.hardware.SensorEventListener;
7 | import android.hardware.SensorManager;
8 |
9 | import com.renrendai.motionevent.BaseSensorManager;
10 |
11 | class MagnetometerManager extends BaseSensorManager implements SensorEventListener {
12 |
13 | public MagnetometerManager(Context context) {
14 | super(context);
15 | }
16 |
17 | @Override
18 | public void registerSensor() {
19 | Sensor accelerometer = getSensorManager().getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
20 | if (accelerometer != null) {
21 | getSensorManager().registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_GAME);
22 | }
23 | }
24 |
25 | @Override
26 | public void unRegisterSensor() {
27 | getSensorManager().unregisterListener(this);
28 | }
29 |
30 | @Override
31 | public void onSensorChanged(SensorEvent event) {
32 | if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {
33 | getSensorListener().onSensorChanged(event.values[0], event.values[1], event.values[2]);
34 | }
35 | }
36 |
37 | @Override
38 | public void onAccuracyChanged(Sensor sensor, int accuracy) {
39 |
40 | }
41 | }
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/accelerometer/AccelerometerManager.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.accelerometer;
2 |
3 | import android.content.Context;
4 | import android.hardware.Sensor;
5 | import android.hardware.SensorEvent;
6 | import android.hardware.SensorEventListener;
7 | import android.hardware.SensorManager;
8 |
9 | import com.renrendai.motionevent.BaseSensorManager;
10 |
11 | class AccelerometerManager extends BaseSensorManager implements SensorEventListener {
12 |
13 | public AccelerometerManager(Context context) {
14 | super(context);
15 | }
16 |
17 | @Override
18 | public void registerSensor() {
19 | Sensor accelerometer = getSensorManager().getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
20 | if (accelerometer != null) {
21 | getSensorManager().registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_GAME);
22 | }
23 | }
24 |
25 | @Override
26 | public void unRegisterSensor() {
27 | getSensorManager().unregisterListener(this);
28 | }
29 |
30 | @Override
31 | public void onSensorChanged(SensorEvent event) {
32 | if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
33 | getSensorListener().onSensorChanged(event.values[0], event.values[1], event.values[2]);
34 | }
35 | }
36 |
37 | @Override
38 | public void onAccuracyChanged(Sensor sensor, int accuracy) {
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/MotionEventPackage.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent;
2 |
3 | import com.facebook.react.ReactPackage;
4 | import com.facebook.react.bridge.NativeModule;
5 | import com.facebook.react.bridge.ReactApplicationContext;
6 | import com.facebook.react.uimanager.ViewManager;
7 | import com.renrendai.motionevent.accelerometer.RNAccelerometerModule;
8 | import com.renrendai.motionevent.devicemotion.RNDeviceMotionModule;
9 | import com.renrendai.motionevent.gyroscope.RNGyroscopeModule;
10 | import com.renrendai.motionevent.magnetometer.RNMagnetometerModule;
11 |
12 | import java.util.ArrayList;
13 | import java.util.Collections;
14 | import java.util.List;
15 |
16 | import javax.annotation.Nonnull;
17 |
18 | public class MotionEventPackage implements ReactPackage {
19 | @Nonnull
20 | @Override
21 | public List createNativeModules(@Nonnull ReactApplicationContext reactContext) {
22 | List modules = new ArrayList<>();
23 | modules.add(new RNAccelerometerModule(reactContext));
24 | modules.add(new RNDeviceMotionModule(reactContext));
25 | modules.add(new RNGyroscopeModule(reactContext));
26 | modules.add(new RNMagnetometerModule(reactContext));
27 | return modules;
28 | }
29 |
30 | @Nonnull
31 | @Override
32 | public List createViewManagers(@Nonnull ReactApplicationContext reactContext) {
33 | return Collections.emptyList();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.motioneventmanagersample",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.motioneventmanagersample",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 | #import
13 |
14 | @implementation AppDelegate
15 |
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17 | {
18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
20 | moduleName:@"MotionEventManagerSample"
21 | initialProperties:nil];
22 |
23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
24 |
25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
26 | UIViewController *rootViewController = [UIViewController new];
27 | rootViewController.view = rootView;
28 | self.window.rootViewController = rootViewController;
29 | [self.window makeKeyAndVisible];
30 | return YES;
31 | }
32 |
33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
34 | {
35 | #if DEBUG
36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
37 | #else
38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
39 | #endif
40 | }
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | MotionEventManagerSample
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSAllowsArbitraryLoads
30 |
31 | NSExceptionDomains
32 |
33 | localhost
34 |
35 | NSExceptionAllowsInsecureHTTPLoads
36 |
37 |
38 |
39 |
40 | NSLocationWhenInUseUsageDescription
41 |
42 | UILaunchStoryboardName
43 | LaunchScreen
44 | UIRequiredDeviceCapabilities
45 |
46 | armv7
47 |
48 | UISupportedInterfaceOrientations
49 |
50 | UIInterfaceOrientationPortrait
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/BaseSensorModule.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent;
2 |
3 | import com.facebook.react.bridge.ReactApplicationContext;
4 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
5 | import com.facebook.react.uimanager.UIManagerModule;
6 | import com.facebook.react.uimanager.events.Event;
7 | import com.facebook.react.uimanager.events.EventDispatcher;
8 |
9 | import javax.annotation.Nonnull;
10 |
11 | public abstract class BaseSensorModule extends ReactContextBaseJavaModule {
12 |
13 | private BaseSensorManager manager;
14 |
15 | public BaseSensorModule(@Nonnull ReactApplicationContext reactContext) {
16 | super(reactContext);
17 | manager = createSensorManager(reactContext);
18 | }
19 |
20 | protected void bindSensorManager(final int tag, final String eventName) {
21 | if (manager != null) {
22 | final EventDispatcher dispatcher = getReactApplicationContext().getNativeModule(UIManagerModule.class).getEventDispatcher();
23 | manager.setSensorListener(new SensorListener() {
24 | @Override
25 | public void onSensorChanged(double x, double y, double z) {
26 | if (dispatcher != null) {
27 | dispatcher.dispatchEvent(createEvent(tag, eventName, x, y, z));
28 | }
29 | }
30 | });
31 | manager.registerSensor();
32 | }
33 | }
34 |
35 | protected void unbindSensorManager() {
36 | if (manager != null) {
37 | manager.resetSensorListener();
38 | manager.unRegisterSensor();
39 | }
40 | }
41 |
42 | protected abstract BaseSensorManager createSensorManager(ReactApplicationContext reactContext);
43 |
44 | protected abstract Event createEvent(int tag, String eventName, double x, double y, double z);
45 | }
46 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/devicemotion/DeviceOrientationManager.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.devicemotion;
2 |
3 | import android.content.Context;
4 | import android.hardware.Sensor;
5 | import android.hardware.SensorEvent;
6 | import android.hardware.SensorEventListener;
7 | import android.hardware.SensorManager;
8 |
9 | import com.renrendai.motionevent.BaseSensorManager;
10 |
11 | class DeviceOrientationManager extends BaseSensorManager implements SensorEventListener {
12 |
13 | private final float[] rotationMatrix = new float[9];
14 | private final float[] transformedRotationMatrix = new float[9];
15 | private final float[] orientationAngles = new float[3];
16 |
17 | public DeviceOrientationManager(Context context) {
18 | super(context);
19 | }
20 |
21 | @Override
22 | public void registerSensor() {
23 | Sensor rotationVector = getSensorManager().getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);
24 | if (rotationVector != null) {
25 | getSensorManager().registerListener(this, rotationVector, SensorManager.SENSOR_DELAY_GAME);
26 | }
27 | }
28 |
29 | @Override
30 | public void unRegisterSensor() {
31 | getSensorManager().unregisterListener(this);
32 |
33 | }
34 |
35 | @Override
36 | public void onSensorChanged(SensorEvent event) {
37 | if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR) {
38 | SensorManager.getRotationMatrixFromVector(rotationMatrix, event.values);
39 | SensorManager.remapCoordinateSystem(rotationMatrix, SensorManager.AXIS_X, SensorManager.AXIS_Y, transformedRotationMatrix);
40 | SensorManager.getOrientation(transformedRotationMatrix, orientationAngles);
41 | getSensorListener().onSensorChanged(orientationAngles[0], orientationAngles[1], orientationAngles[2]);
42 | }
43 | }
44 |
45 | @Override
46 | public void onAccuracyChanged(Sensor sensor, int accuracy) {
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | * @flow
7 | */
8 |
9 | import React, {Component} from 'react';
10 | import {Platform, StyleSheet, Text, View, Animated} from 'react-native';
11 | import { DeviceMotionModule } from 'react-native-motion-event-manager';
12 |
13 | const instructions = Platform.select({
14 | ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
15 | android:
16 | 'Double tap R on your keyboard to reload,\n' +
17 | 'Shake or press menu button for dev menu',
18 | });
19 |
20 | type Props = {};
21 | export default class App extends Component {
22 | constructor(props) {
23 | super(props);
24 |
25 | this.state = {
26 | roll: new Animated.Value(0),
27 | }
28 | }
29 |
30 | componentDidMount() {
31 | // replace with your mapping here
32 | let eventMapping = {
33 | attitude: {
34 | roll: this.state.roll,
35 | }
36 | };
37 | DeviceMotionModule.startDeviceMotionUpdates(eventMapping);
38 | }
39 |
40 | componentWillUnmount() {
41 | DeviceMotionModule.stopDeviceMotionUpdates();
42 | }
43 |
44 | render() {
45 | return (
46 |
47 |
52 | Opacity will change while rolling.
53 |
54 | Welcome to React Native!
55 | To get started, edit App.js
56 | {instructions}
57 |
58 | );
59 | }
60 | }
61 |
62 | const styles = StyleSheet.create({
63 | container: {
64 | flex: 1,
65 | justifyContent: 'center',
66 | alignItems: 'center',
67 | backgroundColor: '#F5FCFF',
68 | },
69 | welcome: {
70 | fontSize: 20,
71 | textAlign: 'center',
72 | margin: 10,
73 | },
74 | instructions: {
75 | textAlign: 'center',
76 | color: '#333333',
77 | marginBottom: 5,
78 | },
79 | });
80 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/devicemotion/RNDeviceMotionModule.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.devicemotion;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.ReactApplicationContext;
5 | import com.facebook.react.bridge.ReactMethod;
6 | import com.facebook.react.bridge.WritableMap;
7 | import com.facebook.react.uimanager.events.Event;
8 | import com.renrendai.motionevent.BaseEvent;
9 | import com.renrendai.motionevent.BaseSensorManager;
10 | import com.renrendai.motionevent.BaseSensorModule;
11 |
12 | public class RNDeviceMotionModule extends BaseSensorModule {
13 |
14 | public RNDeviceMotionModule(ReactApplicationContext reactContext) {
15 | super(reactContext);
16 | }
17 |
18 | @Override
19 | public String getName() {
20 | return "RNDeviceMotionModule";
21 | }
22 |
23 | @Override
24 | protected BaseSensorManager createSensorManager(ReactApplicationContext reactContext) {
25 | return new DeviceOrientationManager(reactContext);
26 | }
27 |
28 | @Override
29 | protected Event createEvent(int tag, String eventName, double x, double y, double z) {
30 | return new MotionEvent(tag, eventName, x, y, z);
31 | }
32 |
33 | @ReactMethod
34 | public void startDeviceMotionUpdates(final int tag, final String eventName) {
35 | bindSensorManager(tag, eventName);
36 | }
37 |
38 | @ReactMethod
39 | public void stopDeviceMotionUpdates() {
40 | unbindSensorManager();
41 | }
42 |
43 | private class MotionEvent extends BaseEvent {
44 |
45 |
46 | public MotionEvent(int viewTag, String eventName, double x, double y, double z) {
47 | super(viewTag, eventName, x, y, z);
48 | }
49 |
50 | @Override
51 | protected WritableMap createEventData(double x, double y, double z) {
52 | WritableMap attitude = Arguments.createMap();
53 | attitude.putDouble("yaw", x);
54 | attitude.putDouble("pitch", y);
55 | attitude.putDouble("roll", z);
56 | WritableMap event = Arguments.createMap();
57 | event.putMap("attitude", attitude);
58 | return event;
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/gyroscope/RNGyroscopeModule.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.gyroscope;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.ReactApplicationContext;
5 | import com.facebook.react.bridge.ReactMethod;
6 | import com.facebook.react.bridge.WritableMap;
7 | import com.facebook.react.uimanager.events.Event;
8 | import com.renrendai.motionevent.BaseEvent;
9 | import com.renrendai.motionevent.BaseSensorManager;
10 | import com.renrendai.motionevent.BaseSensorModule;
11 |
12 | import javax.annotation.Nonnull;
13 |
14 | public class RNGyroscopeModule extends BaseSensorModule {
15 |
16 | public RNGyroscopeModule(@Nonnull ReactApplicationContext reactContext) {
17 | super(reactContext);
18 | }
19 |
20 | @Nonnull
21 | @Override
22 | public String getName() {
23 | return "RNGyroscopeModule";
24 | }
25 |
26 | @Override
27 | protected BaseSensorManager createSensorManager(ReactApplicationContext reactContext) {
28 | return new GyroscopeManager(reactContext);
29 | }
30 |
31 | @Override
32 | protected Event createEvent(int tag, String eventName, double x, double y, double z) {
33 | return new MotionEvent(tag, eventName, x, y, z);
34 | }
35 |
36 | @ReactMethod
37 | public void startGyroscopeUpdates(final int tag, final String eventName) {
38 | bindSensorManager(tag, eventName);
39 | }
40 |
41 | @ReactMethod
42 | public void stopGyroscopeUpdates() {
43 | unbindSensorManager();
44 | }
45 |
46 | private class MotionEvent extends BaseEvent {
47 |
48 | public MotionEvent(int viewTag, String eventName, double x, double y, double z) {
49 | super(viewTag, eventName, x, y, z);
50 | }
51 |
52 | @Override
53 | protected WritableMap createEventData(double x, double y, double z) {
54 | WritableMap attitude = Arguments.createMap();
55 | attitude.putDouble("x", x);
56 | attitude.putDouble("y", y);
57 | attitude.putDouble("z", z);
58 | WritableMap event = Arguments.createMap();
59 | event.putMap("rotationRate", attitude);
60 | return event;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/magnetometer/RNMagnetometerModule.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.magnetometer;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.ReactApplicationContext;
5 | import com.facebook.react.bridge.ReactMethod;
6 | import com.facebook.react.bridge.WritableMap;
7 | import com.facebook.react.uimanager.events.Event;
8 | import com.renrendai.motionevent.BaseEvent;
9 | import com.renrendai.motionevent.BaseSensorManager;
10 | import com.renrendai.motionevent.BaseSensorModule;
11 |
12 | import javax.annotation.Nonnull;
13 |
14 | public class RNMagnetometerModule extends BaseSensorModule {
15 |
16 | public RNMagnetometerModule(@Nonnull ReactApplicationContext reactContext) {
17 | super(reactContext);
18 | }
19 |
20 | @Nonnull
21 | @Override
22 | public String getName() {
23 | return "RNMagnetometerModule";
24 | }
25 |
26 | @Override
27 | protected BaseSensorManager createSensorManager(ReactApplicationContext reactContext) {
28 | return new MagnetometerManager(reactContext);
29 | }
30 |
31 | @Override
32 | protected Event createEvent(int tag, String eventName, double x, double y, double z) {
33 | return new MotionEvent(tag, eventName, x, y, z);
34 | }
35 |
36 | @ReactMethod
37 | public void startMagnetometerUpdates(final int tag, final String eventName) {
38 | bindSensorManager(tag, eventName);
39 | }
40 |
41 | @ReactMethod
42 | public void stopMagnetometerUpdates() {
43 | unbindSensorManager();
44 | }
45 |
46 | private class MotionEvent extends BaseEvent {
47 |
48 | public MotionEvent(int viewTag, String eventName, double x, double y, double z) {
49 | super(viewTag, eventName, x, y, z);
50 | }
51 |
52 | @Override
53 | protected WritableMap createEventData(double x, double y, double z) {
54 | WritableMap attitude = Arguments.createMap();
55 | attitude.putDouble("x", x);
56 | attitude.putDouble("y", y);
57 | attitude.putDouble("z", z);
58 | WritableMap event = Arguments.createMap();
59 | event.putMap("magneticField", attitude);
60 | return event;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/android/src/main/java/com/renrendai/motionevent/accelerometer/RNAccelerometerModule.java:
--------------------------------------------------------------------------------
1 | package com.renrendai.motionevent.accelerometer;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.ReactApplicationContext;
5 | import com.facebook.react.bridge.ReactMethod;
6 | import com.facebook.react.bridge.WritableMap;
7 | import com.facebook.react.uimanager.events.Event;
8 | import com.renrendai.motionevent.BaseEvent;
9 | import com.renrendai.motionevent.BaseSensorManager;
10 | import com.renrendai.motionevent.BaseSensorModule;
11 |
12 | import javax.annotation.Nonnull;
13 |
14 | public class RNAccelerometerModule extends BaseSensorModule {
15 |
16 | public RNAccelerometerModule(@Nonnull ReactApplicationContext reactContext) {
17 | super(reactContext);
18 | }
19 |
20 | @Nonnull
21 | @Override
22 | public String getName() {
23 | return "RNAccelerometerModule";
24 | }
25 |
26 | @Override
27 | protected BaseSensorManager createSensorManager(ReactApplicationContext reactContext) {
28 | return new AccelerometerManager(reactContext);
29 | }
30 |
31 | @Override
32 | protected Event createEvent(int tag, String eventName, double x, double y, double z) {
33 | return new MotionEvent(tag, eventName, x, y, z);
34 | }
35 |
36 | @ReactMethod
37 | public void startAccelerometerUpdates(final int tag, final String eventName) {
38 | bindSensorManager(tag, eventName);
39 | }
40 |
41 | @ReactMethod
42 | public void stopAccelerometerUpdates() {
43 | unbindSensorManager();
44 | }
45 |
46 | private class MotionEvent extends BaseEvent {
47 |
48 | public MotionEvent(int viewTag, String eventName, double x, double y, double z) {
49 | super(viewTag, eventName, x, y, z);
50 | }
51 |
52 | @Override
53 | protected WritableMap createEventData(double x, double y, double z) {
54 | WritableMap attitude = Arguments.createMap();
55 | attitude.putDouble("x", x);
56 | attitude.putDouble("y", y);
57 | attitude.putDouble("z", z);
58 | WritableMap event = Arguments.createMap();
59 | event.putMap("acceleration", attitude);
60 | return event;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSampleTests/MotionEventManagerSampleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
16 |
17 | @interface MotionEventManagerSampleTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation MotionEventManagerSampleTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
44 | if (level >= RCTLogLevelError) {
45 | redboxError = message;
46 | }
47 | });
48 |
49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
52 |
53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
55 | return YES;
56 | }
57 | return NO;
58 | }];
59 | }
60 |
61 | RCTSetLogFunction(RCTDefaultLogFunction);
62 |
63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | ; Ignore metro
20 | .*/node_modules/metro/.*
21 |
22 | [include]
23 |
24 | [libs]
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
26 | node_modules/react-native/flow/
27 |
28 | [options]
29 | emoji=true
30 |
31 | esproposal.optional_chaining=enable
32 | esproposal.nullish_coalescing=enable
33 |
34 | module.system=haste
35 | module.system.haste.use_name_reducers=true
36 | # get basename
37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
38 | # strip .js or .js.flow suffix
39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
40 | # strip .ios suffix
41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
44 | module.system.haste.paths.blacklist=.*/__tests__/.*
45 | module.system.haste.paths.blacklist=.*/__mocks__/.*
46 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.*
47 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.*
48 |
49 | munge_underscores=true
50 |
51 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
52 |
53 | module.file_ext=.js
54 | module.file_ext=.jsx
55 | module.file_ext=.json
56 | module.file_ext=.native.js
57 |
58 | suppress_type=$FlowIssue
59 | suppress_type=$FlowFixMe
60 | suppress_type=$FlowFixMeProps
61 | suppress_type=$FlowFixMeState
62 |
63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
67 |
68 | [version]
69 | ^0.92.0
70 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/API.md:
--------------------------------------------------------------------------------
1 |
2 | ## DeviceMotionModule
3 |
4 | ```
5 | import { DeviceMotionModule } from 'react-native-motion-event-manager';
6 |
7 | class YourClass extends Component {
8 | componentDidMount() {
9 | // replace with your mapping here
10 | let eventMapping = {
11 | attitude: {
12 | pitch: this.state.pitch,
13 | roll: this.state.roll,
14 | yaw: this.state.yaw,
15 | },
16 | rotationRate: { // iOS only
17 | x: this.state.x,
18 | y: this.state.y,
19 | z: this.state.z,
20 | },
21 | gravity: { // iOS only
22 | x: this.state.x,
23 | y: this.state.y,
24 | z: this.state.z,
25 | },
26 | userAcceleration: { // iOS only
27 | x: this.state.x,
28 | y: this.state.y,
29 | z: this.state.z,
30 | },
31 | magneticField: { // iOS only
32 | field: {
33 | x: this.state.x,
34 | y: this.state.y,
35 | z: this.state.z,
36 | },
37 | accuracy: this.state.accuracy,
38 | }
39 | };
40 | DeviceMotionModule.startDeviceMotionUpdates(eventMapping);
41 | }
42 |
43 | componentWillUnmount() {
44 | DeviceMotionModule.stopDeviceMotionUpdates();
45 | }
46 | }
47 |
48 | ```
49 |
50 | ## AccelerometerModule
51 |
52 | ```
53 | import { AccelerometerModule } from 'react-native-motion-event-manager';
54 |
55 | class YourClass extends Component {
56 | componentDidMount() {
57 | // replace with your mapping here
58 | let eventMapping = {
59 | acceleration: {
60 | x: this.state.x,
61 | y: this.state.y,
62 | z: this.state.z,
63 | },
64 | };
65 | AccelerometerModule.startAccelerometerUpdates(eventMapping);
66 | }
67 |
68 | componentWillUnmount() {
69 | AccelerometerModule.stopAccelerometerUpdates();
70 | }
71 | }
72 | ```
73 |
74 | ## GyroscopeModule
75 |
76 | ```
77 | import { GyroscopeModule } from 'react-native-motion-event-manager';
78 |
79 | class YourClass extends Component {
80 | componentDidMount() {
81 | // replace with your mapping here
82 | let eventMapping = {
83 | rotationRate: {
84 | x: this.state.x,
85 | y: this.state.y,
86 | z: this.state.z,
87 | },
88 | };
89 | GyroscopeModule.startGyroscopeUpdates(eventMapping);
90 | }
91 |
92 | componentWillUnmount() {
93 | GyroscopeModule.stopGyroscopeUpdates();
94 | }
95 | }
96 | ```
97 |
98 | ## MagnetometerModule
99 |
100 | ```
101 | import { MagnetometerModule } from 'react-native-motion-event-manager';
102 |
103 | class YourClass extends Component {
104 | componentDidMount() {
105 | // replace with your mapping here
106 | let eventMapping = {
107 | magneticField: {
108 | x: this.state.x,
109 | y: this.state.y,
110 | z: this.state.z,
111 | },
112 | };
113 | MagnetometerModule.startMagnetometerUpdates(eventMapping);
114 | }
115 |
116 | componentWillUnmount() {
117 | MagnetometerModule.stopMagnetometerUpdates();
118 | }
119 | }
120 | ```
121 |
122 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [English README Here](./README_en.md)
2 |
3 | react-native-motion-event-manager将device motion导出到RN,它使用了Animated的API和native driver的特性来使UI的更新都在native的UI线程来完成,不用通过RN的bridge,避免了动画的延迟和卡顿。
4 |
5 | ## 安装
6 |
7 | 在package.json所在目录运行
8 | ```
9 | npm i react-native-motion-event-manager
10 | ```
11 |
12 | ### iOS
13 |
14 | #### Cocoapods安装
15 |
16 | 然后在iOS的工程目录的Podfile中添加如下代码:
17 |
18 | ```
19 | pod 'RNMotionEventManager', :path => '/your/path/to/react-native-motion-event-manager'
20 | ```
21 | 之后运行`pod install`
22 |
23 | #### 手动安装
24 |
25 | 1. 在XCode的project navigator中,右键 `Libraries`,之后点击 `Add Files to [your project's name]`
26 | 2. 依次进入目录 `node_modules` ➜ `react-native-motion-event-manager` ➜ `ios`,然后添加 `RNMotionEventManager.xcodeproj`
27 | 3. 在XCode中选择你的target的`Build Phases`,在`Link Binary With Libraries`中添加 `libRNMotionEventManager.a`。
28 | 4. 在真机上运行工程。
29 |
30 | ### Android
31 |
32 | #### 使用react-native link
33 |
34 | ```
35 | react-native link react-native-motion-event-manager
36 | ```
37 | #### 手动添加
38 | 1. 引入 react-native-motion-event-manager
39 |
40 | ```
41 | include ':react-native-motion-event-manager'
42 | project(':react-native-motion-event-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-motion-event-manager/android')
43 | ```
44 | 2. 添加依赖
45 |
46 | ```
47 | implementation project(':react-native-motion-event-manager')
48 | ```
49 | 3. 初始化 MotionEventPackage
50 |
51 | ```
52 | @Override
53 | protected List getPackages() {
54 | return Arrays.asList(
55 | new MainReactPackage(),
56 | new MotionEventPackage()
57 | );
58 | }
59 | ```
60 |
61 | ## 使用
62 |
63 |
64 |
65 | > Not everything you can do with Animated is currently supported in Native Animated. The main limitation is that you can only animate non-layout properties, things like `transform` and `opacity` will work but flexbox and position properties won't. Another one is with `Animated.event`, it will only work with direct events and not bubbling events. This means it does not work with `PanResponder` but does work with things like `ScrollView#onScroll`.
66 |
67 | 然后在RN中的具体页面,以DeviceMotionModule使用为例,使用代码如下:
68 | ```
69 | import { DeviceMotionModule } from 'react-native-motion-event-manager';
70 |
71 | class YourClass extends Component {
72 | componentDidMount() {
73 | // replace with your mapping here
74 | let eventMapping = {
75 | attitude: {
76 | roll: this.state.roll,
77 | }
78 | };
79 | DeviceMotionModule.startDeviceMotionUpdates(eventMapping);
80 | }
81 |
82 | componentWillUnmount() {
83 | DeviceMotionModule.stopDeviceMotionUpdates();
84 | }
85 | }
86 | ```
87 | 其中`this.state.roll`这个state是一个Animated.Value,之后客户端每次触发motion的更新,就会触发这个Animated.Value的更新。
88 | 这个Value可以用于构造另外一个Animated.Value或者直接赋予某个element的style。例如:
89 | ```
90 |
95 | Opacity will change while rolling.
96 |
97 | ```
98 |
99 | 更多API可以查看[这里](./API.md).
100 |
101 | ## 注意事项
102 |
103 | 在/node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js里的最后可以找到支持的属性列表:
104 |
105 | ```
106 | /**
107 | * Styles allowed by the native animated implementation.
108 | *
109 | * In general native animated implementation should support any numeric property that doesn't need
110 | * to be updated through the shadow view hierarchy (all non-layout properties).
111 | */
112 | const STYLES_WHITELIST = {
113 | opacity: true,
114 | transform: true,
115 | /* legacy android transform properties */
116 | scaleX: true,
117 | scaleY: true,
118 | translateX: true,
119 | translateY: true,
120 | };
121 |
122 | const TRANSFORM_WHITELIST = {
123 | translateX: true,
124 | translateY: true,
125 | scale: true,
126 | scaleX: true,
127 | scaleY: true,
128 | rotate: true,
129 | rotateX: true,
130 | rotateY: true,
131 | perspective: true,
132 | };
133 | ```
134 |
135 |
--------------------------------------------------------------------------------
/ios/RNGyroscopeModule.m:
--------------------------------------------------------------------------------
1 |
2 | #import "RNGyroscopeModule.h"
3 | #import
4 |
5 | #import
6 | #import
7 | #import
8 |
9 | @interface RCTGyroscopeEvent : NSObject
10 |
11 | - (instancetype)initWithEventName:(NSString *)eventName
12 | reactTag:(NSNumber *)reactTag
13 | data:(CMGyroData *)data
14 | coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
15 |
16 | @end
17 |
18 | @implementation RCTGyroscopeEvent
19 | {
20 | CMGyroData *_data;
21 | uint16_t _coalescingKey;
22 | }
23 |
24 | @synthesize viewTag = _viewTag;
25 | @synthesize eventName = _eventName;
26 |
27 | - (instancetype)initWithEventName:(NSString *)eventName
28 | reactTag:(NSNumber *)reactTag
29 | data:(CMGyroData *)data
30 | coalescingKey:(uint16_t)coalescingKey
31 | {
32 | RCTAssertParam(reactTag);
33 |
34 | if ((self = [super init])) {
35 | _eventName = [eventName copy];
36 | _viewTag = reactTag;
37 | _data = data;
38 | _coalescingKey = coalescingKey;
39 | }
40 | return self;
41 | }
42 |
43 | RCT_NOT_IMPLEMENTED(- (instancetype)init)
44 |
45 | - (uint16_t)coalescingKey
46 | {
47 | return _coalescingKey;
48 | }
49 |
50 | - (NSDictionary *)body
51 | {
52 | NSDictionary *body = @{
53 | @"rotationRate":@{
54 | @"x":@(_data.rotationRate.x),
55 | @"y":@(_data.rotationRate.y),
56 | @"z":@(_data.rotationRate.z),
57 | }
58 | };
59 |
60 | return body;
61 | }
62 |
63 | - (BOOL)canCoalesce
64 | {
65 | return YES;
66 | }
67 |
68 | - (RCTGyroscopeEvent *)coalesceWithEvent:(RCTGyroscopeEvent *)newEvent
69 | {
70 | return newEvent;
71 | }
72 |
73 | + (NSString *)moduleDotMethod
74 | {
75 | return @"RCTEventEmitter.receiveEvent";
76 | }
77 |
78 | - (NSArray *)arguments
79 | {
80 | return @[self.viewTag, RCTNormalizeInputEventName(self.eventName), [self body]];
81 | }
82 |
83 | @end
84 |
85 | static CMMotionManager *mManager;
86 | static BOOL isRunning;
87 |
88 | @interface RNGyroscopeModule ()
89 | {
90 | uint16_t _coalescingKey;
91 | NSString *_lastEmittedEventName;
92 | }
93 |
94 | @end
95 |
96 | @implementation RNGyroscopeModule
97 |
98 | @synthesize bridge = _bridge;
99 |
100 | RCT_EXPORT_MODULE();
101 |
102 | + (CMMotionManager *)sharedManager
103 | {
104 | if (!mManager) {
105 | mManager = [CMMotionManager new];
106 | }
107 | return mManager;
108 | }
109 |
110 | RCT_EXPORT_METHOD(startGyroscopeUpdates:(nonnull NSNumber *)viewTag eventName:(nonnull NSString *)eventName) {
111 | if (isRunning) {
112 | RCTLogError(@"Gyroscope has started already!");
113 | return;
114 | }
115 | if ([[self class] sharedManager].isGyroAvailable) {
116 | isRunning = YES;
117 | [[self class] sharedManager].gyroUpdateInterval = 1.0 / 60.0;
118 | [[[self class] sharedManager] startGyroUpdatesToQueue:[NSOperationQueue mainQueue] withHandler:^(CMGyroData * _Nullable gyroData, NSError * _Nullable error) {
119 | if (gyroData) {
120 | [self sendEventWithName:eventName viewTag:viewTag data:gyroData];
121 | }
122 | }];
123 | }
124 | }
125 |
126 | RCT_EXPORT_METHOD(stopGyroscopeUpdates) {
127 | [[[self class] sharedManager] stopGyroUpdates];
128 | isRunning = NO;
129 | }
130 |
131 | - (void)sendEventWithName:(NSString *)eventName
132 | viewTag:(NSNumber *)viewTag
133 | data:(CMGyroData *)data
134 | {
135 | if (![_lastEmittedEventName isEqualToString:eventName]) {
136 | _coalescingKey++;
137 | _lastEmittedEventName = [eventName copy];
138 | }
139 | RCTGyroscopeEvent *event = [[RCTGyroscopeEvent alloc] initWithEventName:eventName reactTag:viewTag data:data coalescingKey:_coalescingKey];
140 | [_bridge.eventDispatcher sendEvent:event];
141 | }
142 |
143 | @end
144 |
--------------------------------------------------------------------------------
/README_en.md:
--------------------------------------------------------------------------------
1 | "react-native-motion-event-manager" extract device motion to RN.
2 | It uses Animated API and native driver to update UI in native UI thread. With bypassing the RN bridge, it eliminates delay of animations.
3 |
4 | ## Installation
5 |
6 | ```
7 | npm i react-native-motion-event-manager
8 | ```
9 |
10 | ### iOS
11 |
12 | #### Cocoapods
13 |
14 | Add the following to your Podfile
15 | ```
16 | pod 'RNMotionEventManager', :path => '/your/path/to/react-native-motion-event-manager'
17 | ```
18 | and then run `pod install`
19 |
20 | #### Manual
21 |
22 | 1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
23 | 2. Go to `node_modules` ➜ `react-native-motion-event-manager` ➜ `ios`and add `RNMotionEventManager.xcodeproj`
24 | 3. In XCode, in the project navigator, select your project. Add `libRNMotionEventManager.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
25 | 4. Run your project on device.
26 |
27 | ### Android
28 |
29 | #### react-native link
30 |
31 | ```
32 | react-native link react-native-motion-event-manager
33 | ```
34 | #### Manual
35 | 1. include react-native-motion-event-manager
36 |
37 | ```
38 | include ':react-native-motion-event-manager'
39 | project(':react-native-motion-event-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-motion-event-manager/android')
40 | ```
41 | 2. add native dependencies
42 |
43 | ```
44 | implementation project(':react-native-motion-event-manager')
45 | ```
46 | 3. init MotionEventPackage
47 |
48 | ```
49 | @Override
50 | protected List getPackages() {
51 | return Arrays.asList(
52 | new MainReactPackage(),
53 | new MotionEventPackage()
54 | );
55 | }
56 | ```
57 |
58 | ## Usage
59 |
60 | Below is a sample using DeviceMotionModule:
61 |
62 | ```
63 | import { DeviceMotionModule } from 'react-native-motion-event-manager';
64 |
65 | class YourClass extends Component {
66 | componentDidMount() {
67 | // replace with your mapping here
68 | let eventMapping = {
69 | attitude: {
70 | roll: this.state.roll,
71 | }
72 | };
73 | DeviceMotionModule.startDeviceMotionUpdates(eventMapping);
74 | }
75 |
76 | componentWillUnmount() {
77 | DeviceMotionModule.stopDeviceMotionUpdates();
78 | }
79 | }
80 | ```
81 | Here `this.state.roll` is an Animated.Value, and every update of native motion event will trigger the update of this Animated.Value. This Value can be used to construct another Animated.Value or be set as the style of some element. For example:
82 |
83 | ```
84 |
89 | Opacity will change while rolling.
90 |
91 | ```
92 |
93 | More API can be found [here](./API.md).
94 |
95 | ## Caveats
96 |
97 | > Not everything you can do with Animated is currently supported in Native Animated. The main limitation is that you can only animate non-layout properties, things like `transform` and `opacity` will work but flexbox and position properties won't. Another one is with `Animated.event`, it will only work with direct events and not bubbling events. This means it does not work with `PanResponder` but does work with things like `ScrollView#onScroll`.
98 |
99 | We can find complete supported property list in "/node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js":
100 |
101 | ```
102 | /**
103 | * Styles allowed by the native animated implementation.
104 | *
105 | * In general native animated implementation should support any numeric property that doesn't need
106 | * to be updated through the shadow view hierarchy (all non-layout properties).
107 | */
108 | const STYLES_WHITELIST = {
109 | opacity: true,
110 | transform: true,
111 | /* legacy android transform properties */
112 | scaleX: true,
113 | scaleY: true,
114 | translateX: true,
115 | translateY: true,
116 | };
117 |
118 | const TRANSFORM_WHITELIST = {
119 | translateX: true,
120 | translateY: true,
121 | scale: true,
122 | scaleX: true,
123 | scaleY: true,
124 | rotate: true,
125 | rotateX: true,
126 | rotateY: true,
127 | perspective: true,
128 | };
129 | ```
130 |
131 |
--------------------------------------------------------------------------------
/ios/RNMagnetometerModule.m:
--------------------------------------------------------------------------------
1 |
2 | #import "RNMagnetometerModule.h"
3 | #import
4 |
5 | #import
6 | #import
7 | #import
8 |
9 | @interface RCTMagnetometerEvent : NSObject
10 |
11 | - (instancetype)initWithEventName:(NSString *)eventName
12 | reactTag:(NSNumber *)reactTag
13 | data:(CMMagnetometerData *)data
14 | coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
15 |
16 | @end
17 |
18 | @implementation RCTMagnetometerEvent
19 | {
20 | CMMagnetometerData *_data;
21 | uint16_t _coalescingKey;
22 | }
23 |
24 | @synthesize viewTag = _viewTag;
25 | @synthesize eventName = _eventName;
26 |
27 | - (instancetype)initWithEventName:(NSString *)eventName
28 | reactTag:(NSNumber *)reactTag
29 | data:(CMMagnetometerData *)data
30 | coalescingKey:(uint16_t)coalescingKey
31 | {
32 | RCTAssertParam(reactTag);
33 |
34 | if ((self = [super init])) {
35 | _eventName = [eventName copy];
36 | _viewTag = reactTag;
37 | _data = data;
38 | _coalescingKey = coalescingKey;
39 | }
40 | return self;
41 | }
42 |
43 | RCT_NOT_IMPLEMENTED(- (instancetype)init)
44 |
45 | - (uint16_t)coalescingKey
46 | {
47 | return _coalescingKey;
48 | }
49 |
50 | - (NSDictionary *)body
51 | {
52 | NSDictionary *body = @{
53 | @"magneticField":@{
54 | @"x":@(_data.magneticField.x),
55 | @"y":@(_data.magneticField.y),
56 | @"z":@(_data.magneticField.z),
57 | }
58 | };
59 |
60 | return body;
61 | }
62 |
63 | - (BOOL)canCoalesce
64 | {
65 | return YES;
66 | }
67 |
68 | - (RCTMagnetometerEvent *)coalesceWithEvent:(RCTMagnetometerEvent *)newEvent
69 | {
70 | return newEvent;
71 | }
72 |
73 | + (NSString *)moduleDotMethod
74 | {
75 | return @"RCTEventEmitter.receiveEvent";
76 | }
77 |
78 | - (NSArray *)arguments
79 | {
80 | return @[self.viewTag, RCTNormalizeInputEventName(self.eventName), [self body]];
81 | }
82 |
83 | @end
84 |
85 | static CMMotionManager *mManager;
86 | static BOOL isRunning;
87 |
88 | @interface RNMagnetometerModule ()
89 | {
90 | uint16_t _coalescingKey;
91 | NSString *_lastEmittedEventName;
92 | }
93 |
94 | @end
95 |
96 | @implementation RNMagnetometerModule
97 |
98 | @synthesize bridge = _bridge;
99 |
100 | RCT_EXPORT_MODULE();
101 |
102 | + (CMMotionManager *)sharedManager
103 | {
104 | if (!mManager) {
105 | mManager = [CMMotionManager new];
106 | }
107 | return mManager;
108 | }
109 |
110 | RCT_EXPORT_METHOD(startMagnetometerUpdates:(nonnull NSNumber *)viewTag eventName:(nonnull NSString *)eventName) {
111 | if (isRunning) {
112 | RCTLogError(@"Magnetometer has started already!");
113 | return;
114 | }
115 | if ([[self class] sharedManager].isMagnetometerAvailable) {
116 | isRunning = YES;
117 | [[self class] sharedManager].magnetometerUpdateInterval = 1.0 / 60.0;
118 | [[[self class] sharedManager] startMagnetometerUpdatesToQueue:[NSOperationQueue mainQueue] withHandler:^(CMMagnetometerData * _Nullable magnetometerData, NSError * _Nullable error) {
119 | if (magnetometerData) {
120 | [self sendEventWithName:eventName viewTag:viewTag data:magnetometerData];
121 | }
122 | }];
123 | }
124 | }
125 |
126 | RCT_EXPORT_METHOD(stopMagnetometerUpdates) {
127 | [[[self class] sharedManager] stopMagnetometerUpdates];
128 | isRunning = NO;
129 | }
130 |
131 | - (void)sendEventWithName:(NSString *)eventName
132 | viewTag:(NSNumber *)viewTag
133 | data:(CMMagnetometerData *)data
134 | {
135 | if (![_lastEmittedEventName isEqualToString:eventName]) {
136 | _coalescingKey++;
137 | _lastEmittedEventName = [eventName copy];
138 | }
139 | RCTMagnetometerEvent *event = [[RCTMagnetometerEvent alloc] initWithEventName:eventName reactTag:viewTag data:data coalescingKey:_coalescingKey];
140 | [_bridge.eventDispatcher sendEvent:event];
141 | }
142 |
143 | @end
144 |
--------------------------------------------------------------------------------
/ios/RNAccelerometerModule.m:
--------------------------------------------------------------------------------
1 |
2 | #import "RNAccelerometerModule.h"
3 | #import
4 |
5 | #import
6 | #import
7 | #import
8 |
9 | @interface RCTAccelerometerEvent : NSObject
10 |
11 | - (instancetype)initWithEventName:(NSString *)eventName
12 | reactTag:(NSNumber *)reactTag
13 | data:(CMAccelerometerData *)data
14 | coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
15 |
16 | @end
17 |
18 | @implementation RCTAccelerometerEvent
19 | {
20 | CMAccelerometerData *_data;
21 | uint16_t _coalescingKey;
22 | }
23 |
24 | @synthesize viewTag = _viewTag;
25 | @synthesize eventName = _eventName;
26 |
27 | - (instancetype)initWithEventName:(NSString *)eventName
28 | reactTag:(NSNumber *)reactTag
29 | data:(CMAccelerometerData *)data
30 | coalescingKey:(uint16_t)coalescingKey
31 | {
32 | RCTAssertParam(reactTag);
33 |
34 | if ((self = [super init])) {
35 | _eventName = [eventName copy];
36 | _viewTag = reactTag;
37 | _data = data;
38 | _coalescingKey = coalescingKey;
39 | }
40 | return self;
41 | }
42 |
43 | RCT_NOT_IMPLEMENTED(- (instancetype)init)
44 |
45 | - (uint16_t)coalescingKey
46 | {
47 | return _coalescingKey;
48 | }
49 |
50 | - (NSDictionary *)body
51 | {
52 | NSDictionary *body = @{
53 | @"acceleration":@{
54 | @"x":@(_data.acceleration.x),
55 | @"y":@(_data.acceleration.y),
56 | @"z":@(_data.acceleration.z),
57 | }
58 | };
59 |
60 | return body;
61 | }
62 |
63 | - (BOOL)canCoalesce
64 | {
65 | return YES;
66 | }
67 |
68 | - (RCTAccelerometerEvent *)coalesceWithEvent:(RCTAccelerometerEvent *)newEvent
69 | {
70 | return newEvent;
71 | }
72 |
73 | + (NSString *)moduleDotMethod
74 | {
75 | return @"RCTEventEmitter.receiveEvent";
76 | }
77 |
78 | - (NSArray *)arguments
79 | {
80 | return @[self.viewTag, RCTNormalizeInputEventName(self.eventName), [self body]];
81 | }
82 |
83 | @end
84 |
85 | static CMMotionManager *mManager;
86 | static BOOL isRunning;
87 |
88 | @interface RNAccelerometerModule ()
89 | {
90 | uint16_t _coalescingKey;
91 | NSString *_lastEmittedEventName;
92 | }
93 |
94 | @end
95 |
96 | @implementation RNAccelerometerModule
97 |
98 | @synthesize bridge = _bridge;
99 |
100 | RCT_EXPORT_MODULE();
101 |
102 | + (CMMotionManager *)sharedManager
103 | {
104 | if (!mManager) {
105 | mManager = [CMMotionManager new];
106 | }
107 | return mManager;
108 | }
109 |
110 | RCT_EXPORT_METHOD(startAccelerometerUpdates:(nonnull NSNumber *)viewTag eventName:(nonnull NSString *)eventName) {
111 | if (isRunning) {
112 | RCTLogError(@"Accelerometer has started already!");
113 | return;
114 | }
115 | if ([[self class] sharedManager].isAccelerometerAvailable) {
116 | isRunning = YES;
117 | [[self class] sharedManager].accelerometerUpdateInterval = 1.0 / 60.0;
118 | [[[self class] sharedManager] startAccelerometerUpdatesToQueue:[NSOperationQueue mainQueue] withHandler:^(CMAccelerometerData * _Nullable accelerometerData, NSError * _Nullable error) {
119 | if (accelerometerData) {
120 | [self sendEventWithName:eventName viewTag:viewTag data:accelerometerData];
121 | }
122 | }];
123 | }
124 | }
125 |
126 | RCT_EXPORT_METHOD(stopAccelerometerUpdates) {
127 | [[[self class] sharedManager] stopAccelerometerUpdates];
128 | isRunning = NO;
129 | }
130 |
131 | - (void)sendEventWithName:(NSString *)eventName
132 | viewTag:(NSNumber *)viewTag
133 | data:(CMAccelerometerData *)data
134 | {
135 | if (![_lastEmittedEventName isEqualToString:eventName]) {
136 | _coalescingKey++;
137 | _lastEmittedEventName = [eventName copy];
138 | }
139 | RCTAccelerometerEvent *event = [[RCTAccelerometerEvent alloc] initWithEventName:eventName reactTag:viewTag data:data coalescingKey:_coalescingKey];
140 | [_bridge.eventDispatcher sendEvent:event];
141 | }
142 |
143 | @end
144 |
--------------------------------------------------------------------------------
/ios/RNDeviceMotionModule.m:
--------------------------------------------------------------------------------
1 |
2 | #import "RNDeviceMotionModule.h"
3 | #import
4 |
5 | #import
6 | #import
7 | #import
8 |
9 | @interface RCTMotionEvent : NSObject
10 |
11 | - (instancetype)initWithEventName:(NSString *)eventName
12 | reactTag:(NSNumber *)reactTag
13 | data:(CMDeviceMotion *)data
14 | coalescingKey:(uint16_t)coalescingKey NS_DESIGNATED_INITIALIZER;
15 |
16 | @end
17 |
18 | @implementation RCTMotionEvent
19 | {
20 | CMDeviceMotion *_motion;
21 | uint16_t _coalescingKey;
22 | }
23 |
24 | @synthesize viewTag = _viewTag;
25 | @synthesize eventName = _eventName;
26 |
27 | - (instancetype)initWithEventName:(NSString *)eventName
28 | reactTag:(NSNumber *)reactTag
29 | data:(CMDeviceMotion *)data
30 | coalescingKey:(uint16_t)coalescingKey
31 | {
32 | RCTAssertParam(reactTag);
33 |
34 | if ((self = [super init])) {
35 | _eventName = [eventName copy];
36 | _viewTag = reactTag;
37 | _motion = data;
38 | _coalescingKey = coalescingKey;
39 | }
40 | return self;
41 | }
42 |
43 | RCT_NOT_IMPLEMENTED(- (instancetype)init)
44 |
45 | - (uint16_t)coalescingKey
46 | {
47 | return _coalescingKey;
48 | }
49 |
50 | - (NSDictionary *)body
51 | {
52 | NSDictionary *body = @{
53 | @"attitude":@{
54 | @"pitch":@(_motion.attitude.pitch),
55 | @"roll":@(_motion.attitude.roll),
56 | @"yaw":@(_motion.attitude.yaw),
57 | },
58 | @"rotationRate":@{
59 | @"x":@(_motion.rotationRate.x),
60 | @"y":@(_motion.rotationRate.y),
61 | @"z":@(_motion.rotationRate.z)
62 | },
63 | @"gravity":@{
64 | @"x":@(_motion.gravity.x),
65 | @"y":@(_motion.gravity.y),
66 | @"z":@(_motion.gravity.z)
67 | },
68 | @"userAcceleration":@{
69 | @"x":@(_motion.userAcceleration.x),
70 | @"y":@(_motion.userAcceleration.y),
71 | @"z":@(_motion.userAcceleration.z)
72 | },
73 | @"magneticField":@{
74 | @"field":@{
75 | @"x":@(_motion.magneticField.field.x),
76 | @"y":@(_motion.magneticField.field.y),
77 | @"z":@(_motion.magneticField.field.z)
78 | },
79 | @"accuracy":@(_motion.magneticField.accuracy)
80 | }
81 | };
82 |
83 | return body;
84 | }
85 |
86 | - (BOOL)canCoalesce
87 | {
88 | return YES;
89 | }
90 |
91 | - (RCTMotionEvent *)coalesceWithEvent:(RCTMotionEvent *)newEvent
92 | {
93 | return newEvent;
94 | }
95 |
96 | + (NSString *)moduleDotMethod
97 | {
98 | return @"RCTEventEmitter.receiveEvent";
99 | }
100 |
101 | - (NSArray *)arguments
102 | {
103 | return @[self.viewTag, RCTNormalizeInputEventName(self.eventName), [self body]];
104 | }
105 |
106 | @end
107 |
108 | static CMMotionManager *mManager;
109 | static BOOL isRunning;
110 |
111 | @interface RNDeviceMotionModule ()
112 | {
113 | uint16_t _coalescingKey;
114 | NSString *_lastEmittedEventName;
115 | }
116 |
117 | @end
118 |
119 | @implementation RNDeviceMotionModule
120 |
121 | @synthesize bridge = _bridge;
122 |
123 | RCT_EXPORT_MODULE();
124 |
125 | + (CMMotionManager *)sharedManager
126 | {
127 | if (!mManager) {
128 | mManager = [CMMotionManager new];
129 | }
130 | return mManager;
131 | }
132 |
133 | RCT_EXPORT_METHOD(startDeviceMotionUpdates:(nonnull NSNumber *)viewTag eventName:(nonnull NSString *)eventName) {
134 | if (isRunning) {
135 | RCTLogError(@"DeviceMotion has started already!");
136 | return;
137 | }
138 | if ([RNDeviceMotionModule sharedManager].isDeviceMotionAvailable) {
139 | isRunning = YES;
140 | [RNDeviceMotionModule sharedManager].deviceMotionUpdateInterval = 1.0 / 60.0;
141 | [[RNDeviceMotionModule sharedManager] startDeviceMotionUpdatesToQueue:[NSOperationQueue mainQueue] withHandler:^(CMDeviceMotion * _Nullable motion, NSError * _Nullable error) {
142 | if (motion) {
143 | [self sendEventWithName:eventName viewTag:viewTag data:motion];
144 | }
145 | }];
146 | }
147 | }
148 |
149 | RCT_EXPORT_METHOD(stopDeviceMotionUpdates) {
150 | [[RNDeviceMotionModule sharedManager] stopDeviceMotionUpdates];
151 | isRunning = NO;
152 | }
153 |
154 | - (void)sendEventWithName:(NSString *)eventName
155 | viewTag:(NSNumber *)viewTag
156 | data:(CMDeviceMotion *)data
157 | {
158 | if (![_lastEmittedEventName isEqualToString:eventName]) {
159 | _coalescingKey++;
160 | _lastEmittedEventName = [eventName copy];
161 | }
162 | RCTMotionEvent *event = [[RCTMotionEvent alloc] initWithEventName:eventName reactTag:viewTag data:data coalescingKey:_coalescingKey];
163 | [_bridge.eventDispatcher sendEvent:event];
164 | }
165 |
166 | @end
167 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample.xcodeproj/xcshareddata/xcschemes/MotionEventManagerSample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample.xcodeproj/xcshareddata/xcschemes/MotionEventManagerSample-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion rootProject.ext.compileSdkVersion
98 |
99 | compileOptions {
100 | sourceCompatibility JavaVersion.VERSION_1_8
101 | targetCompatibility JavaVersion.VERSION_1_8
102 | }
103 |
104 | defaultConfig {
105 | applicationId "com.motioneventmanagersample"
106 | minSdkVersion rootProject.ext.minSdkVersion
107 | targetSdkVersion rootProject.ext.targetSdkVersion
108 | versionCode 1
109 | versionName "1.0"
110 | }
111 | splits {
112 | abi {
113 | reset()
114 | enable enableSeparateBuildPerCPUArchitecture
115 | universalApk false // If true, also generate a universal APK
116 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
117 | }
118 | }
119 | buildTypes {
120 | release {
121 | minifyEnabled enableProguardInReleaseBuilds
122 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
123 | }
124 | }
125 | // applicationVariants are e.g. debug, release
126 | applicationVariants.all { variant ->
127 | variant.outputs.each { output ->
128 | // For each separate APK per architecture, set a unique version code as described here:
129 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
130 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
131 | def abi = output.getFilter(OutputFile.ABI)
132 | if (abi != null) { // null for the universal-debug, universal-release variants
133 | output.versionCodeOverride =
134 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
135 | }
136 | }
137 | }
138 | }
139 |
140 | dependencies {
141 | implementation project(':react-native-motion-event-manager')
142 | implementation fileTree(dir: "libs", include: ["*.jar"])
143 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
144 | implementation "com.facebook.react:react-native:+" // From node_modules
145 | }
146 |
147 | // Run this once to be able to run the application with BUCK
148 | // puts all compile dependencies into folder libs for BUCK to use
149 | task copyDownloadableDepsToLibs(type: Copy) {
150 | from configurations.compile
151 | into 'libs'
152 | }
153 |
--------------------------------------------------------------------------------
/ios/RNMotionEventManager.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 3F0C638B229FDC1700D8D8C8 /* RNMagnetometerModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 3F0C6384229FDC1700D8D8C8 /* RNMagnetometerModule.m */; };
11 | 3F0C638C229FDC1700D8D8C8 /* RNGyroscopeModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 3F0C6387229FDC1700D8D8C8 /* RNGyroscopeModule.m */; };
12 | 3F0C638D229FDC1700D8D8C8 /* RNDeviceMotionModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 3F0C6389229FDC1700D8D8C8 /* RNDeviceMotionModule.m */; };
13 | 3F0C638E229FDC1700D8D8C8 /* RNAccelerometerModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 3F0C638A229FDC1700D8D8C8 /* RNAccelerometerModule.m */; };
14 | /* End PBXBuildFile section */
15 |
16 | /* Begin PBXCopyFilesBuildPhase section */
17 | 3F0C6375229FD6A700D8D8C8 /* CopyFiles */ = {
18 | isa = PBXCopyFilesBuildPhase;
19 | buildActionMask = 2147483647;
20 | dstPath = "include/$(PRODUCT_NAME)";
21 | dstSubfolderSpec = 16;
22 | files = (
23 | );
24 | runOnlyForDeploymentPostprocessing = 0;
25 | };
26 | /* End PBXCopyFilesBuildPhase section */
27 |
28 | /* Begin PBXFileReference section */
29 | 3F0C6377229FD6A700D8D8C8 /* libRNMotionEventManager.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNMotionEventManager.a; sourceTree = BUILT_PRODUCTS_DIR; };
30 | 3F0C6383229FDC1700D8D8C8 /* RNDeviceMotionModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNDeviceMotionModule.h; sourceTree = SOURCE_ROOT; };
31 | 3F0C6384229FDC1700D8D8C8 /* RNMagnetometerModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNMagnetometerModule.m; sourceTree = SOURCE_ROOT; };
32 | 3F0C6385229FDC1700D8D8C8 /* RNAccelerometerModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNAccelerometerModule.h; sourceTree = SOURCE_ROOT; };
33 | 3F0C6386229FDC1700D8D8C8 /* RNMagnetometerModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNMagnetometerModule.h; sourceTree = SOURCE_ROOT; };
34 | 3F0C6387229FDC1700D8D8C8 /* RNGyroscopeModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNGyroscopeModule.m; sourceTree = SOURCE_ROOT; };
35 | 3F0C6388229FDC1700D8D8C8 /* RNGyroscopeModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNGyroscopeModule.h; sourceTree = SOURCE_ROOT; };
36 | 3F0C6389229FDC1700D8D8C8 /* RNDeviceMotionModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNDeviceMotionModule.m; sourceTree = SOURCE_ROOT; };
37 | 3F0C638A229FDC1700D8D8C8 /* RNAccelerometerModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNAccelerometerModule.m; sourceTree = SOURCE_ROOT; };
38 | /* End PBXFileReference section */
39 |
40 | /* Begin PBXFrameworksBuildPhase section */
41 | 3F0C6374229FD6A700D8D8C8 /* Frameworks */ = {
42 | isa = PBXFrameworksBuildPhase;
43 | buildActionMask = 2147483647;
44 | files = (
45 | );
46 | runOnlyForDeploymentPostprocessing = 0;
47 | };
48 | /* End PBXFrameworksBuildPhase section */
49 |
50 | /* Begin PBXGroup section */
51 | 3F0C636E229FD6A700D8D8C8 = {
52 | isa = PBXGroup;
53 | children = (
54 | 3F0C6379229FD6A700D8D8C8 /* RNMotionEventManager */,
55 | 3F0C6378229FD6A700D8D8C8 /* Products */,
56 | );
57 | sourceTree = "";
58 | };
59 | 3F0C6378229FD6A700D8D8C8 /* Products */ = {
60 | isa = PBXGroup;
61 | children = (
62 | 3F0C6377229FD6A700D8D8C8 /* libRNMotionEventManager.a */,
63 | );
64 | name = Products;
65 | sourceTree = "";
66 | };
67 | 3F0C6379229FD6A700D8D8C8 /* RNMotionEventManager */ = {
68 | isa = PBXGroup;
69 | children = (
70 | 3F0C6385229FDC1700D8D8C8 /* RNAccelerometerModule.h */,
71 | 3F0C638A229FDC1700D8D8C8 /* RNAccelerometerModule.m */,
72 | 3F0C6383229FDC1700D8D8C8 /* RNDeviceMotionModule.h */,
73 | 3F0C6389229FDC1700D8D8C8 /* RNDeviceMotionModule.m */,
74 | 3F0C6388229FDC1700D8D8C8 /* RNGyroscopeModule.h */,
75 | 3F0C6387229FDC1700D8D8C8 /* RNGyroscopeModule.m */,
76 | 3F0C6386229FDC1700D8D8C8 /* RNMagnetometerModule.h */,
77 | 3F0C6384229FDC1700D8D8C8 /* RNMagnetometerModule.m */,
78 | );
79 | path = RNMotionEventManager;
80 | sourceTree = "";
81 | };
82 | /* End PBXGroup section */
83 |
84 | /* Begin PBXNativeTarget section */
85 | 3F0C6376229FD6A700D8D8C8 /* RNMotionEventManager */ = {
86 | isa = PBXNativeTarget;
87 | buildConfigurationList = 3F0C6380229FD6A700D8D8C8 /* Build configuration list for PBXNativeTarget "RNMotionEventManager" */;
88 | buildPhases = (
89 | 3F0C6373229FD6A700D8D8C8 /* Sources */,
90 | 3F0C6374229FD6A700D8D8C8 /* Frameworks */,
91 | 3F0C6375229FD6A700D8D8C8 /* CopyFiles */,
92 | );
93 | buildRules = (
94 | );
95 | dependencies = (
96 | );
97 | name = RNMotionEventManager;
98 | productName = RNMotionEventManager;
99 | productReference = 3F0C6377229FD6A700D8D8C8 /* libRNMotionEventManager.a */;
100 | productType = "com.apple.product-type.library.static";
101 | };
102 | /* End PBXNativeTarget section */
103 |
104 | /* Begin PBXProject section */
105 | 3F0C636F229FD6A700D8D8C8 /* Project object */ = {
106 | isa = PBXProject;
107 | attributes = {
108 | LastUpgradeCheck = 1020;
109 | ORGANIZATIONNAME = RRD;
110 | TargetAttributes = {
111 | 3F0C6376229FD6A700D8D8C8 = {
112 | CreatedOnToolsVersion = 10.2;
113 | };
114 | };
115 | };
116 | buildConfigurationList = 3F0C6372229FD6A700D8D8C8 /* Build configuration list for PBXProject "RNMotionEventManager" */;
117 | compatibilityVersion = "Xcode 9.3";
118 | developmentRegion = en;
119 | hasScannedForEncodings = 0;
120 | knownRegions = (
121 | en,
122 | );
123 | mainGroup = 3F0C636E229FD6A700D8D8C8;
124 | productRefGroup = 3F0C6378229FD6A700D8D8C8 /* Products */;
125 | projectDirPath = "";
126 | projectRoot = "";
127 | targets = (
128 | 3F0C6376229FD6A700D8D8C8 /* RNMotionEventManager */,
129 | );
130 | };
131 | /* End PBXProject section */
132 |
133 | /* Begin PBXSourcesBuildPhase section */
134 | 3F0C6373229FD6A700D8D8C8 /* Sources */ = {
135 | isa = PBXSourcesBuildPhase;
136 | buildActionMask = 2147483647;
137 | files = (
138 | 3F0C638D229FDC1700D8D8C8 /* RNDeviceMotionModule.m in Sources */,
139 | 3F0C638B229FDC1700D8D8C8 /* RNMagnetometerModule.m in Sources */,
140 | 3F0C638C229FDC1700D8D8C8 /* RNGyroscopeModule.m in Sources */,
141 | 3F0C638E229FDC1700D8D8C8 /* RNAccelerometerModule.m in Sources */,
142 | );
143 | runOnlyForDeploymentPostprocessing = 0;
144 | };
145 | /* End PBXSourcesBuildPhase section */
146 |
147 | /* Begin XCBuildConfiguration section */
148 | 3F0C637E229FD6A700D8D8C8 /* Debug */ = {
149 | isa = XCBuildConfiguration;
150 | buildSettings = {
151 | ALWAYS_SEARCH_USER_PATHS = NO;
152 | CLANG_ANALYZER_NONNULL = YES;
153 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
154 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
155 | CLANG_CXX_LIBRARY = "libc++";
156 | CLANG_ENABLE_MODULES = YES;
157 | CLANG_ENABLE_OBJC_ARC = YES;
158 | CLANG_ENABLE_OBJC_WEAK = YES;
159 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
160 | CLANG_WARN_BOOL_CONVERSION = YES;
161 | CLANG_WARN_COMMA = YES;
162 | CLANG_WARN_CONSTANT_CONVERSION = YES;
163 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
164 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
165 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
166 | CLANG_WARN_EMPTY_BODY = YES;
167 | CLANG_WARN_ENUM_CONVERSION = YES;
168 | CLANG_WARN_INFINITE_RECURSION = YES;
169 | CLANG_WARN_INT_CONVERSION = YES;
170 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
171 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
172 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
173 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
174 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
175 | CLANG_WARN_STRICT_PROTOTYPES = YES;
176 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
177 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
178 | CLANG_WARN_UNREACHABLE_CODE = YES;
179 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
180 | CODE_SIGN_IDENTITY = "iPhone Developer";
181 | COPY_PHASE_STRIP = NO;
182 | DEBUG_INFORMATION_FORMAT = dwarf;
183 | ENABLE_STRICT_OBJC_MSGSEND = YES;
184 | ENABLE_TESTABILITY = YES;
185 | GCC_C_LANGUAGE_STANDARD = gnu11;
186 | GCC_DYNAMIC_NO_PIC = NO;
187 | GCC_NO_COMMON_BLOCKS = YES;
188 | GCC_OPTIMIZATION_LEVEL = 0;
189 | GCC_PREPROCESSOR_DEFINITIONS = (
190 | "DEBUG=1",
191 | "$(inherited)",
192 | );
193 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
194 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
195 | GCC_WARN_UNDECLARED_SELECTOR = YES;
196 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
197 | GCC_WARN_UNUSED_FUNCTION = YES;
198 | GCC_WARN_UNUSED_VARIABLE = YES;
199 | IPHONEOS_DEPLOYMENT_TARGET = 12.2;
200 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
201 | MTL_FAST_MATH = YES;
202 | ONLY_ACTIVE_ARCH = YES;
203 | SDKROOT = iphoneos;
204 | };
205 | name = Debug;
206 | };
207 | 3F0C637F229FD6A700D8D8C8 /* Release */ = {
208 | isa = XCBuildConfiguration;
209 | buildSettings = {
210 | ALWAYS_SEARCH_USER_PATHS = NO;
211 | CLANG_ANALYZER_NONNULL = YES;
212 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
213 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
214 | CLANG_CXX_LIBRARY = "libc++";
215 | CLANG_ENABLE_MODULES = YES;
216 | CLANG_ENABLE_OBJC_ARC = YES;
217 | CLANG_ENABLE_OBJC_WEAK = YES;
218 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
219 | CLANG_WARN_BOOL_CONVERSION = YES;
220 | CLANG_WARN_COMMA = YES;
221 | CLANG_WARN_CONSTANT_CONVERSION = YES;
222 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
223 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
224 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
225 | CLANG_WARN_EMPTY_BODY = YES;
226 | CLANG_WARN_ENUM_CONVERSION = YES;
227 | CLANG_WARN_INFINITE_RECURSION = YES;
228 | CLANG_WARN_INT_CONVERSION = YES;
229 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
230 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
231 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
232 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
233 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
234 | CLANG_WARN_STRICT_PROTOTYPES = YES;
235 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
236 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
237 | CLANG_WARN_UNREACHABLE_CODE = YES;
238 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
239 | CODE_SIGN_IDENTITY = "iPhone Developer";
240 | COPY_PHASE_STRIP = NO;
241 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
242 | ENABLE_NS_ASSERTIONS = NO;
243 | ENABLE_STRICT_OBJC_MSGSEND = YES;
244 | GCC_C_LANGUAGE_STANDARD = gnu11;
245 | GCC_NO_COMMON_BLOCKS = YES;
246 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
247 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
248 | GCC_WARN_UNDECLARED_SELECTOR = YES;
249 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
250 | GCC_WARN_UNUSED_FUNCTION = YES;
251 | GCC_WARN_UNUSED_VARIABLE = YES;
252 | IPHONEOS_DEPLOYMENT_TARGET = 12.2;
253 | MTL_ENABLE_DEBUG_INFO = NO;
254 | MTL_FAST_MATH = YES;
255 | SDKROOT = iphoneos;
256 | VALIDATE_PRODUCT = YES;
257 | };
258 | name = Release;
259 | };
260 | 3F0C6381229FD6A700D8D8C8 /* Debug */ = {
261 | isa = XCBuildConfiguration;
262 | buildSettings = {
263 | CODE_SIGN_STYLE = Automatic;
264 | DEVELOPMENT_TEAM = 8SA7A296UH;
265 | OTHER_LDFLAGS = "-ObjC";
266 | PRODUCT_NAME = "$(TARGET_NAME)";
267 | SKIP_INSTALL = YES;
268 | TARGETED_DEVICE_FAMILY = "1,2";
269 | };
270 | name = Debug;
271 | };
272 | 3F0C6382229FD6A700D8D8C8 /* Release */ = {
273 | isa = XCBuildConfiguration;
274 | buildSettings = {
275 | CODE_SIGN_STYLE = Automatic;
276 | DEVELOPMENT_TEAM = 8SA7A296UH;
277 | OTHER_LDFLAGS = "-ObjC";
278 | PRODUCT_NAME = "$(TARGET_NAME)";
279 | SKIP_INSTALL = YES;
280 | TARGETED_DEVICE_FAMILY = "1,2";
281 | };
282 | name = Release;
283 | };
284 | /* End XCBuildConfiguration section */
285 |
286 | /* Begin XCConfigurationList section */
287 | 3F0C6372229FD6A700D8D8C8 /* Build configuration list for PBXProject "RNMotionEventManager" */ = {
288 | isa = XCConfigurationList;
289 | buildConfigurations = (
290 | 3F0C637E229FD6A700D8D8C8 /* Debug */,
291 | 3F0C637F229FD6A700D8D8C8 /* Release */,
292 | );
293 | defaultConfigurationIsVisible = 0;
294 | defaultConfigurationName = Release;
295 | };
296 | 3F0C6380229FD6A700D8D8C8 /* Build configuration list for PBXNativeTarget "RNMotionEventManager" */ = {
297 | isa = XCConfigurationList;
298 | buildConfigurations = (
299 | 3F0C6381229FD6A700D8D8C8 /* Debug */,
300 | 3F0C6382229FD6A700D8D8C8 /* Release */,
301 | );
302 | defaultConfigurationIsVisible = 0;
303 | defaultConfigurationName = Release;
304 | };
305 | /* End XCConfigurationList section */
306 | };
307 | rootObject = 3F0C636F229FD6A700D8D8C8 /* Project object */;
308 | }
309 |
--------------------------------------------------------------------------------
/Demo/MotionEventManagerSample/ios/MotionEventManagerSample.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* MotionEventManagerSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MotionEventManagerSampleTests.m */; };
16 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
36 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
37 | 2DCD954D1E0B4F2C00145EB5 /* MotionEventManagerSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MotionEventManagerSampleTests.m */; };
38 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
39 | 3F0C642D22A0255600D8D8C8 /* libRNMotionEventManager.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F0C642C22A0251500D8D8C8 /* libRNMotionEventManager.a */; };
40 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
41 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
42 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
43 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
44 | /* End PBXBuildFile section */
45 |
46 | /* Begin PBXContainerItemProxy section */
47 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
48 | isa = PBXContainerItemProxy;
49 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
50 | proxyType = 2;
51 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
52 | remoteInfo = RCTActionSheet;
53 | };
54 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
55 | isa = PBXContainerItemProxy;
56 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
57 | proxyType = 2;
58 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
59 | remoteInfo = RCTGeolocation;
60 | };
61 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
62 | isa = PBXContainerItemProxy;
63 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
64 | proxyType = 2;
65 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
66 | remoteInfo = RCTImage;
67 | };
68 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
69 | isa = PBXContainerItemProxy;
70 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
71 | proxyType = 2;
72 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
73 | remoteInfo = RCTNetwork;
74 | };
75 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
76 | isa = PBXContainerItemProxy;
77 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
78 | proxyType = 2;
79 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
80 | remoteInfo = RCTVibration;
81 | };
82 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
83 | isa = PBXContainerItemProxy;
84 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
85 | proxyType = 1;
86 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
87 | remoteInfo = MotionEventManagerSample;
88 | };
89 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
90 | isa = PBXContainerItemProxy;
91 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
92 | proxyType = 2;
93 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
94 | remoteInfo = RCTSettings;
95 | };
96 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
97 | isa = PBXContainerItemProxy;
98 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
99 | proxyType = 2;
100 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
101 | remoteInfo = RCTWebSocket;
102 | };
103 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
104 | isa = PBXContainerItemProxy;
105 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
106 | proxyType = 2;
107 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
108 | remoteInfo = React;
109 | };
110 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
111 | isa = PBXContainerItemProxy;
112 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
113 | proxyType = 1;
114 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
115 | remoteInfo = "MotionEventManagerSample-tvOS";
116 | };
117 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
118 | isa = PBXContainerItemProxy;
119 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
120 | proxyType = 2;
121 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
122 | remoteInfo = "RCTBlob-tvOS";
123 | };
124 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
125 | isa = PBXContainerItemProxy;
126 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
127 | proxyType = 2;
128 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
129 | remoteInfo = fishhook;
130 | };
131 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
132 | isa = PBXContainerItemProxy;
133 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
134 | proxyType = 2;
135 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
136 | remoteInfo = "fishhook-tvOS";
137 | };
138 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
139 | isa = PBXContainerItemProxy;
140 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
141 | proxyType = 2;
142 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
143 | remoteInfo = jsinspector;
144 | };
145 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
146 | isa = PBXContainerItemProxy;
147 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
148 | proxyType = 2;
149 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
150 | remoteInfo = "jsinspector-tvOS";
151 | };
152 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
153 | isa = PBXContainerItemProxy;
154 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
155 | proxyType = 2;
156 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
157 | remoteInfo = "third-party";
158 | };
159 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
160 | isa = PBXContainerItemProxy;
161 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
162 | proxyType = 2;
163 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
164 | remoteInfo = "third-party-tvOS";
165 | };
166 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
167 | isa = PBXContainerItemProxy;
168 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
169 | proxyType = 2;
170 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
171 | remoteInfo = "double-conversion";
172 | };
173 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
174 | isa = PBXContainerItemProxy;
175 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
176 | proxyType = 2;
177 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
178 | remoteInfo = "double-conversion-tvOS";
179 | };
180 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
181 | isa = PBXContainerItemProxy;
182 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
183 | proxyType = 2;
184 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
185 | remoteInfo = "RCTImage-tvOS";
186 | };
187 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
188 | isa = PBXContainerItemProxy;
189 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
190 | proxyType = 2;
191 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
192 | remoteInfo = "RCTLinking-tvOS";
193 | };
194 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
195 | isa = PBXContainerItemProxy;
196 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
197 | proxyType = 2;
198 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
199 | remoteInfo = "RCTNetwork-tvOS";
200 | };
201 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
202 | isa = PBXContainerItemProxy;
203 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
204 | proxyType = 2;
205 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
206 | remoteInfo = "RCTSettings-tvOS";
207 | };
208 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
209 | isa = PBXContainerItemProxy;
210 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
211 | proxyType = 2;
212 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
213 | remoteInfo = "RCTText-tvOS";
214 | };
215 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
216 | isa = PBXContainerItemProxy;
217 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
218 | proxyType = 2;
219 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
220 | remoteInfo = "RCTWebSocket-tvOS";
221 | };
222 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
223 | isa = PBXContainerItemProxy;
224 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
225 | proxyType = 2;
226 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
227 | remoteInfo = "React-tvOS";
228 | };
229 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
230 | isa = PBXContainerItemProxy;
231 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
232 | proxyType = 2;
233 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
234 | remoteInfo = yoga;
235 | };
236 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
237 | isa = PBXContainerItemProxy;
238 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
239 | proxyType = 2;
240 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
241 | remoteInfo = "yoga-tvOS";
242 | };
243 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
244 | isa = PBXContainerItemProxy;
245 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
246 | proxyType = 2;
247 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
248 | remoteInfo = cxxreact;
249 | };
250 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
251 | isa = PBXContainerItemProxy;
252 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
253 | proxyType = 2;
254 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
255 | remoteInfo = "cxxreact-tvOS";
256 | };
257 | 3F0C63B7229FDC7D00D8D8C8 /* PBXContainerItemProxy */ = {
258 | isa = PBXContainerItemProxy;
259 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
260 | proxyType = 2;
261 | remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8;
262 | remoteInfo = jsi;
263 | };
264 | 3F0C63B9229FDC7D00D8D8C8 /* PBXContainerItemProxy */ = {
265 | isa = PBXContainerItemProxy;
266 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
267 | proxyType = 2;
268 | remoteGlobalIDString = EDEBC73B214B45A300DD5AC8;
269 | remoteInfo = jsiexecutor;
270 | };
271 | 3F0C63BB229FDC7D00D8D8C8 /* PBXContainerItemProxy */ = {
272 | isa = PBXContainerItemProxy;
273 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
274 | proxyType = 2;
275 | remoteGlobalIDString = ED296FB6214C9A0900B7C4FE;
276 | remoteInfo = "jsi-tvOS";
277 | };
278 | 3F0C63BD229FDC7D00D8D8C8 /* PBXContainerItemProxy */ = {
279 | isa = PBXContainerItemProxy;
280 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
281 | proxyType = 2;
282 | remoteGlobalIDString = ED296FEE214C9CF800B7C4FE;
283 | remoteInfo = "jsiexecutor-tvOS";
284 | };
285 | 3F0C642B22A0251500D8D8C8 /* PBXContainerItemProxy */ = {
286 | isa = PBXContainerItemProxy;
287 | containerPortal = 3F0C640222A0251400D8D8C8 /* RNMotionEventManager.xcodeproj */;
288 | proxyType = 2;
289 | remoteGlobalIDString = 3F0C6377229FD6A700D8D8C8;
290 | remoteInfo = RNMotionEventManager;
291 | };
292 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
293 | isa = PBXContainerItemProxy;
294 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
295 | proxyType = 2;
296 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
297 | remoteInfo = RCTAnimation;
298 | };
299 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
300 | isa = PBXContainerItemProxy;
301 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
302 | proxyType = 2;
303 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
304 | remoteInfo = "RCTAnimation-tvOS";
305 | };
306 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
307 | isa = PBXContainerItemProxy;
308 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
309 | proxyType = 2;
310 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
311 | remoteInfo = RCTLinking;
312 | };
313 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
314 | isa = PBXContainerItemProxy;
315 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
316 | proxyType = 2;
317 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
318 | remoteInfo = RCTText;
319 | };
320 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
321 | isa = PBXContainerItemProxy;
322 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
323 | proxyType = 2;
324 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
325 | remoteInfo = RCTBlob;
326 | };
327 | /* End PBXContainerItemProxy section */
328 |
329 | /* Begin PBXFileReference section */
330 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
331 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
332 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
333 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
334 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
335 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
336 | 00E356EE1AD99517003FC87E /* MotionEventManagerSampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MotionEventManagerSampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
337 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
338 | 00E356F21AD99517003FC87E /* MotionEventManagerSampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MotionEventManagerSampleTests.m; sourceTree = ""; };
339 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
340 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
341 | 13B07F961A680F5B00A75B9A /* MotionEventManagerSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MotionEventManagerSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
342 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = MotionEventManagerSample/AppDelegate.h; sourceTree = ""; };
343 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = MotionEventManagerSample/AppDelegate.m; sourceTree = ""; };
344 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
345 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = MotionEventManagerSample/Images.xcassets; sourceTree = ""; };
346 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = MotionEventManagerSample/Info.plist; sourceTree = ""; };
347 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = MotionEventManagerSample/main.m; sourceTree = ""; };
348 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
349 | 2D02E47B1E0B4A5D006451C7 /* MotionEventManagerSample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "MotionEventManagerSample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
350 | 2D02E4901E0B4A5D006451C7 /* MotionEventManagerSample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "MotionEventManagerSample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
351 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
352 | 3F0C640222A0251400D8D8C8 /* RNMotionEventManager.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNMotionEventManager.xcodeproj; path = "../node_modules/react-native-motion-event-manager/ios/RNMotionEventManager.xcodeproj"; sourceTree = ""; };
353 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
354 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
355 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
356 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
357 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
358 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
359 | /* End PBXFileReference section */
360 |
361 | /* Begin PBXFrameworksBuildPhase section */
362 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
363 | isa = PBXFrameworksBuildPhase;
364 | buildActionMask = 2147483647;
365 | files = (
366 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
367 | );
368 | runOnlyForDeploymentPostprocessing = 0;
369 | };
370 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
371 | isa = PBXFrameworksBuildPhase;
372 | buildActionMask = 2147483647;
373 | files = (
374 | 3F0C642D22A0255600D8D8C8 /* libRNMotionEventManager.a in Frameworks */,
375 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
376 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
377 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */,
378 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
379 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
380 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
381 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
382 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
383 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
384 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
385 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
386 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
387 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
388 | );
389 | runOnlyForDeploymentPostprocessing = 0;
390 | };
391 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
392 | isa = PBXFrameworksBuildPhase;
393 | buildActionMask = 2147483647;
394 | files = (
395 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */,
396 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
397 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
398 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
399 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
400 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
401 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
402 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
403 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
404 | );
405 | runOnlyForDeploymentPostprocessing = 0;
406 | };
407 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
408 | isa = PBXFrameworksBuildPhase;
409 | buildActionMask = 2147483647;
410 | files = (
411 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */,
412 | );
413 | runOnlyForDeploymentPostprocessing = 0;
414 | };
415 | /* End PBXFrameworksBuildPhase section */
416 |
417 | /* Begin PBXGroup section */
418 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
419 | isa = PBXGroup;
420 | children = (
421 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
422 | );
423 | name = Products;
424 | sourceTree = "";
425 | };
426 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
427 | isa = PBXGroup;
428 | children = (
429 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
430 | );
431 | name = Products;
432 | sourceTree = "";
433 | };
434 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
435 | isa = PBXGroup;
436 | children = (
437 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
438 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
439 | );
440 | name = Products;
441 | sourceTree = "";
442 | };
443 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
444 | isa = PBXGroup;
445 | children = (
446 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
447 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
448 | );
449 | name = Products;
450 | sourceTree = "";
451 | };
452 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
453 | isa = PBXGroup;
454 | children = (
455 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
456 | );
457 | name = Products;
458 | sourceTree = "";
459 | };
460 | 00E356EF1AD99517003FC87E /* MotionEventManagerSampleTests */ = {
461 | isa = PBXGroup;
462 | children = (
463 | 00E356F21AD99517003FC87E /* MotionEventManagerSampleTests.m */,
464 | 00E356F01AD99517003FC87E /* Supporting Files */,
465 | );
466 | path = MotionEventManagerSampleTests;
467 | sourceTree = "";
468 | };
469 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
470 | isa = PBXGroup;
471 | children = (
472 | 00E356F11AD99517003FC87E /* Info.plist */,
473 | );
474 | name = "Supporting Files";
475 | sourceTree = "";
476 | };
477 | 139105B71AF99BAD00B5F7CC /* Products */ = {
478 | isa = PBXGroup;
479 | children = (
480 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
481 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
482 | );
483 | name = Products;
484 | sourceTree = "";
485 | };
486 | 139FDEE71B06529A00C62182 /* Products */ = {
487 | isa = PBXGroup;
488 | children = (
489 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
490 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
491 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
492 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
493 | );
494 | name = Products;
495 | sourceTree = "";
496 | };
497 | 13B07FAE1A68108700A75B9A /* MotionEventManagerSample */ = {
498 | isa = PBXGroup;
499 | children = (
500 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
501 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
502 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
503 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
504 | 13B07FB61A68108700A75B9A /* Info.plist */,
505 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
506 | 13B07FB71A68108700A75B9A /* main.m */,
507 | );
508 | name = MotionEventManagerSample;
509 | sourceTree = "";
510 | };
511 | 146834001AC3E56700842450 /* Products */ = {
512 | isa = PBXGroup;
513 | children = (
514 | 146834041AC3E56700842450 /* libReact.a */,
515 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
516 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
517 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
518 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
519 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
520 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
521 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
522 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
523 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
524 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
525 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
526 | 3F0C63B8229FDC7D00D8D8C8 /* libjsi.a */,
527 | 3F0C63BA229FDC7D00D8D8C8 /* libjsiexecutor.a */,
528 | 3F0C63BC229FDC7D00D8D8C8 /* libjsi-tvOS.a */,
529 | 3F0C63BE229FDC7D00D8D8C8 /* libjsiexecutor-tvOS.a */,
530 | );
531 | name = Products;
532 | sourceTree = "";
533 | };
534 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
535 | isa = PBXGroup;
536 | children = (
537 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
538 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
539 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
540 | );
541 | name = Frameworks;
542 | sourceTree = "";
543 | };
544 | 3F0C640322A0251400D8D8C8 /* Products */ = {
545 | isa = PBXGroup;
546 | children = (
547 | 3F0C642C22A0251500D8D8C8 /* libRNMotionEventManager.a */,
548 | );
549 | name = Products;
550 | sourceTree = "";
551 | };
552 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
553 | isa = PBXGroup;
554 | children = (
555 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
556 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
557 | );
558 | name = Products;
559 | sourceTree = "";
560 | };
561 | 78C398B11ACF4ADC00677621 /* Products */ = {
562 | isa = PBXGroup;
563 | children = (
564 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
565 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
566 | );
567 | name = Products;
568 | sourceTree = "";
569 | };
570 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
571 | isa = PBXGroup;
572 | children = (
573 | 3F0C640222A0251400D8D8C8 /* RNMotionEventManager.xcodeproj */,
574 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
575 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
576 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
577 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
578 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
579 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
580 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
581 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
582 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
583 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
584 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
585 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
586 | );
587 | name = Libraries;
588 | sourceTree = "";
589 | };
590 | 832341B11AAA6A8300B99B32 /* Products */ = {
591 | isa = PBXGroup;
592 | children = (
593 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
594 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
595 | );
596 | name = Products;
597 | sourceTree = "";
598 | };
599 | 83CBB9F61A601CBA00E9B192 = {
600 | isa = PBXGroup;
601 | children = (
602 | 13B07FAE1A68108700A75B9A /* MotionEventManagerSample */,
603 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
604 | 00E356EF1AD99517003FC87E /* MotionEventManagerSampleTests */,
605 | 83CBBA001A601CBA00E9B192 /* Products */,
606 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
607 | );
608 | indentWidth = 2;
609 | sourceTree = "";
610 | tabWidth = 2;
611 | usesTabs = 0;
612 | };
613 | 83CBBA001A601CBA00E9B192 /* Products */ = {
614 | isa = PBXGroup;
615 | children = (
616 | 13B07F961A680F5B00A75B9A /* MotionEventManagerSample.app */,
617 | 00E356EE1AD99517003FC87E /* MotionEventManagerSampleTests.xctest */,
618 | 2D02E47B1E0B4A5D006451C7 /* MotionEventManagerSample-tvOS.app */,
619 | 2D02E4901E0B4A5D006451C7 /* MotionEventManagerSample-tvOSTests.xctest */,
620 | );
621 | name = Products;
622 | sourceTree = "";
623 | };
624 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
625 | isa = PBXGroup;
626 | children = (
627 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
628 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
629 | );
630 | name = Products;
631 | sourceTree = "";
632 | };
633 | /* End PBXGroup section */
634 |
635 | /* Begin PBXNativeTarget section */
636 | 00E356ED1AD99517003FC87E /* MotionEventManagerSampleTests */ = {
637 | isa = PBXNativeTarget;
638 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MotionEventManagerSampleTests" */;
639 | buildPhases = (
640 | 00E356EA1AD99517003FC87E /* Sources */,
641 | 00E356EB1AD99517003FC87E /* Frameworks */,
642 | 00E356EC1AD99517003FC87E /* Resources */,
643 | );
644 | buildRules = (
645 | );
646 | dependencies = (
647 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
648 | );
649 | name = MotionEventManagerSampleTests;
650 | productName = MotionEventManagerSampleTests;
651 | productReference = 00E356EE1AD99517003FC87E /* MotionEventManagerSampleTests.xctest */;
652 | productType = "com.apple.product-type.bundle.unit-test";
653 | };
654 | 13B07F861A680F5B00A75B9A /* MotionEventManagerSample */ = {
655 | isa = PBXNativeTarget;
656 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "MotionEventManagerSample" */;
657 | buildPhases = (
658 | 13B07F871A680F5B00A75B9A /* Sources */,
659 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
660 | 13B07F8E1A680F5B00A75B9A /* Resources */,
661 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
662 | );
663 | buildRules = (
664 | );
665 | dependencies = (
666 | );
667 | name = MotionEventManagerSample;
668 | productName = "Hello World";
669 | productReference = 13B07F961A680F5B00A75B9A /* MotionEventManagerSample.app */;
670 | productType = "com.apple.product-type.application";
671 | };
672 | 2D02E47A1E0B4A5D006451C7 /* MotionEventManagerSample-tvOS */ = {
673 | isa = PBXNativeTarget;
674 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MotionEventManagerSample-tvOS" */;
675 | buildPhases = (
676 | 2D02E4771E0B4A5D006451C7 /* Sources */,
677 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
678 | 2D02E4791E0B4A5D006451C7 /* Resources */,
679 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
680 | );
681 | buildRules = (
682 | );
683 | dependencies = (
684 | );
685 | name = "MotionEventManagerSample-tvOS";
686 | productName = "MotionEventManagerSample-tvOS";
687 | productReference = 2D02E47B1E0B4A5D006451C7 /* MotionEventManagerSample-tvOS.app */;
688 | productType = "com.apple.product-type.application";
689 | };
690 | 2D02E48F1E0B4A5D006451C7 /* MotionEventManagerSample-tvOSTests */ = {
691 | isa = PBXNativeTarget;
692 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MotionEventManagerSample-tvOSTests" */;
693 | buildPhases = (
694 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
695 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
696 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
697 | );
698 | buildRules = (
699 | );
700 | dependencies = (
701 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
702 | );
703 | name = "MotionEventManagerSample-tvOSTests";
704 | productName = "MotionEventManagerSample-tvOSTests";
705 | productReference = 2D02E4901E0B4A5D006451C7 /* MotionEventManagerSample-tvOSTests.xctest */;
706 | productType = "com.apple.product-type.bundle.unit-test";
707 | };
708 | /* End PBXNativeTarget section */
709 |
710 | /* Begin PBXProject section */
711 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
712 | isa = PBXProject;
713 | attributes = {
714 | LastUpgradeCheck = 0940;
715 | ORGANIZATIONNAME = Facebook;
716 | TargetAttributes = {
717 | 00E356ED1AD99517003FC87E = {
718 | CreatedOnToolsVersion = 6.2;
719 | TestTargetID = 13B07F861A680F5B00A75B9A;
720 | };
721 | 2D02E47A1E0B4A5D006451C7 = {
722 | CreatedOnToolsVersion = 8.2.1;
723 | ProvisioningStyle = Automatic;
724 | };
725 | 2D02E48F1E0B4A5D006451C7 = {
726 | CreatedOnToolsVersion = 8.2.1;
727 | ProvisioningStyle = Automatic;
728 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
729 | };
730 | };
731 | };
732 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "MotionEventManagerSample" */;
733 | compatibilityVersion = "Xcode 3.2";
734 | developmentRegion = English;
735 | hasScannedForEncodings = 0;
736 | knownRegions = (
737 | en,
738 | Base,
739 | );
740 | mainGroup = 83CBB9F61A601CBA00E9B192;
741 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
742 | projectDirPath = "";
743 | projectReferences = (
744 | {
745 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
746 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
747 | },
748 | {
749 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
750 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
751 | },
752 | {
753 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
754 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
755 | },
756 | {
757 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
758 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
759 | },
760 | {
761 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
762 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
763 | },
764 | {
765 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
766 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
767 | },
768 | {
769 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
770 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
771 | },
772 | {
773 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
774 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
775 | },
776 | {
777 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
778 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
779 | },
780 | {
781 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
782 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
783 | },
784 | {
785 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
786 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
787 | },
788 | {
789 | ProductGroup = 146834001AC3E56700842450 /* Products */;
790 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
791 | },
792 | {
793 | ProductGroup = 3F0C640322A0251400D8D8C8 /* Products */;
794 | ProjectRef = 3F0C640222A0251400D8D8C8 /* RNMotionEventManager.xcodeproj */;
795 | },
796 | );
797 | projectRoot = "";
798 | targets = (
799 | 13B07F861A680F5B00A75B9A /* MotionEventManagerSample */,
800 | 00E356ED1AD99517003FC87E /* MotionEventManagerSampleTests */,
801 | 2D02E47A1E0B4A5D006451C7 /* MotionEventManagerSample-tvOS */,
802 | 2D02E48F1E0B4A5D006451C7 /* MotionEventManagerSample-tvOSTests */,
803 | );
804 | };
805 | /* End PBXProject section */
806 |
807 | /* Begin PBXReferenceProxy section */
808 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
809 | isa = PBXReferenceProxy;
810 | fileType = archive.ar;
811 | path = libRCTActionSheet.a;
812 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
813 | sourceTree = BUILT_PRODUCTS_DIR;
814 | };
815 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
816 | isa = PBXReferenceProxy;
817 | fileType = archive.ar;
818 | path = libRCTGeolocation.a;
819 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
820 | sourceTree = BUILT_PRODUCTS_DIR;
821 | };
822 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
823 | isa = PBXReferenceProxy;
824 | fileType = archive.ar;
825 | path = libRCTImage.a;
826 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
827 | sourceTree = BUILT_PRODUCTS_DIR;
828 | };
829 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
830 | isa = PBXReferenceProxy;
831 | fileType = archive.ar;
832 | path = libRCTNetwork.a;
833 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
834 | sourceTree = BUILT_PRODUCTS_DIR;
835 | };
836 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
837 | isa = PBXReferenceProxy;
838 | fileType = archive.ar;
839 | path = libRCTVibration.a;
840 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
841 | sourceTree = BUILT_PRODUCTS_DIR;
842 | };
843 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
844 | isa = PBXReferenceProxy;
845 | fileType = archive.ar;
846 | path = libRCTSettings.a;
847 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
848 | sourceTree = BUILT_PRODUCTS_DIR;
849 | };
850 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
851 | isa = PBXReferenceProxy;
852 | fileType = archive.ar;
853 | path = libRCTWebSocket.a;
854 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
855 | sourceTree = BUILT_PRODUCTS_DIR;
856 | };
857 | 146834041AC3E56700842450 /* libReact.a */ = {
858 | isa = PBXReferenceProxy;
859 | fileType = archive.ar;
860 | path = libReact.a;
861 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
862 | sourceTree = BUILT_PRODUCTS_DIR;
863 | };
864 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
865 | isa = PBXReferenceProxy;
866 | fileType = archive.ar;
867 | path = "libRCTBlob-tvOS.a";
868 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
869 | sourceTree = BUILT_PRODUCTS_DIR;
870 | };
871 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
872 | isa = PBXReferenceProxy;
873 | fileType = archive.ar;
874 | path = libfishhook.a;
875 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
876 | sourceTree = BUILT_PRODUCTS_DIR;
877 | };
878 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
879 | isa = PBXReferenceProxy;
880 | fileType = archive.ar;
881 | path = "libfishhook-tvOS.a";
882 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
883 | sourceTree = BUILT_PRODUCTS_DIR;
884 | };
885 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
886 | isa = PBXReferenceProxy;
887 | fileType = archive.ar;
888 | path = libjsinspector.a;
889 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
890 | sourceTree = BUILT_PRODUCTS_DIR;
891 | };
892 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
893 | isa = PBXReferenceProxy;
894 | fileType = archive.ar;
895 | path = "libjsinspector-tvOS.a";
896 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
897 | sourceTree = BUILT_PRODUCTS_DIR;
898 | };
899 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
900 | isa = PBXReferenceProxy;
901 | fileType = archive.ar;
902 | path = "libthird-party.a";
903 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
904 | sourceTree = BUILT_PRODUCTS_DIR;
905 | };
906 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
907 | isa = PBXReferenceProxy;
908 | fileType = archive.ar;
909 | path = "libthird-party.a";
910 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
911 | sourceTree = BUILT_PRODUCTS_DIR;
912 | };
913 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
914 | isa = PBXReferenceProxy;
915 | fileType = archive.ar;
916 | path = "libdouble-conversion.a";
917 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
918 | sourceTree = BUILT_PRODUCTS_DIR;
919 | };
920 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
921 | isa = PBXReferenceProxy;
922 | fileType = archive.ar;
923 | path = "libdouble-conversion.a";
924 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
925 | sourceTree = BUILT_PRODUCTS_DIR;
926 | };
927 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
928 | isa = PBXReferenceProxy;
929 | fileType = archive.ar;
930 | path = "libRCTImage-tvOS.a";
931 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
932 | sourceTree = BUILT_PRODUCTS_DIR;
933 | };
934 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
935 | isa = PBXReferenceProxy;
936 | fileType = archive.ar;
937 | path = "libRCTLinking-tvOS.a";
938 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
939 | sourceTree = BUILT_PRODUCTS_DIR;
940 | };
941 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
942 | isa = PBXReferenceProxy;
943 | fileType = archive.ar;
944 | path = "libRCTNetwork-tvOS.a";
945 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
946 | sourceTree = BUILT_PRODUCTS_DIR;
947 | };
948 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
949 | isa = PBXReferenceProxy;
950 | fileType = archive.ar;
951 | path = "libRCTSettings-tvOS.a";
952 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
953 | sourceTree = BUILT_PRODUCTS_DIR;
954 | };
955 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
956 | isa = PBXReferenceProxy;
957 | fileType = archive.ar;
958 | path = "libRCTText-tvOS.a";
959 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
960 | sourceTree = BUILT_PRODUCTS_DIR;
961 | };
962 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
963 | isa = PBXReferenceProxy;
964 | fileType = archive.ar;
965 | path = "libRCTWebSocket-tvOS.a";
966 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
967 | sourceTree = BUILT_PRODUCTS_DIR;
968 | };
969 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
970 | isa = PBXReferenceProxy;
971 | fileType = archive.ar;
972 | path = libReact.a;
973 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
974 | sourceTree = BUILT_PRODUCTS_DIR;
975 | };
976 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
977 | isa = PBXReferenceProxy;
978 | fileType = archive.ar;
979 | path = libyoga.a;
980 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
981 | sourceTree = BUILT_PRODUCTS_DIR;
982 | };
983 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
984 | isa = PBXReferenceProxy;
985 | fileType = archive.ar;
986 | path = libyoga.a;
987 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
988 | sourceTree = BUILT_PRODUCTS_DIR;
989 | };
990 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
991 | isa = PBXReferenceProxy;
992 | fileType = archive.ar;
993 | path = libcxxreact.a;
994 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
995 | sourceTree = BUILT_PRODUCTS_DIR;
996 | };
997 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
998 | isa = PBXReferenceProxy;
999 | fileType = archive.ar;
1000 | path = libcxxreact.a;
1001 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
1002 | sourceTree = BUILT_PRODUCTS_DIR;
1003 | };
1004 | 3F0C63B8229FDC7D00D8D8C8 /* libjsi.a */ = {
1005 | isa = PBXReferenceProxy;
1006 | fileType = archive.ar;
1007 | path = libjsi.a;
1008 | remoteRef = 3F0C63B7229FDC7D00D8D8C8 /* PBXContainerItemProxy */;
1009 | sourceTree = BUILT_PRODUCTS_DIR;
1010 | };
1011 | 3F0C63BA229FDC7D00D8D8C8 /* libjsiexecutor.a */ = {
1012 | isa = PBXReferenceProxy;
1013 | fileType = archive.ar;
1014 | path = libjsiexecutor.a;
1015 | remoteRef = 3F0C63B9229FDC7D00D8D8C8 /* PBXContainerItemProxy */;
1016 | sourceTree = BUILT_PRODUCTS_DIR;
1017 | };
1018 | 3F0C63BC229FDC7D00D8D8C8 /* libjsi-tvOS.a */ = {
1019 | isa = PBXReferenceProxy;
1020 | fileType = archive.ar;
1021 | path = "libjsi-tvOS.a";
1022 | remoteRef = 3F0C63BB229FDC7D00D8D8C8 /* PBXContainerItemProxy */;
1023 | sourceTree = BUILT_PRODUCTS_DIR;
1024 | };
1025 | 3F0C63BE229FDC7D00D8D8C8 /* libjsiexecutor-tvOS.a */ = {
1026 | isa = PBXReferenceProxy;
1027 | fileType = archive.ar;
1028 | path = "libjsiexecutor-tvOS.a";
1029 | remoteRef = 3F0C63BD229FDC7D00D8D8C8 /* PBXContainerItemProxy */;
1030 | sourceTree = BUILT_PRODUCTS_DIR;
1031 | };
1032 | 3F0C642C22A0251500D8D8C8 /* libRNMotionEventManager.a */ = {
1033 | isa = PBXReferenceProxy;
1034 | fileType = archive.ar;
1035 | path = libRNMotionEventManager.a;
1036 | remoteRef = 3F0C642B22A0251500D8D8C8 /* PBXContainerItemProxy */;
1037 | sourceTree = BUILT_PRODUCTS_DIR;
1038 | };
1039 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1040 | isa = PBXReferenceProxy;
1041 | fileType = archive.ar;
1042 | path = libRCTAnimation.a;
1043 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1044 | sourceTree = BUILT_PRODUCTS_DIR;
1045 | };
1046 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1047 | isa = PBXReferenceProxy;
1048 | fileType = archive.ar;
1049 | path = libRCTAnimation.a;
1050 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1051 | sourceTree = BUILT_PRODUCTS_DIR;
1052 | };
1053 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
1054 | isa = PBXReferenceProxy;
1055 | fileType = archive.ar;
1056 | path = libRCTLinking.a;
1057 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
1058 | sourceTree = BUILT_PRODUCTS_DIR;
1059 | };
1060 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
1061 | isa = PBXReferenceProxy;
1062 | fileType = archive.ar;
1063 | path = libRCTText.a;
1064 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
1065 | sourceTree = BUILT_PRODUCTS_DIR;
1066 | };
1067 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
1068 | isa = PBXReferenceProxy;
1069 | fileType = archive.ar;
1070 | path = libRCTBlob.a;
1071 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
1072 | sourceTree = BUILT_PRODUCTS_DIR;
1073 | };
1074 | /* End PBXReferenceProxy section */
1075 |
1076 | /* Begin PBXResourcesBuildPhase section */
1077 | 00E356EC1AD99517003FC87E /* Resources */ = {
1078 | isa = PBXResourcesBuildPhase;
1079 | buildActionMask = 2147483647;
1080 | files = (
1081 | );
1082 | runOnlyForDeploymentPostprocessing = 0;
1083 | };
1084 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
1085 | isa = PBXResourcesBuildPhase;
1086 | buildActionMask = 2147483647;
1087 | files = (
1088 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
1089 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
1090 | );
1091 | runOnlyForDeploymentPostprocessing = 0;
1092 | };
1093 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
1094 | isa = PBXResourcesBuildPhase;
1095 | buildActionMask = 2147483647;
1096 | files = (
1097 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
1098 | );
1099 | runOnlyForDeploymentPostprocessing = 0;
1100 | };
1101 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
1102 | isa = PBXResourcesBuildPhase;
1103 | buildActionMask = 2147483647;
1104 | files = (
1105 | );
1106 | runOnlyForDeploymentPostprocessing = 0;
1107 | };
1108 | /* End PBXResourcesBuildPhase section */
1109 |
1110 | /* Begin PBXShellScriptBuildPhase section */
1111 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1112 | isa = PBXShellScriptBuildPhase;
1113 | buildActionMask = 2147483647;
1114 | files = (
1115 | );
1116 | inputPaths = (
1117 | );
1118 | name = "Bundle React Native code and images";
1119 | outputPaths = (
1120 | );
1121 | runOnlyForDeploymentPostprocessing = 0;
1122 | shellPath = /bin/sh;
1123 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1124 | };
1125 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1126 | isa = PBXShellScriptBuildPhase;
1127 | buildActionMask = 2147483647;
1128 | files = (
1129 | );
1130 | inputPaths = (
1131 | );
1132 | name = "Bundle React Native Code And Images";
1133 | outputPaths = (
1134 | );
1135 | runOnlyForDeploymentPostprocessing = 0;
1136 | shellPath = /bin/sh;
1137 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1138 | };
1139 | /* End PBXShellScriptBuildPhase section */
1140 |
1141 | /* Begin PBXSourcesBuildPhase section */
1142 | 00E356EA1AD99517003FC87E /* Sources */ = {
1143 | isa = PBXSourcesBuildPhase;
1144 | buildActionMask = 2147483647;
1145 | files = (
1146 | 00E356F31AD99517003FC87E /* MotionEventManagerSampleTests.m in Sources */,
1147 | );
1148 | runOnlyForDeploymentPostprocessing = 0;
1149 | };
1150 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1151 | isa = PBXSourcesBuildPhase;
1152 | buildActionMask = 2147483647;
1153 | files = (
1154 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1155 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1156 | );
1157 | runOnlyForDeploymentPostprocessing = 0;
1158 | };
1159 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1160 | isa = PBXSourcesBuildPhase;
1161 | buildActionMask = 2147483647;
1162 | files = (
1163 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1164 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1165 | );
1166 | runOnlyForDeploymentPostprocessing = 0;
1167 | };
1168 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
1169 | isa = PBXSourcesBuildPhase;
1170 | buildActionMask = 2147483647;
1171 | files = (
1172 | 2DCD954D1E0B4F2C00145EB5 /* MotionEventManagerSampleTests.m in Sources */,
1173 | );
1174 | runOnlyForDeploymentPostprocessing = 0;
1175 | };
1176 | /* End PBXSourcesBuildPhase section */
1177 |
1178 | /* Begin PBXTargetDependency section */
1179 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
1180 | isa = PBXTargetDependency;
1181 | target = 13B07F861A680F5B00A75B9A /* MotionEventManagerSample */;
1182 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
1183 | };
1184 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
1185 | isa = PBXTargetDependency;
1186 | target = 2D02E47A1E0B4A5D006451C7 /* MotionEventManagerSample-tvOS */;
1187 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
1188 | };
1189 | /* End PBXTargetDependency section */
1190 |
1191 | /* Begin PBXVariantGroup section */
1192 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1193 | isa = PBXVariantGroup;
1194 | children = (
1195 | 13B07FB21A68108700A75B9A /* Base */,
1196 | );
1197 | name = LaunchScreen.xib;
1198 | path = MotionEventManagerSample;
1199 | sourceTree = "";
1200 | };
1201 | /* End PBXVariantGroup section */
1202 |
1203 | /* Begin XCBuildConfiguration section */
1204 | 00E356F61AD99517003FC87E /* Debug */ = {
1205 | isa = XCBuildConfiguration;
1206 | buildSettings = {
1207 | BUNDLE_LOADER = "$(TEST_HOST)";
1208 | GCC_PREPROCESSOR_DEFINITIONS = (
1209 | "DEBUG=1",
1210 | "$(inherited)",
1211 | );
1212 | INFOPLIST_FILE = MotionEventManagerSampleTests/Info.plist;
1213 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1214 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1215 | OTHER_LDFLAGS = (
1216 | "-ObjC",
1217 | "-lc++",
1218 | );
1219 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1220 | PRODUCT_NAME = "$(TARGET_NAME)";
1221 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MotionEventManagerSample.app/MotionEventManagerSample";
1222 | };
1223 | name = Debug;
1224 | };
1225 | 00E356F71AD99517003FC87E /* Release */ = {
1226 | isa = XCBuildConfiguration;
1227 | buildSettings = {
1228 | BUNDLE_LOADER = "$(TEST_HOST)";
1229 | COPY_PHASE_STRIP = NO;
1230 | INFOPLIST_FILE = MotionEventManagerSampleTests/Info.plist;
1231 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1232 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1233 | OTHER_LDFLAGS = (
1234 | "-ObjC",
1235 | "-lc++",
1236 | );
1237 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1238 | PRODUCT_NAME = "$(TARGET_NAME)";
1239 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MotionEventManagerSample.app/MotionEventManagerSample";
1240 | };
1241 | name = Release;
1242 | };
1243 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1244 | isa = XCBuildConfiguration;
1245 | buildSettings = {
1246 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1247 | CURRENT_PROJECT_VERSION = 1;
1248 | DEAD_CODE_STRIPPING = NO;
1249 | INFOPLIST_FILE = MotionEventManagerSample/Info.plist;
1250 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1251 | OTHER_LDFLAGS = (
1252 | "$(inherited)",
1253 | "-ObjC",
1254 | "-lc++",
1255 | );
1256 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1257 | PRODUCT_NAME = MotionEventManagerSample;
1258 | VERSIONING_SYSTEM = "apple-generic";
1259 | };
1260 | name = Debug;
1261 | };
1262 | 13B07F951A680F5B00A75B9A /* Release */ = {
1263 | isa = XCBuildConfiguration;
1264 | buildSettings = {
1265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1266 | CURRENT_PROJECT_VERSION = 1;
1267 | INFOPLIST_FILE = MotionEventManagerSample/Info.plist;
1268 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1269 | OTHER_LDFLAGS = (
1270 | "$(inherited)",
1271 | "-ObjC",
1272 | "-lc++",
1273 | );
1274 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1275 | PRODUCT_NAME = MotionEventManagerSample;
1276 | VERSIONING_SYSTEM = "apple-generic";
1277 | };
1278 | name = Release;
1279 | };
1280 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1281 | isa = XCBuildConfiguration;
1282 | buildSettings = {
1283 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1284 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1285 | CLANG_ANALYZER_NONNULL = YES;
1286 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1287 | CLANG_WARN_INFINITE_RECURSION = YES;
1288 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1289 | DEBUG_INFORMATION_FORMAT = dwarf;
1290 | ENABLE_TESTABILITY = YES;
1291 | GCC_NO_COMMON_BLOCKS = YES;
1292 | INFOPLIST_FILE = "MotionEventManagerSample-tvOS/Info.plist";
1293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1294 | OTHER_LDFLAGS = (
1295 | "-ObjC",
1296 | "-lc++",
1297 | );
1298 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.MotionEventManagerSample-tvOS";
1299 | PRODUCT_NAME = "$(TARGET_NAME)";
1300 | SDKROOT = appletvos;
1301 | TARGETED_DEVICE_FAMILY = 3;
1302 | TVOS_DEPLOYMENT_TARGET = 9.2;
1303 | };
1304 | name = Debug;
1305 | };
1306 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1307 | isa = XCBuildConfiguration;
1308 | buildSettings = {
1309 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1310 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1311 | CLANG_ANALYZER_NONNULL = YES;
1312 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1313 | CLANG_WARN_INFINITE_RECURSION = YES;
1314 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1315 | COPY_PHASE_STRIP = NO;
1316 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1317 | GCC_NO_COMMON_BLOCKS = YES;
1318 | INFOPLIST_FILE = "MotionEventManagerSample-tvOS/Info.plist";
1319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1320 | OTHER_LDFLAGS = (
1321 | "-ObjC",
1322 | "-lc++",
1323 | );
1324 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.MotionEventManagerSample-tvOS";
1325 | PRODUCT_NAME = "$(TARGET_NAME)";
1326 | SDKROOT = appletvos;
1327 | TARGETED_DEVICE_FAMILY = 3;
1328 | TVOS_DEPLOYMENT_TARGET = 9.2;
1329 | };
1330 | name = Release;
1331 | };
1332 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1333 | isa = XCBuildConfiguration;
1334 | buildSettings = {
1335 | BUNDLE_LOADER = "$(TEST_HOST)";
1336 | CLANG_ANALYZER_NONNULL = YES;
1337 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1338 | CLANG_WARN_INFINITE_RECURSION = YES;
1339 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1340 | DEBUG_INFORMATION_FORMAT = dwarf;
1341 | ENABLE_TESTABILITY = YES;
1342 | GCC_NO_COMMON_BLOCKS = YES;
1343 | INFOPLIST_FILE = "MotionEventManagerSample-tvOSTests/Info.plist";
1344 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1345 | OTHER_LDFLAGS = (
1346 | "-ObjC",
1347 | "-lc++",
1348 | );
1349 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.MotionEventManagerSample-tvOSTests";
1350 | PRODUCT_NAME = "$(TARGET_NAME)";
1351 | SDKROOT = appletvos;
1352 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MotionEventManagerSample-tvOS.app/MotionEventManagerSample-tvOS";
1353 | TVOS_DEPLOYMENT_TARGET = 10.1;
1354 | };
1355 | name = Debug;
1356 | };
1357 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1358 | isa = XCBuildConfiguration;
1359 | buildSettings = {
1360 | BUNDLE_LOADER = "$(TEST_HOST)";
1361 | CLANG_ANALYZER_NONNULL = YES;
1362 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1363 | CLANG_WARN_INFINITE_RECURSION = YES;
1364 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1365 | COPY_PHASE_STRIP = NO;
1366 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1367 | GCC_NO_COMMON_BLOCKS = YES;
1368 | INFOPLIST_FILE = "MotionEventManagerSample-tvOSTests/Info.plist";
1369 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1370 | OTHER_LDFLAGS = (
1371 | "-ObjC",
1372 | "-lc++",
1373 | );
1374 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.MotionEventManagerSample-tvOSTests";
1375 | PRODUCT_NAME = "$(TARGET_NAME)";
1376 | SDKROOT = appletvos;
1377 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MotionEventManagerSample-tvOS.app/MotionEventManagerSample-tvOS";
1378 | TVOS_DEPLOYMENT_TARGET = 10.1;
1379 | };
1380 | name = Release;
1381 | };
1382 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1383 | isa = XCBuildConfiguration;
1384 | buildSettings = {
1385 | ALWAYS_SEARCH_USER_PATHS = NO;
1386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1387 | CLANG_CXX_LIBRARY = "libc++";
1388 | CLANG_ENABLE_MODULES = YES;
1389 | CLANG_ENABLE_OBJC_ARC = YES;
1390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1391 | CLANG_WARN_BOOL_CONVERSION = YES;
1392 | CLANG_WARN_COMMA = YES;
1393 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1394 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1396 | CLANG_WARN_EMPTY_BODY = YES;
1397 | CLANG_WARN_ENUM_CONVERSION = YES;
1398 | CLANG_WARN_INFINITE_RECURSION = YES;
1399 | CLANG_WARN_INT_CONVERSION = YES;
1400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1401 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1402 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1403 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1404 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1405 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1406 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1407 | CLANG_WARN_UNREACHABLE_CODE = YES;
1408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1410 | COPY_PHASE_STRIP = NO;
1411 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1412 | ENABLE_TESTABILITY = YES;
1413 | GCC_C_LANGUAGE_STANDARD = gnu99;
1414 | GCC_DYNAMIC_NO_PIC = NO;
1415 | GCC_NO_COMMON_BLOCKS = YES;
1416 | GCC_OPTIMIZATION_LEVEL = 0;
1417 | GCC_PREPROCESSOR_DEFINITIONS = (
1418 | "DEBUG=1",
1419 | "$(inherited)",
1420 | );
1421 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1422 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1423 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1424 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1425 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1426 | GCC_WARN_UNUSED_FUNCTION = YES;
1427 | GCC_WARN_UNUSED_VARIABLE = YES;
1428 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1429 | MTL_ENABLE_DEBUG_INFO = YES;
1430 | ONLY_ACTIVE_ARCH = YES;
1431 | SDKROOT = iphoneos;
1432 | };
1433 | name = Debug;
1434 | };
1435 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1436 | isa = XCBuildConfiguration;
1437 | buildSettings = {
1438 | ALWAYS_SEARCH_USER_PATHS = NO;
1439 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1440 | CLANG_CXX_LIBRARY = "libc++";
1441 | CLANG_ENABLE_MODULES = YES;
1442 | CLANG_ENABLE_OBJC_ARC = YES;
1443 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1444 | CLANG_WARN_BOOL_CONVERSION = YES;
1445 | CLANG_WARN_COMMA = YES;
1446 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1447 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1448 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1449 | CLANG_WARN_EMPTY_BODY = YES;
1450 | CLANG_WARN_ENUM_CONVERSION = YES;
1451 | CLANG_WARN_INFINITE_RECURSION = YES;
1452 | CLANG_WARN_INT_CONVERSION = YES;
1453 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1454 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1455 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1456 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1457 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1458 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1459 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1460 | CLANG_WARN_UNREACHABLE_CODE = YES;
1461 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1462 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1463 | COPY_PHASE_STRIP = YES;
1464 | ENABLE_NS_ASSERTIONS = NO;
1465 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1466 | GCC_C_LANGUAGE_STANDARD = gnu99;
1467 | GCC_NO_COMMON_BLOCKS = YES;
1468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1470 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1472 | GCC_WARN_UNUSED_FUNCTION = YES;
1473 | GCC_WARN_UNUSED_VARIABLE = YES;
1474 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1475 | MTL_ENABLE_DEBUG_INFO = NO;
1476 | SDKROOT = iphoneos;
1477 | VALIDATE_PRODUCT = YES;
1478 | };
1479 | name = Release;
1480 | };
1481 | /* End XCBuildConfiguration section */
1482 |
1483 | /* Begin XCConfigurationList section */
1484 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MotionEventManagerSampleTests" */ = {
1485 | isa = XCConfigurationList;
1486 | buildConfigurations = (
1487 | 00E356F61AD99517003FC87E /* Debug */,
1488 | 00E356F71AD99517003FC87E /* Release */,
1489 | );
1490 | defaultConfigurationIsVisible = 0;
1491 | defaultConfigurationName = Release;
1492 | };
1493 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "MotionEventManagerSample" */ = {
1494 | isa = XCConfigurationList;
1495 | buildConfigurations = (
1496 | 13B07F941A680F5B00A75B9A /* Debug */,
1497 | 13B07F951A680F5B00A75B9A /* Release */,
1498 | );
1499 | defaultConfigurationIsVisible = 0;
1500 | defaultConfigurationName = Release;
1501 | };
1502 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MotionEventManagerSample-tvOS" */ = {
1503 | isa = XCConfigurationList;
1504 | buildConfigurations = (
1505 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1506 | 2D02E4981E0B4A5E006451C7 /* Release */,
1507 | );
1508 | defaultConfigurationIsVisible = 0;
1509 | defaultConfigurationName = Release;
1510 | };
1511 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MotionEventManagerSample-tvOSTests" */ = {
1512 | isa = XCConfigurationList;
1513 | buildConfigurations = (
1514 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1515 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1516 | );
1517 | defaultConfigurationIsVisible = 0;
1518 | defaultConfigurationName = Release;
1519 | };
1520 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "MotionEventManagerSample" */ = {
1521 | isa = XCConfigurationList;
1522 | buildConfigurations = (
1523 | 83CBBA201A601CBA00E9B192 /* Debug */,
1524 | 83CBBA211A601CBA00E9B192 /* Release */,
1525 | );
1526 | defaultConfigurationIsVisible = 0;
1527 | defaultConfigurationName = Release;
1528 | };
1529 | /* End XCConfigurationList section */
1530 | };
1531 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1532 | }
1533 |
--------------------------------------------------------------------------------