├── src ├── __tests__ │ └── index.test.tsx ├── index.tsx └── Components │ ├── Colors.ts │ ├── CommonStyle.ts │ ├── OrderTrackList.tsx │ ├── ProgressRipple │ ├── style.ts │ └── ProgressRipple.tsx │ ├── Vertical │ ├── style.ts │ └── VerticalOrderTrackComponent.tsx │ ├── Interface.ts │ ├── Horizontal │ ├── style.ts │ └── HorizontalOrderTrackComponent.tsx │ └── AnimatedStroke.tsx ├── tsconfig.build.json ├── media ├── hire_button.png ├── vertical_gif.gif ├── horizontal_gif.gif └── order_track_example.gif ├── example ├── ios │ ├── File.swift │ ├── MiOrderJournyTrackingLibExample │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── Info.plist │ │ ├── AppDelegate.m │ │ └── LaunchScreen.storyboard │ ├── MiOrderJournyTrackingLibExample-Bridging-Header.h │ ├── MiOrderJournyTrackingLibExample.xcworkspace │ │ ├── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ │ └── contents.xcworkspacedata │ ├── Podfile │ ├── MiOrderJournyTrackingLibExample.xcodeproj │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── MiOrderJournyTrackingLibExample.xcscheme │ │ └── project.pbxproj │ └── Podfile.lock ├── app.json ├── android │ ├── app │ │ ├── debug.keystore │ │ ├── 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 │ │ │ │ │ │ └── example │ │ │ │ │ │ └── miorderjournytrackinglib │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ └── MainApplication.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── miorderjournytrackinglib │ │ │ │ └── ReactNativeFlipper.java │ │ ├── proguard-rules.pro │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── gradle.properties │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew ├── index.tsx ├── babel.config.js ├── scripts │ └── refresh.sh ├── package.json ├── .gitignore ├── metro.config.js └── src │ ├── style.ts │ └── App.tsx ├── babel.config.js ├── scripts ├── refresh.sh └── bootstrap.js ├── tsconfig.json ├── .gitignore ├── LICENSE ├── package.json ├── README.md └── CONTRIBUTING.md /src/__tests__/index.test.tsx: -------------------------------------------------------------------------------- 1 | it.todo('write a test'); 2 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "extends": "./tsconfig", 4 | "exclude": ["example"] 5 | } 6 | -------------------------------------------------------------------------------- /media/hire_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/media/hire_button.png -------------------------------------------------------------------------------- /media/vertical_gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/media/vertical_gif.gif -------------------------------------------------------------------------------- /media/horizontal_gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/media/horizontal_gif.gif -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | import OrderTrackList from './Components/OrderTrackList'; 2 | 3 | export default OrderTrackList; 4 | -------------------------------------------------------------------------------- /example/ios/File.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // MiOrderJournyTrackingLibExample 4 | // 5 | 6 | import Foundation 7 | -------------------------------------------------------------------------------- /media/order_track_example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/media/order_track_example.gif -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MiOrderJournyTrackingLibExample", 3 | "displayName": "MiOrderJournyTrackingLib Example" 4 | } 5 | -------------------------------------------------------------------------------- /example/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/debug.keystore -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | plugins: ['react-native-reanimated/plugin'], 4 | }; 5 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MiOrderJournyTrackingLib Example 3 | 4 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mindinventory/rn-order-tracking/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/index.tsx: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | 3 | import { name as appName } from './app.json'; 4 | import App from './src/App'; 5 | 6 | AppRegistry.registerComponent(appName, () => App); 7 | -------------------------------------------------------------------------------- /src/Components/Colors.ts: -------------------------------------------------------------------------------- 1 | export const colors = { 2 | progressBorderColor: '#999999', 3 | pendingColor: '#CCCCCC', 4 | completedColor: '#0F9D58', 5 | rippleAnimColor: '#999999', 6 | transparent: 'transparent', 7 | }; 8 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'MiOrderJournyTrackingLibExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | 5 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/Components/CommonStyle.ts: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | export const commonStyles = (circleView: number) => 4 | StyleSheet.create({ 5 | pendingHW: { 6 | height: circleView, 7 | width: circleView, 8 | }, 9 | inProgressHW: { 10 | height: circleView, 11 | width: circleView, 12 | }, 13 | completedHW: { 14 | height: circleView, 15 | width: circleView, 16 | }, 17 | }); 18 | -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const pak = require('../package.json'); 3 | 4 | module.exports = { 5 | presets: ['module:metro-react-native-babel-preset'], 6 | plugins: [ 7 | [ 8 | 'module-resolver', 9 | { 10 | extensions: ['.tsx', '.ts', '.js', '.json'], 11 | alias: { 12 | [pak.name]: path.join(__dirname, '..', pak.source), 13 | }, 14 | }, 15 | ], 16 | 'react-native-reanimated/plugin', 17 | ], 18 | }; 19 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/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 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /scripts/refresh.sh: -------------------------------------------------------------------------------- 1 | echo "START_CLEAR" 2 | rm -rf node_module 3 | echo "node_module removed" 4 | 5 | rm -rf android/build 6 | echo "android/build removed" 7 | 8 | rm -rf android/app/build 9 | echo "android/app/build removed" 10 | 11 | rm -rf ios/Pods/ 12 | echo "ios/Pods/ removed" 13 | 14 | rm -rf ios/Podfile.lock 15 | echo "ios/Podfile.lock removed" 16 | 17 | rm -rf android/.idea/ 18 | echo "android/.idea/ removed" 19 | 20 | echo "CLEAR_DONE - START_YARN" 21 | yarn 22 | echo "YARN_DONE - START_POD" 23 | npx pod-install --ios 24 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/miorderjournytrackinglib/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.miorderjournytrackinglib; 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. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "MiOrderJournyTrackingLibExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/scripts/refresh.sh: -------------------------------------------------------------------------------- 1 | echo "START_CLEAR" 2 | rm -rf node_module 3 | echo "node_module removed" 4 | 5 | rm -rf android/build 6 | echo "android/build removed" 7 | 8 | rm -rf android/app/build 9 | echo "android/app/build removed" 10 | 11 | rm -rf ios/Pods/ 12 | echo "ios/Pods/ removed" 13 | 14 | rm -rf ios/Podfile.lock 15 | echo "ios/Podfile.lock removed" 16 | 17 | rm -rf android/.idea/ 18 | echo "android/.idea/ removed" 19 | 20 | echo "CLEAR_DONE - START_YARN" 21 | yarn 22 | echo "YARN_DONE - START_POD" 23 | npx pod-install --ios 24 | -------------------------------------------------------------------------------- /src/Components/OrderTrackList.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import VerticalOrderTrackList from './Vertical/VerticalOrderTrackComponent'; 3 | import HorizontalOrderTrackList from './Horizontal/HorizontalOrderTrackComponent'; 4 | import type { OrderTrackProps } from './Interface'; 5 | 6 | const OrderTrackList = (props: OrderTrackProps) => { 7 | const { horizontal = false } = props; 8 | return ( 9 | <> 10 | {props && horizontal ? ( 11 | 12 | ) : ( 13 | 14 | )} 15 | 16 | ); 17 | }; 18 | 19 | export default OrderTrackList; 20 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/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 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "./", 4 | "paths": { 5 | "@mindinventory/order-tracking": ["./src/index"] 6 | }, 7 | "allowUnreachableCode": false, 8 | "allowUnusedLabels": false, 9 | "esModuleInterop": true, 10 | "importsNotUsedAsValues": "error", 11 | "forceConsistentCasingInFileNames": true, 12 | "jsx": "react", 13 | "lib": ["esnext"], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noFallthroughCasesInSwitch": true, 17 | "noImplicitReturns": true, 18 | "noImplicitUseStrict": false, 19 | "noStrictGenericChecks": false, 20 | "noUnusedLocals": true, 21 | "noUnusedParameters": true, 22 | "resolveJsonModule": true, 23 | "skipLibCheck": true, 24 | "strict": true, 25 | "target": "esnext" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@mindinventory/order-tracking-example", 3 | "description": "Example app for @mindinventory/order-tracking", 4 | "version": "0.0.1", 5 | "private": false, 6 | "scripts": { 7 | "android": "react-native run-android", 8 | "ios": "react-native run-ios", 9 | "start": "react-native start", 10 | "refresh": "bash ./scripts/refresh.sh" 11 | }, 12 | "dependencies": { 13 | "jetifier": "^2.0.0", 14 | "react": "16.13.1", 15 | "react-native": "0.68.0", 16 | "react-native-gesture-handler": "^2.9.0", 17 | "react-native-reanimated": "^3.8.1", 18 | "react-native-svg": "^12.3.0" 19 | }, 20 | "devDependencies": { 21 | "@babel/core": "^7.12.10", 22 | "@babel/runtime": "^7.12.5", 23 | "babel-plugin-module-resolver": "^4.0.0", 24 | "metro-react-native-babel-preset": "^0.64.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Components/ProgressRipple/style.ts: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import { colors } from '../Colors'; 3 | 4 | export const styles = StyleSheet.create({ 5 | ring: { 6 | borderRadius: 40, 7 | backgroundColor: colors.rippleAnimColor, 8 | }, 9 | container: { 10 | alignItems: 'center', 11 | justifyContent: 'center', 12 | borderWidth: 5, 13 | borderColor: colors.progressBorderColor, 14 | borderRadius: 15, 15 | backgroundColor: colors.transparent, 16 | }, 17 | }); 18 | 19 | export const containerStyles = (circleViewSize: number, rippleRadius: number) => 20 | StyleSheet.create({ 21 | containerHW: { 22 | width: circleViewSize, 23 | height: circleViewSize, 24 | }, 25 | ringHW: { 26 | width: circleViewSize + rippleRadius, 27 | height: circleViewSize + rippleRadius, 28 | }, 29 | }); 30 | -------------------------------------------------------------------------------- /src/Components/Vertical/style.ts: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import { colors } from '../Colors'; 3 | 4 | export const styles = StyleSheet.create({ 5 | trackContainer: { 6 | flexDirection: 'row', 7 | }, 8 | pendingView: { 9 | borderRadius: 15, 10 | backgroundColor: colors.pendingColor, 11 | }, 12 | inProgressView: { 13 | borderWidth: 5, 14 | borderColor: colors.progressBorderColor, 15 | borderRadius: 15, 16 | backgroundColor: colors.transparent, 17 | }, 18 | completedView: { 19 | borderRadius: 15, 20 | backgroundColor: colors.completedColor, 21 | }, 22 | verticalProgressContainer: { 23 | marginVertical: '1%', 24 | alignItems: 'center', 25 | }, 26 | greyPath: { 27 | position: 'absolute', 28 | }, 29 | renderItemContainer: { 30 | position: 'absolute', 31 | top: 0, 32 | paddingBottom: 30, 33 | }, 34 | }); 35 | -------------------------------------------------------------------------------- /scripts/bootstrap.js: -------------------------------------------------------------------------------- 1 | const os = require('os'); 2 | const path = require('path'); 3 | const child_process = require('child_process'); 4 | 5 | const root = path.resolve(__dirname, '..'); 6 | const args = process.argv.slice(2); 7 | const options = { 8 | cwd: process.cwd(), 9 | env: process.env, 10 | stdio: 'inherit', 11 | encoding: 'utf-8', 12 | }; 13 | 14 | if (os.type() === 'Windows_NT') { 15 | options.shell = true 16 | } 17 | 18 | let result; 19 | 20 | if (process.cwd() !== root || args.length) { 21 | // We're not in the root of the project, or additional arguments were passed 22 | // In this case, forward the command to `yarn` 23 | result = child_process.spawnSync('yarn', args, options); 24 | } else { 25 | // If `yarn` is run without arguments, perform bootstrap 26 | result = child_process.spawnSync('yarn', ['bootstrap'], options); 27 | } 28 | 29 | process.exitCode = result.status; 30 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '14.0' 5 | 6 | target 'MiOrderJournyTrackingLibExample' do 7 | config = use_native_modules! 8 | 9 | use_react_native!(:path => config["reactNativePath"]) 10 | 11 | # Enables Flipper. 12 | # 13 | # Note that if you have use_frameworks! enabled, Flipper will not work and 14 | # you should disable these next few lines. 15 | # use_flipper!({ 'Flipper' => '0.80.0' }) 16 | # post_install do |installer| 17 | # flipper_post_install(installer) 18 | # end 19 | post_install do |installer| 20 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 21 | installer.pods_project.targets.each do |target| 22 | target.build_configurations.each do |config| 23 | config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0' 24 | end 25 | end 26 | end 27 | 28 | end 29 | -------------------------------------------------------------------------------- /example/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 | 20 | android.useAndroidX=true 21 | android.enableJetifier=true 22 | FLIPPER_VERSION=0.54.0 23 | -------------------------------------------------------------------------------- /src/Components/Interface.ts: -------------------------------------------------------------------------------- 1 | import type { ReactElement } from 'react'; 2 | import type { StyleProp, ViewStyle } from 'react-native'; 3 | 4 | export interface OrderTrackProps { 5 | completedComponent?: () => ReactElement; 6 | completedIndex: number; 7 | completedViewStyle?: StyleProp; 8 | data: ReadonlyArray; 9 | enableRippleAnimation?: boolean; 10 | horizontal?: boolean; 11 | pendingComponent?: () => ReactElement; 12 | pendingViewStyle?: StyleProp; 13 | progressComponent?: () => ReactElement; 14 | progressViewStyle?: StyleProp; 15 | renderItem: ({ index, item }: { index: number; item: T }) => ReactElement; 16 | rippleDelay?: number; 17 | rippleDuration?: number; 18 | rippleRadius?: number; 19 | rippleStyle?: StyleProp; 20 | strokeCompletedColor?: string; 21 | strokeComponentWidth?: number; 22 | strokeContainerStyle?: StyleProp; 23 | strokeDuration?: number; 24 | strokeLength?: number; 25 | strokePendingColor?: string; 26 | strokeWidth?: number; 27 | } 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # XDE 6 | .expo/ 7 | 8 | # VSCode 9 | .vscode/ 10 | jsconfig.json 11 | 12 | # Xcode 13 | # 14 | build/ 15 | *.pbxuser 16 | !default.pbxuser 17 | *.mode1v3 18 | !default.mode1v3 19 | *.mode2v3 20 | !default.mode2v3 21 | *.perspectivev3 22 | !default.perspectivev3 23 | xcuserdata 24 | *.xccheckout 25 | *.moved-aside 26 | DerivedData 27 | *.hmap 28 | *.ipa 29 | *.xcuserstate 30 | project.xcworkspace 31 | 32 | # Android/IJ 33 | # 34 | .classpath 35 | .cxx 36 | .gradle 37 | .idea/ 38 | .project 39 | .settings 40 | local.properties 41 | android.iml 42 | 43 | # Cocoapods 44 | # 45 | example/ios/Pods 46 | 47 | # Ruby 48 | example/vendor/ 49 | example/node_modules/ 50 | example/yarn.lock 51 | example/package-lock.json 52 | 53 | # node.js 54 | # 55 | node_modules/ 56 | yarn.lock 57 | package-lock.json 58 | npm-debug.log 59 | yarn-debug.log 60 | yarn-error.log 61 | 62 | # BUCK 63 | buck-out/ 64 | \.buckd/ 65 | android/app/libs 66 | android/keystores/debug.keystore 67 | 68 | # Expo 69 | .expo/* 70 | 71 | # generated by bob 72 | lib/ 73 | OSX 74 | 75 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # XDE 6 | .expo/ 7 | 8 | # VSCode 9 | .vscode/ 10 | jsconfig.json 11 | 12 | # Xcode 13 | # 14 | build/ 15 | *.pbxuser 16 | !default.pbxuser 17 | *.mode1v3 18 | !default.mode1v3 19 | *.mode2v3 20 | !default.mode2v3 21 | *.perspectivev3 22 | !default.perspectivev3 23 | xcuserdata 24 | *.xccheckout 25 | *.moved-aside 26 | DerivedData 27 | *.hmap 28 | *.ipa 29 | *.xcuserstate 30 | project.xcworkspace 31 | 32 | # Android/IJ 33 | # 34 | .classpath 35 | .cxx 36 | .gradle 37 | .idea 38 | .project 39 | .settings 40 | local.properties 41 | android.iml 42 | 43 | # Cocoapods 44 | # 45 | example/ios/Pods 46 | 47 | # Ruby 48 | example/vendor/ 49 | example/node_modules/ 50 | example/yarn.lock 51 | example/package-lock.json 52 | 53 | # node.js 54 | # 55 | node_modules/ 56 | yarn.lock 57 | package-lock.json 58 | npm-debug.log 59 | yarn-debug.log 60 | yarn-error.log 61 | 62 | # BUCK 63 | buck-out/ 64 | \.buckd/ 65 | android/app/libs 66 | android/keystores/debug.keystore 67 | 68 | # Expo 69 | .expo/* 70 | 71 | # generated by bob 72 | lib/ 73 | OSX 74 | 75 | -------------------------------------------------------------------------------- /src/Components/Horizontal/style.ts: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | import { colors } from '../Colors'; 3 | export const styles = StyleSheet.create({ 4 | container: { 5 | flexDirection: 'row', 6 | alignSelf: 'center', 7 | }, 8 | renderItemContainer: { 9 | flexDirection: 'row', 10 | }, 11 | trackContainer: { 12 | flexDirection: 'row', 13 | alignItems: 'center', 14 | }, 15 | pendingView: { 16 | borderRadius: 15, 17 | backgroundColor: colors.pendingColor, 18 | }, 19 | inProgressView: { 20 | borderWidth: 5, 21 | borderColor: colors.progressBorderColor, 22 | borderRadius: 15, 23 | backgroundColor: colors.transparent, 24 | }, 25 | completedView: { 26 | borderRadius: 15, 27 | backgroundColor: colors.completedColor, 28 | }, 29 | horizontalProgressContainer: { 30 | justifyContent: 'center', 31 | marginHorizontal: 6, 32 | }, 33 | greyPath: { 34 | position: 'absolute', 35 | }, 36 | errorContainer: { flex: 1, alignItems: 'center', margin: 10 }, 37 | errorText: { fontSize: 20, lineHeight: 30, letterSpacing: 1.5 }, 38 | }); 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Mindinventory 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 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const blacklist = require('metro-config/src/defaults/exclusionList'); 3 | const escape = require('escape-string-regexp'); 4 | const pak = require('../package.json'); 5 | 6 | const root = path.resolve(__dirname, '..'); 7 | 8 | const modules = Object.keys({ 9 | ...pak.peerDependencies, 10 | }); 11 | 12 | module.exports = { 13 | projectRoot: __dirname, 14 | watchFolders: [root], 15 | 16 | // We need to make sure that only one version is loaded for peerDependencies 17 | // So we blacklist them at the root, and alias them to the versions in example's node_modules 18 | resolver: { 19 | blacklistRE: blacklist( 20 | modules.map( 21 | (m) => 22 | new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`) 23 | ) 24 | ), 25 | 26 | extraNodeModules: modules.reduce((acc, name) => { 27 | acc[name] = path.join(__dirname, 'node_modules', name); 28 | return acc; 29 | }, {}), 30 | }, 31 | 32 | transformer: { 33 | getTransformOptions: async () => ({ 34 | transform: { 35 | experimentalImportSupport: false, 36 | inlineRequires: true, 37 | }, 38 | }), 39 | }, 40 | }; 41 | -------------------------------------------------------------------------------- /src/Components/AnimatedStroke.tsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react'; 2 | import Animated, { 3 | Easing, 4 | useAnimatedProps, 5 | useSharedValue, 6 | withTiming, 7 | } from 'react-native-reanimated'; 8 | import { Path } from 'react-native-svg'; 9 | 10 | interface AnimatedStrokeProps { 11 | d: string; 12 | startAnimation: boolean; 13 | strokeColor?: string; 14 | strokeDuration?: number; 15 | strokeLength: number; 16 | strokeWidth?: number; 17 | } 18 | 19 | const AnimatedPath = Animated.createAnimatedComponent(Path); 20 | 21 | const AnimatedStroke = ({ 22 | d, 23 | startAnimation, 24 | strokeColor = 'black', 25 | strokeDuration = 1000, 26 | strokeLength, 27 | strokeWidth = 10, 28 | }: AnimatedStrokeProps) => { 29 | const progress = useSharedValue(0); 30 | 31 | useEffect(() => { 32 | if (startAnimation) { 33 | progress.value = withTiming(1, { 34 | duration: strokeDuration, 35 | easing: Easing.linear, 36 | }); 37 | } 38 | }, [progress, startAnimation, strokeDuration]); 39 | 40 | const strokeAnimation = useAnimatedProps(() => ({ 41 | strokeDashoffset: strokeLength - strokeLength * progress.value, 42 | })); 43 | 44 | return ( 45 | 52 | ); 53 | }; 54 | 55 | export default AnimatedStroke; 56 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext { 3 | minSdkVersion = 21 4 | compileSdkVersion = 33 5 | targetSdkVersion = 33 6 | } 7 | repositories { 8 | google() 9 | mavenCentral() 10 | jcenter() 11 | } 12 | dependencies { 13 | classpath("com.android.tools.build:gradle:3.5.3") 14 | 15 | // NOTE: Do not place your application dependencies here; they belong 16 | // in the individual module build.gradle files 17 | } 18 | } 19 | 20 | allprojects { 21 | repositories { 22 | mavenLocal() 23 | maven { 24 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 25 | url("$rootDir/../node_modules/react-native/android") 26 | } 27 | maven { 28 | // Android JSC is installed from npm 29 | url("$rootDir/../node_modules/jsc-android/dist") 30 | } 31 | 32 | google() 33 | mavenCentral() 34 | jcenter() 35 | maven { url 'https://www.jitpack.io' } 36 | exclusiveContent { 37 | // We get React Native's Android binaries exclusively through npm, 38 | // from a local Maven repo inside node_modules/react-native/. 39 | // (The use of exclusiveContent prevents looking elsewhere like Maven Central 40 | // and potentially getting a wrong version.) 41 | filter { 42 | includeGroup "com.facebook.react" 43 | } 44 | forRepository { 45 | maven { 46 | url "$rootDir/../node_modules/react-native/android" 47 | } 48 | } 49 | } 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | MiOrderJournyTrackingLib Example 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 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/Components/ProgressRipple/ProgressRipple.tsx: -------------------------------------------------------------------------------- 1 | import { View, Animated, StyleProp, ViewStyle } from 'react-native'; 2 | import React, { useCallback, useEffect, useRef } from 'react'; 3 | import { containerStyles, styles } from './style'; 4 | 5 | interface ProgressRippleViewProps { 6 | circleSize: number; 7 | rippleRadius?: number; 8 | rippleDuration?: number; 9 | rippleDelay?: number; 10 | progressViewStyle?: StyleProp; 11 | rippleStyle?: StyleProp; 12 | } 13 | 14 | const ProgressRippleView = (props: ProgressRippleViewProps) => { 15 | const { 16 | circleSize = 25, 17 | rippleRadius = 20, 18 | rippleDuration = 600, 19 | rippleDelay = 400, 20 | progressViewStyle, 21 | rippleStyle, 22 | } = props; 23 | const animation = useRef(new Animated.Value(0)).current; 24 | const opacityAnimation = animation.interpolate({ 25 | inputRange: [0, 1], 26 | outputRange: [1, 0], 27 | }); 28 | 29 | const animatePin = useCallback(() => { 30 | Animated.loop( 31 | Animated.sequence([ 32 | Animated.timing(animation, { 33 | toValue: 1, 34 | duration: rippleDuration, 35 | delay: rippleDelay, 36 | useNativeDriver: true, 37 | }), 38 | Animated.timing(animation, { 39 | toValue: 0, 40 | duration: 0, 41 | useNativeDriver: true, 42 | }), 43 | ]) 44 | ).start(); 45 | }, [animation, rippleDelay, rippleDuration]); 46 | 47 | useEffect(() => { 48 | animatePin(); 49 | }, [animatePin]); 50 | 51 | const scaleStyle = { 52 | transform: [ 53 | { 54 | scale: animation, 55 | }, 56 | ], 57 | opacity: opacityAnimation, 58 | }; 59 | 60 | return ( 61 | 68 | 76 | 77 | ); 78 | }; 79 | 80 | export default ProgressRippleView; 81 | -------------------------------------------------------------------------------- /example/src/style.ts: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from 'react-native'; 2 | 3 | const customWidth = 25; 4 | 5 | export const colors = { 6 | green: 'green', 7 | grey: 'grey', 8 | lGrey: 'lightgrey', 9 | orange: 'orange', 10 | primaryRed: '#E6758F', 11 | transparent: 'transparent', 12 | white: 'white', 13 | whiteSmoke: '#f5f5f5', 14 | }; 15 | 16 | export const styles = StyleSheet.create({ 17 | flex: { flex: 1, backgroundColor: colors.whiteSmoke }, 18 | header: { 19 | alignItems: 'center', 20 | backgroundColor: colors.primaryRed, 21 | height: 50, 22 | justifyContent: 'center', 23 | }, 24 | toggleContainer: { 25 | alignItems: 'center', 26 | flexDirection: 'row', 27 | justifyContent: 'space-between', 28 | marginHorizontal: 20, 29 | marginVertical: 20, 30 | }, 31 | toggleText: { fontSize: 20, fontWeight: '500' }, 32 | customRippleEffect: { 33 | backgroundColor: colors.green, 34 | }, 35 | pathMargin: { 36 | marginHorizontal: 4, 37 | }, 38 | customCompletedStyle: { 39 | backgroundColor: 'orange', 40 | borderRadius: 5, 41 | height: customWidth, 42 | width: customWidth, 43 | }, 44 | horizontalItemContainer: { flex: 1, marginStart: 10 }, 45 | headerTitle: { fontSize: 20, fontWeight: 'bold', color: colors.white }, 46 | container: { 47 | flex: 1, 48 | marginStart: 20, 49 | }, 50 | button: { 51 | backgroundColor: colors.lGrey, 52 | height: 40, 53 | marginHorizontal: 4, 54 | width: 40, 55 | }, 56 | buttonContainer: { 57 | flexDirection: 'row', 58 | justifyContent: 'center', 59 | marginTop: 100, 60 | }, 61 | buttonText: { fontSize: 30, textAlign: 'center' }, 62 | itemContainer: { 63 | marginHorizontal: 20, 64 | }, 65 | orderStatusText: { 66 | fontWeight: '600', 67 | letterSpacing: 1, 68 | marginTop: 3, 69 | }, 70 | orderDateText: { 71 | color: 'grey', 72 | letterSpacing: 0.5, 73 | marginTop: 4, 74 | }, 75 | completedView: { 76 | backgroundColor: colors.transparent, 77 | borderColor: colors.green, 78 | borderRadius: 15, 79 | borderWidth: 6, 80 | height: customWidth, 81 | width: customWidth, 82 | }, 83 | pendingView: { 84 | backgroundColor: colors.lGrey, 85 | borderRadius: 5, 86 | height: customWidth, 87 | width: customWidth, 88 | }, 89 | inProgressView: { 90 | backgroundColor: colors.orange, 91 | borderColor: colors.grey, 92 | borderRadius: 15, 93 | borderWidth: 6, 94 | height: customWidth, 95 | width: customWidth, 96 | }, 97 | }); 98 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/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 | #ifdef FB_SONARKIT_ENABLED 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | static void InitializeFlipper(UIApplication *application) { 22 | FlipperClient *client = [FlipperClient sharedClient]; 23 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 24 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 25 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 26 | [client addPlugin:[FlipperKitReactPlugin new]]; 27 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 28 | [client start]; 29 | } 30 | #endif 31 | 32 | @implementation AppDelegate 33 | 34 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 35 | { 36 | #ifdef FB_SONARKIT_ENABLED 37 | InitializeFlipper(application); 38 | #endif 39 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 40 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 41 | moduleName:@"MiOrderJournyTrackingLibExample" 42 | initialProperties:nil]; 43 | 44 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 45 | 46 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 47 | UIViewController *rootViewController = [UIViewController new]; 48 | rootViewController.view = rootView; 49 | self.window.rootViewController = rootViewController; 50 | [self.window makeKeyAndVisible]; 51 | return YES; 52 | } 53 | 54 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 55 | { 56 | #if DEBUG 57 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 58 | #else 59 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 60 | #endif 61 | } 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/miorderjournytrackinglib/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.miorderjournytrackinglib; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.ReactInstanceManager; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for MiOrderJournyTrackingLibExample: 28 | // packages.add(new MyReactNativePackage()); 29 | 30 | return packages; 31 | } 32 | 33 | @Override 34 | protected String getJSMainModuleName() { 35 | return "index"; 36 | } 37 | }; 38 | 39 | @Override 40 | public ReactNativeHost getReactNativeHost() { 41 | return mReactNativeHost; 42 | } 43 | 44 | @Override 45 | public void onCreate() { 46 | super.onCreate(); 47 | SoLoader.init(this, /* native exopackage */ false); 48 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); // Remove this line if you don't want Flipper enabled 49 | } 50 | 51 | /** 52 | * Loads Flipper in React Native templates. 53 | * 54 | * @param context 55 | */ 56 | private static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 57 | if (BuildConfig.DEBUG) { 58 | try { 59 | /* 60 | We use reflection here to pick up the class that initializes Flipper, 61 | since Flipper library is not available in release mode 62 | */ 63 | Class aClass = Class.forName("com.example.miorderjournytrackinglib.ReactNativeFlipper"); 64 | aClass 65 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 66 | .invoke(null, context, reactInstanceManager); 67 | } catch (ClassNotFoundException e) { 68 | e.printStackTrace(); 69 | } catch (NoSuchMethodException e) { 70 | e.printStackTrace(); 71 | } catch (IllegalAccessException e) { 72 | e.printStackTrace(); 73 | } catch (InvocationTargetException e) { 74 | e.printStackTrace(); 75 | } 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /example/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem http://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /example/android/app/src/debug/java/com/example/miorderjournytrackinglib/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.example.miorderjournytrackinglib; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 32 | client.addPlugin(new ReactFlipperPlugin()); 33 | client.addPlugin(new DatabasesFlipperPlugin(context)); 34 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 35 | client.addPlugin(CrashReporterPlugin.getInstance()); 36 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 37 | NetworkingModule.setCustomClientBuilder( 38 | new NetworkingModule.CustomClientBuilder() { 39 | @Override 40 | public void apply(OkHttpClient.Builder builder) { 41 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 42 | } 43 | }); 44 | client.addPlugin(networkFlipperPlugin); 45 | client.start(); 46 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 47 | // Hence we run if after all native modules have been initialized 48 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 49 | if (reactContext == null) { 50 | reactInstanceManager.addReactInstanceEventListener( 51 | new ReactInstanceManager.ReactInstanceEventListener() { 52 | @Override 53 | public void onReactContextInitialized(ReactContext reactContext) { 54 | reactInstanceManager.removeReactInstanceEventListener(this); 55 | reactContext.runOnNativeModulesQueueThread( 56 | new Runnable() { 57 | @Override 58 | public void run() { 59 | client.addPlugin(new FrescoFlipperPlugin()); 60 | } 61 | }); 62 | } 63 | }); 64 | } else { 65 | client.addPlugin(new FrescoFlipperPlugin()); 66 | } 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@mindinventory/order-tracking", 3 | "version": "1.0.2", 4 | "description": "Library used to integrate tracking view of orders", 5 | "main": "lib/commonjs/index", 6 | "module": "lib/module/index", 7 | "types": "lib/typescript/index.d.ts", 8 | "react-native": "src/index", 9 | "source": "src/index", 10 | "files": [ 11 | "src", 12 | "lib", 13 | "android", 14 | "ios", 15 | "cpp", 16 | "@mindinventory/order-tracking.podspec", 17 | "!lib/typescript/example", 18 | "!android/build", 19 | "!ios/build", 20 | "!**/__tests__", 21 | "!**/__fixtures__", 22 | "!**/__mocks__" 23 | ], 24 | "scripts": { 25 | "test": "jest", 26 | "typescript": "tsc --noEmit", 27 | "lint": "eslint \"**/*.{js,ts,tsx}\"", 28 | "prepare": "bob build", 29 | "release": "release-it", 30 | "example": "yarn --cwd example", 31 | "pods": "cd example && pod-install --quiet", 32 | "bootstrap": "yarn example && yarn && yarn pods", 33 | "refresh": "bash ./scripts/refresh.sh" 34 | }, 35 | "keywords": [ 36 | "react-native", 37 | "ios", 38 | "android", 39 | "order tracking", 40 | "order shipping", 41 | "tracking", 42 | "order", 43 | "delivery" 44 | ], 45 | "repository": "https://github.com/Mindinventory/rn-order-tracking", 46 | "author": "Mindinventory", 47 | "license": "MIT", 48 | "bugs": { 49 | "url": "https://github.com/Mindinventory/rn-order-tracking/issues" 50 | }, 51 | "homepage": "https://github.com/Mindinventory/rn-order-tracking#readme", 52 | "publishConfig": { 53 | "registry": "https://registry.npmjs.org/" 54 | }, 55 | "devDependencies": { 56 | "@commitlint/config-conventional": "^11.0.0", 57 | "@react-native-community/eslint-config": "^2.0.0", 58 | "@release-it/conventional-changelog": "^2.0.0", 59 | "@types/jest": "^26.0.0", 60 | "@types/react": "^16.9.19", 61 | "@types/react-native": "0.62.13", 62 | "commitlint": "^11.0.0", 63 | "eslint": "^7.2.0", 64 | "eslint-config-prettier": "^7.0.0", 65 | "eslint-plugin-prettier": "^3.1.3", 66 | "husky": "^6.0.0", 67 | "jest": "^26.0.1", 68 | "pod-install": "^0.1.0", 69 | "prettier": "^2.0.5", 70 | "react": "16.13.1", 71 | "react-native": "0.68.0", 72 | "react-native-builder-bob": "^0.18.0", 73 | "release-it": "^14.2.2", 74 | "typescript": "^4.1.3" 75 | }, 76 | "peerDependencies": { 77 | "react": "*", 78 | "react-native": "*" 79 | }, 80 | "jest": { 81 | "preset": "react-native", 82 | "modulePathIgnorePatterns": [ 83 | "/example/node_modules", 84 | "/lib/" 85 | ] 86 | }, 87 | "commitlint": { 88 | "extends": [ 89 | "@commitlint/config-conventional" 90 | ] 91 | }, 92 | "release-it": { 93 | "git": { 94 | "commitMessage": "chore: release ${version}", 95 | "tagName": "v${version}" 96 | }, 97 | "npm": { 98 | "publish": true 99 | }, 100 | "github": { 101 | "release": true 102 | }, 103 | "plugins": { 104 | "@release-it/conventional-changelog": { 105 | "preset": "angular" 106 | } 107 | } 108 | }, 109 | "eslintConfig": { 110 | "root": true, 111 | "extends": [ 112 | "@react-native-community", 113 | "prettier" 114 | ], 115 | "rules": { 116 | "prettier/prettier": [ 117 | "error", 118 | { 119 | "quoteProps": "consistent", 120 | "singleQuote": true, 121 | "tabWidth": 2, 122 | "trailingComma": "es5", 123 | "useTabs": false 124 | } 125 | ] 126 | } 127 | }, 128 | "eslintIgnore": [ 129 | "node_modules/", 130 | "lib/" 131 | ], 132 | "prettier": { 133 | "quoteProps": "consistent", 134 | "singleQuote": true, 135 | "tabWidth": 2, 136 | "trailingComma": "es5", 137 | "useTabs": false 138 | }, 139 | "react-native-builder-bob": { 140 | "source": "src", 141 | "output": "lib", 142 | "targets": [ 143 | "commonjs", 144 | "module", 145 | [ 146 | "typescript", 147 | { 148 | "project": "tsconfig.build.json" 149 | } 150 | ] 151 | ] 152 | }, 153 | "dependencies": { 154 | "react-native-gesture-handler": "^2.9.0", 155 | "react-native-reanimated": "^3.8.1", 156 | "react-native-svg": "^12.3.0" 157 | }, 158 | "resolutions": { 159 | "@types/react": "16.14.26" 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample.xcodeproj/xcshareddata/xcschemes/MiOrderJournyTrackingLibExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 81 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /example/src/App.tsx: -------------------------------------------------------------------------------- 1 | import OrderTrackList from '@mindinventory/order-tracking'; 2 | import React, { useState } from 'react'; 3 | 4 | import { 5 | View, 6 | Text, 7 | SafeAreaView, 8 | TouchableOpacity, 9 | Switch, 10 | } from 'react-native'; 11 | import { colors, styles } from './style'; 12 | 13 | export default function Vertical() { 14 | const [count, setCount] = useState(2); 15 | const [enableHorizontal, setEnableHorizontal] = useState(false); 16 | const customWidth = 25; 17 | 18 | const orderData = [ 19 | { 20 | status: 'Order Confirmed', 21 | date: `Tue, 28th Dec '21 - 1:47 PM`, 22 | }, 23 | { 24 | status: 'Shipped', 25 | date: `Thu, 30th Dec '21 - 1:30 AM`, 26 | }, 27 | { 28 | status: 'Out For Delivery', 29 | date: `Thu, 30th Dec '21 - 11:31 AM`, 30 | }, 31 | { 32 | status: 'Delivered', 33 | date: `Thu, 30th Dec '21 - 4:45 PM`, 34 | }, 35 | { 36 | status: 'Return', 37 | date: `Thu, 31st Dec '21 - 2:23 PM`, 38 | }, 39 | ]; 40 | 41 | const horizontalOrderData = [ 42 | { 43 | status: 'Order Confirmed', 44 | date: `Tue, 28th Dec '21 - 1:47 PM`, 45 | }, 46 | { 47 | status: 'Shipped', 48 | date: `Thu, 30th Dec '21 - 1:30 AM`, 49 | }, 50 | { 51 | status: 'Out For Delivery', 52 | date: `Thu, 30th Dec '21 - 11:31 AM`, 53 | }, 54 | { 55 | status: 'Delivered', 56 | date: `Thu, 30th Dec '21 - 4:45 PM`, 57 | }, 58 | ]; 59 | 60 | const renderOrderData = ({ 61 | item, 62 | index, 63 | }: { 64 | item: { status: string; date: string }; 65 | index: number; 66 | }) => { 67 | return ( 68 | 69 | {item.status} 70 | {item.date} 71 | 72 | ); 73 | }; 74 | 75 | const renderHorizontalOrderData = ({ 76 | item, 77 | index, 78 | }: { 79 | item: { status: string; date: string }; 80 | index: number; 81 | }) => { 82 | return ( 83 | 84 | {item.status} 85 | {item.date} 86 | 87 | ); 88 | }; 89 | 90 | const completedComponent = () => { 91 | return ; 92 | }; 93 | 94 | const pendingComponent = () => { 95 | return ; 96 | }; 97 | 98 | const progressComponent = () => { 99 | return ; 100 | }; 101 | 102 | const onCounterIncrement = () => { 103 | if (count < orderData.length) { 104 | setCount(count + 1); 105 | } 106 | }; 107 | 108 | const onCounterDecrement = () => { 109 | if (count > -1) { 110 | setCount(count - 1); 111 | } 112 | }; 113 | 114 | const toggleSwitch = () => { 115 | setEnableHorizontal(!enableHorizontal); 116 | }; 117 | return ( 118 | 119 | 120 | 121 | Order Track Component 122 | 123 | 124 | 125 | Toggle to {!enableHorizontal ? 'Horizontal' : 'Vertical'} 126 | 127 | 134 | 135 | {!enableHorizontal ? ( 136 | 137 | 150 | 151 | ) : ( 152 | 169 | )} 170 | 171 | 172 | 173 | - 174 | 175 | 176 | + 177 | 178 | 179 | 180 | 181 | ); 182 | } 183 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /src/Components/Vertical/VerticalOrderTrackComponent.tsx: -------------------------------------------------------------------------------- 1 | import { View } from 'react-native'; 2 | import React, { useEffect, useState } from 'react'; 3 | import Svg, { Path } from 'react-native-svg'; 4 | 5 | import { styles } from './style'; 6 | import { commonStyles } from '../CommonStyle'; 7 | import { colors } from '../Colors'; 8 | 9 | import AnimatedStroke from '../AnimatedStroke'; 10 | import ProgressRippleView from '../ProgressRipple/ProgressRipple'; 11 | import type { OrderTrackProps } from '../Interface'; 12 | 13 | const VerticalOrderTrackList = (props: OrderTrackProps) => { 14 | const { 15 | completedComponent = null, 16 | completedIndex = -1, 17 | completedViewStyle, 18 | data, 19 | enableRippleAnimation = true, 20 | pendingComponent = null, 21 | pendingViewStyle, 22 | progressComponent = null, 23 | progressViewStyle, 24 | renderItem, 25 | rippleDelay, 26 | rippleDuration, 27 | rippleRadius, 28 | rippleStyle, 29 | strokeCompletedColor = colors.completedColor, 30 | strokeComponentWidth = 25, 31 | strokeContainerStyle, 32 | strokeDuration = 1000, 33 | strokeLength = 50, 34 | strokePendingColor = colors.pendingColor, 35 | strokeWidth = 5, 36 | } = props; 37 | 38 | const [strokeAnimationIndex, setStrokeAnimationIndex] = useState(-1); 39 | 40 | const circleView = 25; 41 | const heightWidth = 42 | strokeComponentWidth > circleView ? strokeComponentWidth : circleView; 43 | const svgHeight = strokeLength < 50 ? 50 : strokeLength; 44 | 45 | useEffect(() => { 46 | if (strokeAnimationIndex > completedIndex) { 47 | setStrokeAnimationIndex(completedIndex); 48 | } 49 | }, [completedIndex, strokeAnimationIndex]); 50 | 51 | useEffect(() => { 52 | let timer: NodeJS.Timeout; 53 | if ( 54 | completedIndex !== -1 && 55 | completedIndex <= data.length && 56 | strokeAnimationIndex < completedIndex 57 | ) { 58 | let newStrokeAnimationIndex = strokeAnimationIndex + 1; 59 | timer = setTimeout( 60 | () => { 61 | setStrokeAnimationIndex(newStrokeAnimationIndex); 62 | }, 63 | newStrokeAnimationIndex !== 0 ? strokeDuration : newStrokeAnimationIndex 64 | ); 65 | } 66 | 67 | return () => { 68 | if (timer !== undefined) { 69 | clearTimeout(timer); 70 | } 71 | }; 72 | }, [completedIndex, data.length, strokeAnimationIndex, strokeDuration]); 73 | 74 | const completedView = () => { 75 | return completedComponent !== null ? ( 76 | completedComponent() 77 | ) : ( 78 | 85 | ); 86 | }; 87 | 88 | const progressView = () => { 89 | return progressComponent !== null ? ( 90 | progressComponent() 91 | ) : enableRippleAnimation ? ( 92 | 100 | ) : ( 101 | 108 | ); 109 | }; 110 | 111 | const pendingView = () => { 112 | return pendingComponent !== null ? ( 113 | pendingComponent() 114 | ) : ( 115 | 122 | ); 123 | }; 124 | 125 | const strokeView = (index: number) => { 126 | const d = `M 5 0 v ${svgHeight}`; 127 | return ( 128 | <> 129 | 138 | 139 | 140 | 141 | {completedIndex >= index ? ( 142 | 143 | 151 | 152 | ) : ( 153 | 154 | )} 155 | 156 | 157 | ); 158 | }; 159 | 160 | const isNotLastIndex = (index: number) => { 161 | return index !== props.data.length - 1; 162 | }; 163 | 164 | const trackView = (item: T, index: number) => { 165 | return ( 166 | 167 | 168 | {completedIndex !== -1 && completedIndex >= index 169 | ? strokeAnimationIndex >= index 170 | ? completedView() 171 | : pendingView() 172 | : completedIndex + 1 === index 173 | ? progressView() 174 | : pendingView()} 175 | 176 | 179 | {renderItem({ item: item, index: index })} 180 | 181 | 182 | {isNotLastIndex(index) ? strokeView(index) : null} 183 | 184 | ); 185 | }; 186 | 187 | return ( 188 | 189 | {data.map((item, index) => { 190 | return trackView(item, index); 191 | })} 192 | 193 | ); 194 | }; 195 | 196 | export default VerticalOrderTrackList; 197 | -------------------------------------------------------------------------------- /src/Components/Horizontal/HorizontalOrderTrackComponent.tsx: -------------------------------------------------------------------------------- 1 | import { Text, View } from 'react-native'; 2 | import React, { useEffect, useState } from 'react'; 3 | import Svg, { Path } from 'react-native-svg'; 4 | 5 | import { styles } from './style'; 6 | import { commonStyles } from '../CommonStyle'; 7 | import { colors } from '../Colors'; 8 | 9 | import AnimatedStroke from '../AnimatedStroke'; 10 | import ProgressRippleView from '../ProgressRipple/ProgressRipple'; 11 | import type { OrderTrackProps } from '../Interface'; 12 | 13 | const HorizontalOrderTrackList = (props: OrderTrackProps) => { 14 | const { 15 | completedIndex = -1, 16 | strokeDuration = 1000, 17 | strokeCompletedColor = colors.completedColor, 18 | strokePendingColor = colors.pendingColor, 19 | strokeWidth = 5, 20 | strokeLength = 50, 21 | strokeComponentWidth = 20, 22 | data, 23 | enableRippleAnimation = true, 24 | rippleRadius, 25 | rippleDuration, 26 | rippleDelay, 27 | completedViewStyle, 28 | pendingViewStyle, 29 | progressViewStyle, 30 | strokeContainerStyle, 31 | rippleStyle, 32 | renderItem, 33 | completedComponent = null, 34 | pendingComponent = null, 35 | progressComponent = null, 36 | } = props; 37 | 38 | const [strokeAnimationIndex, setStrokeAnimationIndex] = useState(-1); 39 | 40 | useEffect(() => { 41 | if (strokeAnimationIndex > completedIndex) { 42 | setStrokeAnimationIndex(completedIndex); 43 | } 44 | }, [completedIndex, strokeAnimationIndex]); 45 | 46 | useEffect(() => { 47 | let timer: NodeJS.Timeout; 48 | if ( 49 | completedIndex !== -1 && 50 | completedIndex <= data.length && 51 | strokeAnimationIndex < completedIndex 52 | ) { 53 | let newstrokeAnimationIndex = strokeAnimationIndex + 1; 54 | timer = setTimeout( 55 | () => { 56 | setStrokeAnimationIndex(newstrokeAnimationIndex); 57 | }, 58 | newstrokeAnimationIndex !== 0 ? strokeDuration : newstrokeAnimationIndex 59 | ); 60 | } 61 | return () => { 62 | if (timer !== undefined) { 63 | clearTimeout(timer); 64 | } 65 | }; 66 | }, [completedIndex, data.length, strokeAnimationIndex, strokeDuration]); 67 | 68 | const circleView = 20; 69 | const heightWidth = 70 | strokeComponentWidth > circleView ? strokeComponentWidth : circleView; 71 | 72 | const completedView = () => { 73 | return completedComponent !== null ? ( 74 | completedComponent() 75 | ) : ( 76 | 83 | ); 84 | }; 85 | 86 | const progressView = () => { 87 | return progressComponent !== null ? ( 88 | progressComponent() 89 | ) : enableRippleAnimation ? ( 90 | 98 | ) : ( 99 | 106 | ); 107 | }; 108 | 109 | const pendingView = () => { 110 | return pendingComponent !== null ? ( 111 | pendingComponent() 112 | ) : ( 113 | 120 | ); 121 | }; 122 | 123 | const strokeView = (index: number) => { 124 | const d = `M 0 5 h ${strokeLength}`; 125 | return ( 126 | <> 127 | 136 | 137 | 138 | 139 | {completedIndex >= index ? ( 140 | 141 | 149 | 150 | ) : ( 151 | 152 | )} 153 | 154 | 155 | ); 156 | }; 157 | 158 | const isNotLastIndex = (index: number) => { 159 | return index !== props.data.length - 1; 160 | }; 161 | 162 | const trackView = (index: number) => { 163 | return ( 164 | 165 | {completedIndex !== -1 && completedIndex >= index 166 | ? strokeAnimationIndex >= index 167 | ? completedView() 168 | : pendingView() 169 | : completedIndex + 1 === index 170 | ? progressView() 171 | : pendingView()} 172 | {isNotLastIndex(index) ? strokeView(index) : null} 173 | 174 | ); 175 | }; 176 | 177 | const ErrorView = () => { 178 | return ( 179 | 180 | 181 | For Horizontal Component data length cannot be more than 5 182 | 183 | 184 | ); 185 | }; 186 | 187 | return ( 188 | <> 189 | 190 | {data && data.length <= 5 191 | ? data.map((_, index) => { 192 | return trackView(index); 193 | }) 194 | : ErrorView()} 195 | 196 | 197 | {data && data.length <= 5 198 | ? data.map((item, index) => { 199 | return renderItem({ item: item, index: index }); 200 | }) 201 | : null} 202 | 203 | 204 | ); 205 | }; 206 | 207 | export default HorizontalOrderTrackList; 208 | -------------------------------------------------------------------------------- /example/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # @mindinventory/order-tracking 2 | 3 | With order track library you can easily integrate tracking view of library with all the customization in Horizontal & Vertical direction. 4 | 5 | ![order_track_example gif](/media/vertical_gif.gif) ![order_track_example gif](/media/horizontal_gif.gif) 6 | 7 | ## Installation 8 | 9 | Using yarn 10 | 11 | ```sh 12 | yarn add @mindinventory/order-tracking 13 | ``` 14 | 15 | Using npm 16 | 17 | ```sh 18 | npm i @mindinventory/order-tracking 19 | 20 | ``` 21 | 22 | ## Usage 23 | 24 | ```js 25 | import OrderTrackList from '@mindinventory/order-tracking'; 26 | 27 | // ... 28 | 29 | const orderData = [ 30 | { 31 | status: 'Order Confirmed', 32 | date: `Tue, 28th Dec '21 - 1:47 PM`, 33 | }, 34 | { 35 | status: 'Shipped', 36 | date: `Thu, 30th Dec '21 - 1:30 AM`, 37 | }, 38 | { 39 | status: 'Out For Delivery', 40 | date: `Thu, 30th Dec '21 - 11:31 AM`, 41 | }, 42 | { 43 | status: 'Delivered', 44 | date: `Thu, 30th Dec '21 - 4:45 PM`, 45 | }, 46 | { 47 | status: 'Return', 48 | date: `Thu, 31st Dec '21 - 2:23 PM`, 49 | }, 50 | ]; 51 | 52 | ; 57 | ``` 58 | 59 | ## Component props 60 | 61 | | Prop | Value | Required/Optional | Description | 62 | | --------------------- | -------- | ----------------- | ------------------------------------------------------------------------------------------------------------- | 63 | | data | array | _required_ | Array of your order status like: `ordered`, `delivered`, `return`, etc. | 64 | | renderItem | function | _required_ | Works similar like flatlist renderItem, to render your order status array. | 65 | | completedIndex | number | _required_ | Used for updating the completed order index animation. | 66 | | horizontal | boolean | _optional_ | Use for horizontal component view of Order track UI. | 67 | | strokePendingColor | string | _optional_ | Use for default stroke color. | 68 | | strokeCompletedColor | string | _optional_ | Use for order completed stroke color. | 69 | | strokeDuration | number | _optional_ | Use to specify duration of path animation in milliseconds `(default 1000 ms)`. | 70 | | strokeWidth | number | _optional_ | Use for set width of stroke `(default 5)`. | 71 | | strokeLength | number | _optional_ | Use for set length of stroke `(default 50)`. | 72 | | enableRippleAnimation | boolean | _optional_ | Use for enabling ripple effect animation in progress view `(default true)`. | 73 | | rippleRadius | number | _optional_ | Use for set radius of ripple effect. More the radius, more will be ripple effect outer circle `(default 20)`. | 74 | | rippleDuration | number | _optional_ | Use to specify duration of ripple effect in milliseconds `(default 600 ms)`. | 75 | | rippleDelay | number | _optional_ | Use to specify delay between two consecutive ripple effects animation in milliseconds `(default 400 ms)`. | 76 | | rippleStyle | style | _optional_ | Use to set custom style to ripple effect | 77 | | completedViewStyle | style | _optional_ | Use to set custom style to default completed order status view | 78 | | pendingViewStyle | style | _optional_ | Use to set custom style to default pending order status view | 79 | | progressViewStyle | style | _optional_ | Use to set custom style to default progress order status view | 80 | | strokeContainerStyle | style | _optional_ | Use to set custom style to animation path container | 81 | | strokeComponentWidth | number | _optional_ | Use to set width of custom component `(default 25 for vertical & 20 for Horizontal)`. | 82 | | completedComponent | function | _optional_ | Use to set custom completed order status view | 83 | | pendingComponent | function | _optional_ | Use to set custom pending order status view | 84 | | progressComponent | function | _optional_ | Use to set custom progress order status view | 85 | 86 | ## Dependencies 87 | 88 | - `react-native-svg` 89 | - `react-native-reanimated` 90 | - `react-native-gesture-handler` 91 | 92 | ## To run example 93 | 94 | ```sh 95 | Goto example directory and install all packages that requires. 96 | cd example && yarn 97 | Pod Installation: cd example && cd ios && pod install && cd .. 98 | To Run: yarn ios 99 | ``` 100 | 101 | ## Contributing! 102 | 103 | See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. 104 | 105 | ## License! 106 | 107 | @mindinventory/order-tracking [MIT-licensed](https://github.com/Mindinventory/rn-order-tracking/blob/master/LICENSE). 108 | 109 | # Let us know! 110 | 111 | If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventory.com 112 | 113 |

Please feel free to use this component and Let us know if you are interested to building Apps or Designing Products.

114 | 115 |
116 | 117 | 118 | app development 119 | 120 | -------------------------------------------------------------------------------- /example/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 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 22 | * bundleCommand: "ram-bundle", 23 | * 24 | * // whether to bundle JS and assets in debug mode 25 | * bundleInDebug: false, 26 | * 27 | * // whether to bundle JS and assets in release mode 28 | * bundleInRelease: true, 29 | * 30 | * // whether to bundle JS and assets in another build variant (if configured). 31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 32 | * // The configuration property can be in the following formats 33 | * // 'bundleIn${productFlavor}${buildType}' 34 | * // 'bundleIn${buildType}' 35 | * // bundleInFreeDebug: true, 36 | * // bundleInPaidRelease: true, 37 | * // bundleInBeta: true, 38 | * 39 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 40 | * // for MiOrderJournyTrackingLibExample: to disable dev mode in the staging build type (if configured) 41 | * devDisabledInStaging: true, 42 | * // The configuration property can be in the following formats 43 | * // 'devDisabledIn${productFlavor}${buildType}' 44 | * // 'devDisabledIn${buildType}' 45 | * 46 | * // the root of your project, i.e. where "package.json" lives 47 | * root: "../../", 48 | * 49 | * // where to put the JS bundle asset in debug mode 50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 51 | * 52 | * // where to put the JS bundle asset in release mode 53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 54 | * 55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 56 | * // require('./image.png')), in debug mode 57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 58 | * 59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 60 | * // require('./image.png')), in release mode 61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 62 | * 63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 67 | * // for MiOrderJournyTrackingLibExample, you might want to remove it from here. 68 | * inputExcludes: ["android/**", "ios/**"], 69 | * 70 | * // override which node gets called and with what additional arguments 71 | * nodeExecutableAndArgs: ["node"], 72 | * 73 | * // supply additional arguments to the packager 74 | * extraPackagerArgs: [] 75 | * ] 76 | */ 77 | 78 | project.ext.react = [ 79 | enableHermes: false, // clean and rebuild if changing 80 | entryFile: "index.tsx", 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | /** 101 | * The preferred build flavor of JavaScriptCore. 102 | * 103 | * For MiOrderJournyTrackingLibExample, to use the international variant, you can use: 104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 105 | * 106 | * The international variant includes ICU i18n library and necessary data 107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 108 | * give correct results when using with locales other than en-US. Note that 109 | * this variant is about 6MiB larger per architecture than default. 110 | */ 111 | def jscFlavor = 'org.webkit:android-jsc:+' 112 | 113 | /** 114 | * Whether to enable the Hermes VM. 115 | * 116 | * This should be set on project.ext.react and mirrored here. If it is not set 117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 118 | * and the benefits of using Hermes will therefore be sharply reduced. 119 | */ 120 | def enableHermes = project.ext.react.get("enableHermes", false); 121 | 122 | android { 123 | compileSdkVersion rootProject.ext.compileSdkVersion 124 | 125 | compileOptions { 126 | sourceCompatibility JavaVersion.VERSION_1_8 127 | targetCompatibility JavaVersion.VERSION_1_8 128 | } 129 | 130 | defaultConfig { 131 | applicationId "com.example.miorderjournytrackinglib" 132 | minSdkVersion rootProject.ext.minSdkVersion 133 | targetSdkVersion rootProject.ext.targetSdkVersion 134 | versionCode 1 135 | versionName "1.0" 136 | } 137 | splits { 138 | abi { 139 | reset() 140 | enable enableSeparateBuildPerCPUArchitecture 141 | universalApk false // If true, also generate a universal APK 142 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 143 | } 144 | } 145 | signingConfigs { 146 | debug { 147 | storeFile file('debug.keystore') 148 | storePassword 'android' 149 | keyAlias 'androiddebugkey' 150 | keyPassword 'android' 151 | } 152 | } 153 | buildTypes { 154 | debug { 155 | signingConfig signingConfigs.debug 156 | } 157 | release { 158 | // Caution! In production, you need to generate your own keystore file. 159 | // see https://reactnative.dev/docs/signed-apk-android. 160 | signingConfig signingConfigs.debug 161 | minifyEnabled enableProguardInReleaseBuilds 162 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 163 | } 164 | } 165 | // applicationVariants are e.g. debug, release 166 | applicationVariants.all { variant -> 167 | variant.outputs.each { output -> 168 | // For each separate APK per architecture, set a unique version code as described here: 169 | // https://developer.android.com/studio/build/configure-apk-splits.html 170 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 171 | def abi = output.getFilter(OutputFile.ABI) 172 | if (abi != null) { // null for the universal-debug, universal-release variants 173 | output.versionCodeOverride = 174 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 175 | } 176 | 177 | } 178 | } 179 | } 180 | 181 | dependencies { 182 | implementation fileTree(dir: "libs", include: ["*.jar"]) 183 | //noinspection GradleDynamicVersion 184 | implementation "com.facebook.react:react-native:+" // From node_modules 185 | 186 | 187 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 188 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 189 | exclude group:'com.facebook.fbjni' 190 | } 191 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 192 | exclude group:'com.facebook.flipper' 193 | exclude group:'com.squareup.okhttp3', module:'okhttp' 194 | } 195 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 196 | exclude group:'com.facebook.flipper' 197 | } 198 | 199 | if (enableHermes) { 200 | def hermesPath = "../../node_modules/hermes-engine/android/"; 201 | debugImplementation files(hermesPath + "hermes-debug.aar") 202 | releaseImplementation files(hermesPath + "hermes-release.aar") 203 | } else { 204 | implementation jscFlavor 205 | } 206 | 207 | } 208 | 209 | // Run this once to be able to run the application with BUCK 210 | // puts all compile dependencies into folder libs for BUCK to use 211 | task copyDownloadableDepsToLibs(type: Copy) { 212 | from configurations.compile 213 | into 'libs' 214 | } 215 | 216 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 217 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. 4 | 5 | ## Development workflow 6 | 7 | To get started with the project, run `yarn` in the root directory to install the required dependencies for each package: 8 | 9 | ```sh 10 | yarn 11 | ``` 12 | 13 | > While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development. 14 | 15 | While developing, you can run the [example app](/example/) to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app. 16 | 17 | To start the packager: 18 | 19 | ```sh 20 | yarn example start 21 | ``` 22 | 23 | To run the example app on Android: 24 | 25 | ```sh 26 | yarn example android 27 | ``` 28 | 29 | To run the example app on iOS: 30 | 31 | ```sh 32 | yarn example ios 33 | ``` 34 | 35 | To run the example app on Web: 36 | 37 | ```sh 38 | yarn example web 39 | ``` 40 | 41 | Make sure your code passes TypeScript and ESLint. Run the following to verify: 42 | 43 | ```sh 44 | yarn typescript 45 | yarn lint 46 | ``` 47 | 48 | To fix formatting errors, run the following: 49 | 50 | ```sh 51 | yarn lint --fix 52 | ``` 53 | 54 | Remember to add tests for your change if possible. Run the unit tests by: 55 | 56 | ```sh 57 | yarn test 58 | ``` 59 | 60 | ### Commit message convention 61 | 62 | We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages: 63 | 64 | - `fix`: bug fixes, e.g. fix crash due to deprecated method. 65 | - `feat`: new features, e.g. add new method to the module. 66 | - `refactor`: code refactor, e.g. migrate from class components to hooks. 67 | - `docs`: changes into documentation, e.g. add usage example for the module.. 68 | - `test`: adding or updating tests, e.g. add integration tests using detox. 69 | - `chore`: tooling changes, e.g. change CI config. 70 | 71 | Our pre-commit hooks verify that your commit message matches this format when committing. 72 | 73 | ### Linting and tests 74 | 75 | [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/) 76 | 77 | We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing. 78 | 79 | Our pre-commit hooks verify that the linter and tests pass when committing. 80 | 81 | ### Publishing to npm 82 | 83 | We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc. 84 | 85 | To publish new versions, run the following: 86 | 87 | ```sh 88 | yarn release 89 | ``` 90 | 91 | ### Scripts 92 | 93 | The `package.json` file contains various scripts for common tasks: 94 | 95 | - `yarn bootstrap`: setup project by installing all dependencies and pods. 96 | - `yarn typescript`: type-check files with TypeScript. 97 | - `yarn lint`: lint files with ESLint. 98 | - `yarn test`: run unit tests with Jest. 99 | - `yarn example start`: start the Metro server for the example app. 100 | - `yarn example android`: run the example app on Android. 101 | - `yarn example ios`: run the example app on iOS. 102 | 103 | ### Sending a pull request 104 | 105 | > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github). 106 | 107 | When you're sending a pull request: 108 | 109 | - Prefer small pull requests focused on one change. 110 | - Verify that linters and tests are passing. 111 | - Review the documentation to make sure it looks good. 112 | - Follow the pull request template when opening a pull request. 113 | - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue. 114 | 115 | ## Code of Conduct 116 | 117 | ### Our Pledge 118 | 119 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 120 | 121 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 122 | 123 | ### Our Standards 124 | 125 | Examples of behavior that contributes to a positive environment for our community include: 126 | 127 | - Demonstrating empathy and kindness toward other people 128 | - Being respectful of differing opinions, viewpoints, and experiences 129 | - Giving and gracefully accepting constructive feedback 130 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 131 | - Focusing on what is best not just for us as individuals, but for the overall community 132 | 133 | Examples of unacceptable behavior include: 134 | 135 | - The use of sexualized language or imagery, and sexual attention or 136 | advances of any kind 137 | - Trolling, insulting or derogatory comments, and personal or political attacks 138 | - Public or private harassment 139 | - Publishing others' private information, such as a physical or email 140 | address, without their explicit permission 141 | - Other conduct which could reasonably be considered inappropriate in a 142 | professional setting 143 | 144 | ### Enforcement Responsibilities 145 | 146 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 147 | 148 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 149 | 150 | ### Scope 151 | 152 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 153 | 154 | ### Enforcement 155 | 156 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly. 157 | 158 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 159 | 160 | ### Enforcement Guidelines 161 | 162 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: 163 | 164 | #### 1. Correction 165 | 166 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 167 | 168 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. 169 | 170 | #### 2. Warning 171 | 172 | **Community Impact**: A violation through a single incident or series of actions. 173 | 174 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. 175 | 176 | #### 3. Temporary Ban 177 | 178 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. 179 | 180 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. 181 | 182 | #### 4. Permanent Ban 183 | 184 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 185 | 186 | **Consequence**: A permanent ban from any sort of public interaction within the community. 187 | 188 | ### Attribution 189 | 190 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, 191 | available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 192 | 193 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). 194 | 195 | [homepage]: https://www.contributor-covenant.org 196 | 197 | For answers to common questions about this code of conduct, see the FAQ at 198 | https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. 199 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost (1.76.0) 3 | - DoubleConversion (1.1.6) 4 | - FBLazyVector (0.68.0) 5 | - FBReactNativeSpec (0.68.0): 6 | - RCT-Folly (= 2021.06.28.00-v2) 7 | - RCTRequired (= 0.68.0) 8 | - RCTTypeSafety (= 0.68.0) 9 | - React-Core (= 0.68.0) 10 | - React-jsi (= 0.68.0) 11 | - ReactCommon/turbomodule/core (= 0.68.0) 12 | - fmt (6.2.1) 13 | - glog (0.3.5) 14 | - RCT-Folly (2021.06.28.00-v2): 15 | - boost 16 | - DoubleConversion 17 | - fmt (~> 6.2.1) 18 | - glog 19 | - RCT-Folly/Default (= 2021.06.28.00-v2) 20 | - RCT-Folly/Default (2021.06.28.00-v2): 21 | - boost 22 | - DoubleConversion 23 | - fmt (~> 6.2.1) 24 | - glog 25 | - RCTRequired (0.68.0) 26 | - RCTTypeSafety (0.68.0): 27 | - FBLazyVector (= 0.68.0) 28 | - RCT-Folly (= 2021.06.28.00-v2) 29 | - RCTRequired (= 0.68.0) 30 | - React-Core (= 0.68.0) 31 | - React (0.68.0): 32 | - React-Core (= 0.68.0) 33 | - React-Core/DevSupport (= 0.68.0) 34 | - React-Core/RCTWebSocket (= 0.68.0) 35 | - React-RCTActionSheet (= 0.68.0) 36 | - React-RCTAnimation (= 0.68.0) 37 | - React-RCTBlob (= 0.68.0) 38 | - React-RCTImage (= 0.68.0) 39 | - React-RCTLinking (= 0.68.0) 40 | - React-RCTNetwork (= 0.68.0) 41 | - React-RCTSettings (= 0.68.0) 42 | - React-RCTText (= 0.68.0) 43 | - React-RCTVibration (= 0.68.0) 44 | - React-callinvoker (0.68.0) 45 | - React-Codegen (0.68.0): 46 | - FBReactNativeSpec (= 0.68.0) 47 | - RCT-Folly (= 2021.06.28.00-v2) 48 | - RCTRequired (= 0.68.0) 49 | - RCTTypeSafety (= 0.68.0) 50 | - React-Core (= 0.68.0) 51 | - React-jsi (= 0.68.0) 52 | - React-jsiexecutor (= 0.68.0) 53 | - ReactCommon/turbomodule/core (= 0.68.0) 54 | - React-Core (0.68.0): 55 | - glog 56 | - RCT-Folly (= 2021.06.28.00-v2) 57 | - React-Core/Default (= 0.68.0) 58 | - React-cxxreact (= 0.68.0) 59 | - React-jsi (= 0.68.0) 60 | - React-jsiexecutor (= 0.68.0) 61 | - React-perflogger (= 0.68.0) 62 | - Yoga 63 | - React-Core/CoreModulesHeaders (0.68.0): 64 | - glog 65 | - RCT-Folly (= 2021.06.28.00-v2) 66 | - React-Core/Default 67 | - React-cxxreact (= 0.68.0) 68 | - React-jsi (= 0.68.0) 69 | - React-jsiexecutor (= 0.68.0) 70 | - React-perflogger (= 0.68.0) 71 | - Yoga 72 | - React-Core/Default (0.68.0): 73 | - glog 74 | - RCT-Folly (= 2021.06.28.00-v2) 75 | - React-cxxreact (= 0.68.0) 76 | - React-jsi (= 0.68.0) 77 | - React-jsiexecutor (= 0.68.0) 78 | - React-perflogger (= 0.68.0) 79 | - Yoga 80 | - React-Core/DevSupport (0.68.0): 81 | - glog 82 | - RCT-Folly (= 2021.06.28.00-v2) 83 | - React-Core/Default (= 0.68.0) 84 | - React-Core/RCTWebSocket (= 0.68.0) 85 | - React-cxxreact (= 0.68.0) 86 | - React-jsi (= 0.68.0) 87 | - React-jsiexecutor (= 0.68.0) 88 | - React-jsinspector (= 0.68.0) 89 | - React-perflogger (= 0.68.0) 90 | - Yoga 91 | - React-Core/RCTActionSheetHeaders (0.68.0): 92 | - glog 93 | - RCT-Folly (= 2021.06.28.00-v2) 94 | - React-Core/Default 95 | - React-cxxreact (= 0.68.0) 96 | - React-jsi (= 0.68.0) 97 | - React-jsiexecutor (= 0.68.0) 98 | - React-perflogger (= 0.68.0) 99 | - Yoga 100 | - React-Core/RCTAnimationHeaders (0.68.0): 101 | - glog 102 | - RCT-Folly (= 2021.06.28.00-v2) 103 | - React-Core/Default 104 | - React-cxxreact (= 0.68.0) 105 | - React-jsi (= 0.68.0) 106 | - React-jsiexecutor (= 0.68.0) 107 | - React-perflogger (= 0.68.0) 108 | - Yoga 109 | - React-Core/RCTBlobHeaders (0.68.0): 110 | - glog 111 | - RCT-Folly (= 2021.06.28.00-v2) 112 | - React-Core/Default 113 | - React-cxxreact (= 0.68.0) 114 | - React-jsi (= 0.68.0) 115 | - React-jsiexecutor (= 0.68.0) 116 | - React-perflogger (= 0.68.0) 117 | - Yoga 118 | - React-Core/RCTImageHeaders (0.68.0): 119 | - glog 120 | - RCT-Folly (= 2021.06.28.00-v2) 121 | - React-Core/Default 122 | - React-cxxreact (= 0.68.0) 123 | - React-jsi (= 0.68.0) 124 | - React-jsiexecutor (= 0.68.0) 125 | - React-perflogger (= 0.68.0) 126 | - Yoga 127 | - React-Core/RCTLinkingHeaders (0.68.0): 128 | - glog 129 | - RCT-Folly (= 2021.06.28.00-v2) 130 | - React-Core/Default 131 | - React-cxxreact (= 0.68.0) 132 | - React-jsi (= 0.68.0) 133 | - React-jsiexecutor (= 0.68.0) 134 | - React-perflogger (= 0.68.0) 135 | - Yoga 136 | - React-Core/RCTNetworkHeaders (0.68.0): 137 | - glog 138 | - RCT-Folly (= 2021.06.28.00-v2) 139 | - React-Core/Default 140 | - React-cxxreact (= 0.68.0) 141 | - React-jsi (= 0.68.0) 142 | - React-jsiexecutor (= 0.68.0) 143 | - React-perflogger (= 0.68.0) 144 | - Yoga 145 | - React-Core/RCTSettingsHeaders (0.68.0): 146 | - glog 147 | - RCT-Folly (= 2021.06.28.00-v2) 148 | - React-Core/Default 149 | - React-cxxreact (= 0.68.0) 150 | - React-jsi (= 0.68.0) 151 | - React-jsiexecutor (= 0.68.0) 152 | - React-perflogger (= 0.68.0) 153 | - Yoga 154 | - React-Core/RCTTextHeaders (0.68.0): 155 | - glog 156 | - RCT-Folly (= 2021.06.28.00-v2) 157 | - React-Core/Default 158 | - React-cxxreact (= 0.68.0) 159 | - React-jsi (= 0.68.0) 160 | - React-jsiexecutor (= 0.68.0) 161 | - React-perflogger (= 0.68.0) 162 | - Yoga 163 | - React-Core/RCTVibrationHeaders (0.68.0): 164 | - glog 165 | - RCT-Folly (= 2021.06.28.00-v2) 166 | - React-Core/Default 167 | - React-cxxreact (= 0.68.0) 168 | - React-jsi (= 0.68.0) 169 | - React-jsiexecutor (= 0.68.0) 170 | - React-perflogger (= 0.68.0) 171 | - Yoga 172 | - React-Core/RCTWebSocket (0.68.0): 173 | - glog 174 | - RCT-Folly (= 2021.06.28.00-v2) 175 | - React-Core/Default (= 0.68.0) 176 | - React-cxxreact (= 0.68.0) 177 | - React-jsi (= 0.68.0) 178 | - React-jsiexecutor (= 0.68.0) 179 | - React-perflogger (= 0.68.0) 180 | - Yoga 181 | - React-CoreModules (0.68.0): 182 | - RCT-Folly (= 2021.06.28.00-v2) 183 | - RCTTypeSafety (= 0.68.0) 184 | - React-Codegen (= 0.68.0) 185 | - React-Core/CoreModulesHeaders (= 0.68.0) 186 | - React-jsi (= 0.68.0) 187 | - React-RCTImage (= 0.68.0) 188 | - ReactCommon/turbomodule/core (= 0.68.0) 189 | - React-cxxreact (0.68.0): 190 | - boost (= 1.76.0) 191 | - DoubleConversion 192 | - glog 193 | - RCT-Folly (= 2021.06.28.00-v2) 194 | - React-callinvoker (= 0.68.0) 195 | - React-jsi (= 0.68.0) 196 | - React-jsinspector (= 0.68.0) 197 | - React-logger (= 0.68.0) 198 | - React-perflogger (= 0.68.0) 199 | - React-runtimeexecutor (= 0.68.0) 200 | - React-jsi (0.68.0): 201 | - boost (= 1.76.0) 202 | - DoubleConversion 203 | - glog 204 | - RCT-Folly (= 2021.06.28.00-v2) 205 | - React-jsi/Default (= 0.68.0) 206 | - React-jsi/Default (0.68.0): 207 | - boost (= 1.76.0) 208 | - DoubleConversion 209 | - glog 210 | - RCT-Folly (= 2021.06.28.00-v2) 211 | - React-jsiexecutor (0.68.0): 212 | - DoubleConversion 213 | - glog 214 | - RCT-Folly (= 2021.06.28.00-v2) 215 | - React-cxxreact (= 0.68.0) 216 | - React-jsi (= 0.68.0) 217 | - React-perflogger (= 0.68.0) 218 | - React-jsinspector (0.68.0) 219 | - React-logger (0.68.0): 220 | - glog 221 | - React-perflogger (0.68.0) 222 | - React-RCTActionSheet (0.68.0): 223 | - React-Core/RCTActionSheetHeaders (= 0.68.0) 224 | - React-RCTAnimation (0.68.0): 225 | - RCT-Folly (= 2021.06.28.00-v2) 226 | - RCTTypeSafety (= 0.68.0) 227 | - React-Codegen (= 0.68.0) 228 | - React-Core/RCTAnimationHeaders (= 0.68.0) 229 | - React-jsi (= 0.68.0) 230 | - ReactCommon/turbomodule/core (= 0.68.0) 231 | - React-RCTBlob (0.68.0): 232 | - RCT-Folly (= 2021.06.28.00-v2) 233 | - React-Codegen (= 0.68.0) 234 | - React-Core/RCTBlobHeaders (= 0.68.0) 235 | - React-Core/RCTWebSocket (= 0.68.0) 236 | - React-jsi (= 0.68.0) 237 | - React-RCTNetwork (= 0.68.0) 238 | - ReactCommon/turbomodule/core (= 0.68.0) 239 | - React-RCTImage (0.68.0): 240 | - RCT-Folly (= 2021.06.28.00-v2) 241 | - RCTTypeSafety (= 0.68.0) 242 | - React-Codegen (= 0.68.0) 243 | - React-Core/RCTImageHeaders (= 0.68.0) 244 | - React-jsi (= 0.68.0) 245 | - React-RCTNetwork (= 0.68.0) 246 | - ReactCommon/turbomodule/core (= 0.68.0) 247 | - React-RCTLinking (0.68.0): 248 | - React-Codegen (= 0.68.0) 249 | - React-Core/RCTLinkingHeaders (= 0.68.0) 250 | - React-jsi (= 0.68.0) 251 | - ReactCommon/turbomodule/core (= 0.68.0) 252 | - React-RCTNetwork (0.68.0): 253 | - RCT-Folly (= 2021.06.28.00-v2) 254 | - RCTTypeSafety (= 0.68.0) 255 | - React-Codegen (= 0.68.0) 256 | - React-Core/RCTNetworkHeaders (= 0.68.0) 257 | - React-jsi (= 0.68.0) 258 | - ReactCommon/turbomodule/core (= 0.68.0) 259 | - React-RCTSettings (0.68.0): 260 | - RCT-Folly (= 2021.06.28.00-v2) 261 | - RCTTypeSafety (= 0.68.0) 262 | - React-Codegen (= 0.68.0) 263 | - React-Core/RCTSettingsHeaders (= 0.68.0) 264 | - React-jsi (= 0.68.0) 265 | - ReactCommon/turbomodule/core (= 0.68.0) 266 | - React-RCTText (0.68.0): 267 | - React-Core/RCTTextHeaders (= 0.68.0) 268 | - React-RCTVibration (0.68.0): 269 | - RCT-Folly (= 2021.06.28.00-v2) 270 | - React-Codegen (= 0.68.0) 271 | - React-Core/RCTVibrationHeaders (= 0.68.0) 272 | - React-jsi (= 0.68.0) 273 | - ReactCommon/turbomodule/core (= 0.68.0) 274 | - React-runtimeexecutor (0.68.0): 275 | - React-jsi (= 0.68.0) 276 | - ReactCommon/turbomodule/core (0.68.0): 277 | - DoubleConversion 278 | - glog 279 | - RCT-Folly (= 2021.06.28.00-v2) 280 | - React-callinvoker (= 0.68.0) 281 | - React-Core (= 0.68.0) 282 | - React-cxxreact (= 0.68.0) 283 | - React-jsi (= 0.68.0) 284 | - React-logger (= 0.68.0) 285 | - React-perflogger (= 0.68.0) 286 | - RNGestureHandler (2.9.0): 287 | - React-Core 288 | - RNReanimated (2.17.0): 289 | - DoubleConversion 290 | - FBLazyVector 291 | - FBReactNativeSpec 292 | - glog 293 | - RCT-Folly 294 | - RCTRequired 295 | - RCTTypeSafety 296 | - React-callinvoker 297 | - React-Core 298 | - React-Core/DevSupport 299 | - React-Core/RCTWebSocket 300 | - React-CoreModules 301 | - React-cxxreact 302 | - React-jsi 303 | - React-jsiexecutor 304 | - React-jsinspector 305 | - React-RCTActionSheet 306 | - React-RCTAnimation 307 | - React-RCTBlob 308 | - React-RCTImage 309 | - React-RCTLinking 310 | - React-RCTNetwork 311 | - React-RCTSettings 312 | - React-RCTText 313 | - ReactCommon/turbomodule/core 314 | - Yoga 315 | - RNSVG (12.5.1): 316 | - React-Core 317 | - Yoga (1.14.0) 318 | 319 | DEPENDENCIES: 320 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) 321 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 322 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 323 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 324 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 325 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 326 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 327 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 328 | - React (from `../node_modules/react-native/`) 329 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 330 | - React-Codegen (from `build/generated/ios`) 331 | - React-Core (from `../node_modules/react-native/`) 332 | - React-Core/DevSupport (from `../node_modules/react-native/`) 333 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 334 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 335 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 336 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 337 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 338 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 339 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`) 340 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 341 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 342 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 343 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 344 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 345 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 346 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 347 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 348 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 349 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 350 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 351 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 352 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 353 | - RNReanimated (from `../node_modules/react-native-reanimated`) 354 | - RNSVG (from `../node_modules/react-native-svg`) 355 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 356 | 357 | SPEC REPOS: 358 | trunk: 359 | - fmt 360 | 361 | EXTERNAL SOURCES: 362 | boost: 363 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" 364 | DoubleConversion: 365 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 366 | FBLazyVector: 367 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 368 | FBReactNativeSpec: 369 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 370 | glog: 371 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 372 | RCT-Folly: 373 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 374 | RCTRequired: 375 | :path: "../node_modules/react-native/Libraries/RCTRequired" 376 | RCTTypeSafety: 377 | :path: "../node_modules/react-native/Libraries/TypeSafety" 378 | React: 379 | :path: "../node_modules/react-native/" 380 | React-callinvoker: 381 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 382 | React-Codegen: 383 | :path: build/generated/ios 384 | React-Core: 385 | :path: "../node_modules/react-native/" 386 | React-CoreModules: 387 | :path: "../node_modules/react-native/React/CoreModules" 388 | React-cxxreact: 389 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 390 | React-jsi: 391 | :path: "../node_modules/react-native/ReactCommon/jsi" 392 | React-jsiexecutor: 393 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 394 | React-jsinspector: 395 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 396 | React-logger: 397 | :path: "../node_modules/react-native/ReactCommon/logger" 398 | React-perflogger: 399 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 400 | React-RCTActionSheet: 401 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 402 | React-RCTAnimation: 403 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 404 | React-RCTBlob: 405 | :path: "../node_modules/react-native/Libraries/Blob" 406 | React-RCTImage: 407 | :path: "../node_modules/react-native/Libraries/Image" 408 | React-RCTLinking: 409 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 410 | React-RCTNetwork: 411 | :path: "../node_modules/react-native/Libraries/Network" 412 | React-RCTSettings: 413 | :path: "../node_modules/react-native/Libraries/Settings" 414 | React-RCTText: 415 | :path: "../node_modules/react-native/Libraries/Text" 416 | React-RCTVibration: 417 | :path: "../node_modules/react-native/Libraries/Vibration" 418 | React-runtimeexecutor: 419 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 420 | ReactCommon: 421 | :path: "../node_modules/react-native/ReactCommon" 422 | RNGestureHandler: 423 | :path: "../node_modules/react-native-gesture-handler" 424 | RNReanimated: 425 | :path: "../node_modules/react-native-reanimated" 426 | RNSVG: 427 | :path: "../node_modules/react-native-svg" 428 | Yoga: 429 | :path: "../node_modules/react-native/ReactCommon/yoga" 430 | 431 | SPEC CHECKSUMS: 432 | boost: a7c83b31436843459a1961bfd74b96033dc77234 433 | DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 434 | FBLazyVector: d2fd875e2b24bbc350722df0df9d383cb891b9f2 435 | FBReactNativeSpec: 7493e074a31512df3253160059295264a84b8149 436 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 437 | glog: 476ee3e89abb49e07f822b48323c51c57124b572 438 | RCT-Folly: 4d8508a426467c48885f1151029bc15fa5d7b3b8 439 | RCTRequired: bab4a7c3d7eb9553b13773ee190f279712efd1fc 440 | RCTTypeSafety: efbeb6e450ff6cef8e19c2cb5314c6d8bfeeef77 441 | React: 28e4d45839b7d0fd9512af899e0379a17a5172ec 442 | React-callinvoker: 5585d1ef6795786f288690b19e08bed253c33155 443 | React-Codegen: 80ce98fda08a8ddb6f47116375ae2c1670bf8cda 444 | React-Core: 122639d111d791eb00c2bc8d678cfeec46671744 445 | React-CoreModules: 4dee89a87599055ca172e73924e27531eb4dd570 446 | React-cxxreact: 15728f254c7e3b94ac9d53c626bff554a7c42b10 447 | React-jsi: 4d135a7813ea815981b434ec37c6cfd8280b127b 448 | React-jsiexecutor: 010a66edf644339f6da72b34208b070089680415 449 | React-jsinspector: 90f0bfd5d04e0b066c29216a110ffb9a6c34f23f 450 | React-logger: 8474fefa09d05f573a13c044cb0dfd751d4e52e3 451 | React-perflogger: 15cb741d6c2379f4d3fc8f9e4d4e1110ef3020cb 452 | React-RCTActionSheet: ea9099db0597bd769430db1e2d011fd5fdb7fc5e 453 | React-RCTAnimation: 252df4749866f2654f37612f839522cac91c1165 454 | React-RCTBlob: ae9ea73c6f84685ad9cd8ba2275cce6eaa26699d 455 | React-RCTImage: 99ae69c73d31e7937cb250a4f470ae6a3f5d16e4 456 | React-RCTLinking: cff4ca5547612607ae29a5859b466410a58a920d 457 | React-RCTNetwork: 2783868d750a000d33a63bc3c3a140e6f812a735 458 | React-RCTSettings: 12fc409d5e337cda891058fe2fd1427fa23ab5e1 459 | React-RCTText: 6db924036c02a9fd98f30d9038756fafac17201c 460 | React-RCTVibration: 82fc52d3d96549b8c59a6c8c017d5a1a11457049 461 | React-runtimeexecutor: 9b1304f48e344c55bb3c36e13bf11461cb4da5d8 462 | ReactCommon: fab89a13b52f1ac42b59a0e4b4f76f21aea9eebe 463 | RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39 464 | RNReanimated: 1f117be601c59177816351a965bc57320b766c15 465 | RNSVG: d7d7bc8229af3842c9cfc3a723c815a52cdd1105 466 | Yoga: 6671cf077f614314c22fd09ddf87d7abeee64e96 467 | 468 | PODFILE CHECKSUM: 46d5f305a1c6d470c2933801607c5f26641c342e 469 | 470 | COCOAPODS: 1.12.1 471 | -------------------------------------------------------------------------------- /example/ios/MiOrderJournyTrackingLibExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 15 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2DCD954D1E0B4F2C00145EB5 /* MiOrderJournyTrackingLibExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.m */; }; 18 | 4842145ED814C41E4E1FDF68 /* libPods-MiOrderJournyTrackingLibExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0136E1C34E13F22436F57993 /* libPods-MiOrderJournyTrackingLibExample.a */; }; 19 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 28 | remoteInfo = MiOrderJournyTrackingLibExample; 29 | }; 30 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 35 | remoteInfo = "MiOrderJournyTrackingLibExample-tvOS"; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 41 | 00E356EE1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MiOrderJournyTrackingLibExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 00E356F21AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MiOrderJournyTrackingLibExampleTests.m; sourceTree = ""; }; 44 | 0136E1C34E13F22436F57993 /* libPods-MiOrderJournyTrackingLibExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MiOrderJournyTrackingLibExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 13B07F961A680F5B00A75B9A /* MiOrderJournyTrackingLibExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MiOrderJournyTrackingLibExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = MiOrderJournyTrackingLibExample/AppDelegate.h; sourceTree = ""; }; 47 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = MiOrderJournyTrackingLibExample/AppDelegate.m; sourceTree = ""; }; 48 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = MiOrderJournyTrackingLibExample/Images.xcassets; sourceTree = ""; }; 49 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = MiOrderJournyTrackingLibExample/Info.plist; sourceTree = ""; }; 50 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = MiOrderJournyTrackingLibExample/main.m; sourceTree = ""; }; 51 | 2D02E47B1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "MiOrderJournyTrackingLibExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 2D02E4901E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "MiOrderJournyTrackingLibExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 42F97513F89F4092763E90AF /* Pods-MiOrderJournyTrackingLibExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MiOrderJournyTrackingLibExample.debug.xcconfig"; path = "Target Support Files/Pods-MiOrderJournyTrackingLibExample/Pods-MiOrderJournyTrackingLibExample.debug.xcconfig"; sourceTree = ""; }; 54 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = MiOrderJournyTrackingLibExample/LaunchScreen.storyboard; sourceTree = ""; }; 55 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 56 | 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; }; 57 | F96785884DE6215E449F8F37 /* Pods-MiOrderJournyTrackingLibExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MiOrderJournyTrackingLibExample.release.xcconfig"; path = "Target Support Files/Pods-MiOrderJournyTrackingLibExample/Pods-MiOrderJournyTrackingLibExample.release.xcconfig"; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | 4842145ED814C41E4E1FDF68 /* libPods-MiOrderJournyTrackingLibExample.a in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | /* End PBXFrameworksBuildPhase section */ 91 | 92 | /* Begin PBXGroup section */ 93 | 00E356EF1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 00E356F21AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.m */, 97 | 00E356F01AD99517003FC87E /* Supporting Files */, 98 | ); 99 | path = MiOrderJournyTrackingLibExampleTests; 100 | sourceTree = ""; 101 | }; 102 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 00E356F11AD99517003FC87E /* Info.plist */, 106 | ); 107 | name = "Supporting Files"; 108 | sourceTree = ""; 109 | }; 110 | 13B07FAE1A68108700A75B9A /* MiOrderJournyTrackingLibExample */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 114 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 115 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 116 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 117 | 13B07FB61A68108700A75B9A /* Info.plist */, 118 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 119 | 13B07FB71A68108700A75B9A /* main.m */, 120 | ); 121 | name = MiOrderJournyTrackingLibExample; 122 | sourceTree = ""; 123 | }; 124 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 128 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 129 | 0136E1C34E13F22436F57993 /* libPods-MiOrderJournyTrackingLibExample.a */, 130 | ); 131 | name = Frameworks; 132 | sourceTree = ""; 133 | }; 134 | 6B9684456A2045ADE5A6E47E /* Pods */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 42F97513F89F4092763E90AF /* Pods-MiOrderJournyTrackingLibExample.debug.xcconfig */, 138 | F96785884DE6215E449F8F37 /* Pods-MiOrderJournyTrackingLibExample.release.xcconfig */, 139 | ); 140 | path = Pods; 141 | sourceTree = ""; 142 | }; 143 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | ); 147 | name = Libraries; 148 | sourceTree = ""; 149 | }; 150 | 83CBB9F61A601CBA00E9B192 = { 151 | isa = PBXGroup; 152 | children = ( 153 | 13B07FAE1A68108700A75B9A /* MiOrderJournyTrackingLibExample */, 154 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 155 | 00E356EF1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests */, 156 | 83CBBA001A601CBA00E9B192 /* Products */, 157 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 158 | 6B9684456A2045ADE5A6E47E /* Pods */, 159 | ); 160 | indentWidth = 2; 161 | sourceTree = ""; 162 | tabWidth = 2; 163 | usesTabs = 0; 164 | }; 165 | 83CBBA001A601CBA00E9B192 /* Products */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 13B07F961A680F5B00A75B9A /* MiOrderJournyTrackingLibExample.app */, 169 | 00E356EE1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.xctest */, 170 | 2D02E47B1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOS.app */, 171 | 2D02E4901E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOSTests.xctest */, 172 | ); 173 | name = Products; 174 | sourceTree = ""; 175 | }; 176 | /* End PBXGroup section */ 177 | 178 | /* Begin PBXNativeTarget section */ 179 | 00E356ED1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExampleTests" */; 182 | buildPhases = ( 183 | 00E356EA1AD99517003FC87E /* Sources */, 184 | 00E356EB1AD99517003FC87E /* Frameworks */, 185 | 00E356EC1AD99517003FC87E /* Resources */, 186 | ); 187 | buildRules = ( 188 | ); 189 | dependencies = ( 190 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 191 | ); 192 | name = MiOrderJournyTrackingLibExampleTests; 193 | productName = MiOrderJournyTrackingLibExampleTests; 194 | productReference = 00E356EE1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.xctest */; 195 | productType = "com.apple.product-type.bundle.unit-test"; 196 | }; 197 | 13B07F861A680F5B00A75B9A /* MiOrderJournyTrackingLibExample */ = { 198 | isa = PBXNativeTarget; 199 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExample" */; 200 | buildPhases = ( 201 | 5C11D060371CEA69787EE15D /* [CP] Check Pods Manifest.lock */, 202 | FD10A7F022414F080027D42C /* Start Packager */, 203 | 13B07F871A680F5B00A75B9A /* Sources */, 204 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 205 | 13B07F8E1A680F5B00A75B9A /* Resources */, 206 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 207 | 525C3AA93E5C0FE370E1F189 /* [CP] Copy Pods Resources */, 208 | ); 209 | buildRules = ( 210 | ); 211 | dependencies = ( 212 | ); 213 | name = MiOrderJournyTrackingLibExample; 214 | productName = MiOrderJournyTrackingLibExample; 215 | productReference = 13B07F961A680F5B00A75B9A /* MiOrderJournyTrackingLibExample.app */; 216 | productType = "com.apple.product-type.application"; 217 | }; 218 | 2D02E47A1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOS */ = { 219 | isa = PBXNativeTarget; 220 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExample-tvOS" */; 221 | buildPhases = ( 222 | FD10A7F122414F3F0027D42C /* Start Packager */, 223 | 2D02E4771E0B4A5D006451C7 /* Sources */, 224 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 225 | 2D02E4791E0B4A5D006451C7 /* Resources */, 226 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | ); 232 | name = "MiOrderJournyTrackingLibExample-tvOS"; 233 | productName = "MiOrderJournyTrackingLibExample-tvOS"; 234 | productReference = 2D02E47B1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOS.app */; 235 | productType = "com.apple.product-type.application"; 236 | }; 237 | 2D02E48F1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOSTests */ = { 238 | isa = PBXNativeTarget; 239 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExample-tvOSTests" */; 240 | buildPhases = ( 241 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 242 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 243 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 244 | ); 245 | buildRules = ( 246 | ); 247 | dependencies = ( 248 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 249 | ); 250 | name = "MiOrderJournyTrackingLibExample-tvOSTests"; 251 | productName = "MiOrderJournyTrackingLibExample-tvOSTests"; 252 | productReference = 2D02E4901E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOSTests.xctest */; 253 | productType = "com.apple.product-type.bundle.unit-test"; 254 | }; 255 | /* End PBXNativeTarget section */ 256 | 257 | /* Begin PBXProject section */ 258 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 259 | isa = PBXProject; 260 | attributes = { 261 | LastUpgradeCheck = 1130; 262 | TargetAttributes = { 263 | 00E356ED1AD99517003FC87E = { 264 | CreatedOnToolsVersion = 6.2; 265 | TestTargetID = 13B07F861A680F5B00A75B9A; 266 | }; 267 | 13B07F861A680F5B00A75B9A = { 268 | LastSwiftMigration = 1120; 269 | }; 270 | 2D02E47A1E0B4A5D006451C7 = { 271 | CreatedOnToolsVersion = 8.2.1; 272 | ProvisioningStyle = Automatic; 273 | }; 274 | 2D02E48F1E0B4A5D006451C7 = { 275 | CreatedOnToolsVersion = 8.2.1; 276 | ProvisioningStyle = Automatic; 277 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 278 | }; 279 | }; 280 | }; 281 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "MiOrderJournyTrackingLibExample" */; 282 | compatibilityVersion = "Xcode 3.2"; 283 | developmentRegion = en; 284 | hasScannedForEncodings = 0; 285 | knownRegions = ( 286 | en, 287 | Base, 288 | ); 289 | mainGroup = 83CBB9F61A601CBA00E9B192; 290 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 291 | projectDirPath = ""; 292 | projectRoot = ""; 293 | targets = ( 294 | 13B07F861A680F5B00A75B9A /* MiOrderJournyTrackingLibExample */, 295 | 00E356ED1AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests */, 296 | 2D02E47A1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOS */, 297 | 2D02E48F1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOSTests */, 298 | ); 299 | }; 300 | /* End PBXProject section */ 301 | 302 | /* Begin PBXResourcesBuildPhase section */ 303 | 00E356EC1AD99517003FC87E /* Resources */ = { 304 | isa = PBXResourcesBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | }; 310 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 311 | isa = PBXResourcesBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 315 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 316 | ); 317 | runOnlyForDeploymentPostprocessing = 0; 318 | }; 319 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 320 | isa = PBXResourcesBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 328 | isa = PBXResourcesBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | runOnlyForDeploymentPostprocessing = 0; 333 | }; 334 | /* End PBXResourcesBuildPhase section */ 335 | 336 | /* Begin PBXShellScriptBuildPhase section */ 337 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 338 | isa = PBXShellScriptBuildPhase; 339 | buildActionMask = 2147483647; 340 | files = ( 341 | ); 342 | inputPaths = ( 343 | ); 344 | name = "Bundle React Native code and images"; 345 | outputPaths = ( 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | shellPath = /bin/sh; 349 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 350 | }; 351 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 352 | isa = PBXShellScriptBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | inputPaths = ( 357 | ); 358 | name = "Bundle React Native Code And Images"; 359 | outputPaths = ( 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | shellPath = /bin/sh; 363 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 364 | }; 365 | 525C3AA93E5C0FE370E1F189 /* [CP] Copy Pods Resources */ = { 366 | isa = PBXShellScriptBuildPhase; 367 | buildActionMask = 2147483647; 368 | files = ( 369 | ); 370 | inputPaths = ( 371 | "${PODS_ROOT}/Target Support Files/Pods-MiOrderJournyTrackingLibExample/Pods-MiOrderJournyTrackingLibExample-resources.sh", 372 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 373 | ); 374 | name = "[CP] Copy Pods Resources"; 375 | outputPaths = ( 376 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 377 | ); 378 | runOnlyForDeploymentPostprocessing = 0; 379 | shellPath = /bin/sh; 380 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-MiOrderJournyTrackingLibExample/Pods-MiOrderJournyTrackingLibExample-resources.sh\"\n"; 381 | showEnvVarsInLog = 0; 382 | }; 383 | 5C11D060371CEA69787EE15D /* [CP] Check Pods Manifest.lock */ = { 384 | isa = PBXShellScriptBuildPhase; 385 | buildActionMask = 2147483647; 386 | files = ( 387 | ); 388 | inputFileListPaths = ( 389 | ); 390 | inputPaths = ( 391 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 392 | "${PODS_ROOT}/Manifest.lock", 393 | ); 394 | name = "[CP] Check Pods Manifest.lock"; 395 | outputFileListPaths = ( 396 | ); 397 | outputPaths = ( 398 | "$(DERIVED_FILE_DIR)/Pods-MiOrderJournyTrackingLibExample-checkManifestLockResult.txt", 399 | ); 400 | runOnlyForDeploymentPostprocessing = 0; 401 | shellPath = /bin/sh; 402 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 403 | showEnvVarsInLog = 0; 404 | }; 405 | FD10A7F022414F080027D42C /* Start Packager */ = { 406 | isa = PBXShellScriptBuildPhase; 407 | buildActionMask = 2147483647; 408 | files = ( 409 | ); 410 | inputFileListPaths = ( 411 | ); 412 | inputPaths = ( 413 | ); 414 | name = "Start Packager"; 415 | outputFileListPaths = ( 416 | ); 417 | outputPaths = ( 418 | ); 419 | runOnlyForDeploymentPostprocessing = 0; 420 | shellPath = /bin/sh; 421 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 422 | showEnvVarsInLog = 0; 423 | }; 424 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 425 | isa = PBXShellScriptBuildPhase; 426 | buildActionMask = 2147483647; 427 | files = ( 428 | ); 429 | inputFileListPaths = ( 430 | ); 431 | inputPaths = ( 432 | ); 433 | name = "Start Packager"; 434 | outputFileListPaths = ( 435 | ); 436 | outputPaths = ( 437 | ); 438 | runOnlyForDeploymentPostprocessing = 0; 439 | shellPath = /bin/sh; 440 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 441 | showEnvVarsInLog = 0; 442 | }; 443 | /* End PBXShellScriptBuildPhase section */ 444 | 445 | /* Begin PBXSourcesBuildPhase section */ 446 | 00E356EA1AD99517003FC87E /* Sources */ = { 447 | isa = PBXSourcesBuildPhase; 448 | buildActionMask = 2147483647; 449 | files = ( 450 | 00E356F31AD99517003FC87E /* MiOrderJournyTrackingLibExampleTests.m in Sources */, 451 | ); 452 | runOnlyForDeploymentPostprocessing = 0; 453 | }; 454 | 13B07F871A680F5B00A75B9A /* Sources */ = { 455 | isa = PBXSourcesBuildPhase; 456 | buildActionMask = 2147483647; 457 | files = ( 458 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 459 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 460 | ); 461 | runOnlyForDeploymentPostprocessing = 0; 462 | }; 463 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 464 | isa = PBXSourcesBuildPhase; 465 | buildActionMask = 2147483647; 466 | files = ( 467 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 468 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 469 | ); 470 | runOnlyForDeploymentPostprocessing = 0; 471 | }; 472 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 473 | isa = PBXSourcesBuildPhase; 474 | buildActionMask = 2147483647; 475 | files = ( 476 | 2DCD954D1E0B4F2C00145EB5 /* MiOrderJournyTrackingLibExampleTests.m in Sources */, 477 | ); 478 | runOnlyForDeploymentPostprocessing = 0; 479 | }; 480 | /* End PBXSourcesBuildPhase section */ 481 | 482 | /* Begin PBXTargetDependency section */ 483 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 484 | isa = PBXTargetDependency; 485 | target = 13B07F861A680F5B00A75B9A /* MiOrderJournyTrackingLibExample */; 486 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 487 | }; 488 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 489 | isa = PBXTargetDependency; 490 | target = 2D02E47A1E0B4A5D006451C7 /* MiOrderJournyTrackingLibExample-tvOS */; 491 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 492 | }; 493 | /* End PBXTargetDependency section */ 494 | 495 | /* Begin XCBuildConfiguration section */ 496 | 00E356F61AD99517003FC87E /* Debug */ = { 497 | isa = XCBuildConfiguration; 498 | buildSettings = { 499 | BUNDLE_LOADER = "$(TEST_HOST)"; 500 | GCC_PREPROCESSOR_DEFINITIONS = ( 501 | "DEBUG=1", 502 | "$(inherited)", 503 | ); 504 | INFOPLIST_FILE = MiOrderJournyTrackingLibExampleTests/Info.plist; 505 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 507 | OTHER_LDFLAGS = ( 508 | "-ObjC", 509 | "-lc++", 510 | "$(inherited)", 511 | ); 512 | PRODUCT_BUNDLE_IDENTIFIER = com.example.miorderjournytrackinglib; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MiOrderJournyTrackingLibExample.app/MiOrderJournyTrackingLibExample"; 515 | }; 516 | name = Debug; 517 | }; 518 | 00E356F71AD99517003FC87E /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | buildSettings = { 521 | BUNDLE_LOADER = "$(TEST_HOST)"; 522 | COPY_PHASE_STRIP = NO; 523 | INFOPLIST_FILE = MiOrderJournyTrackingLibExampleTests/Info.plist; 524 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 525 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 526 | OTHER_LDFLAGS = ( 527 | "-ObjC", 528 | "-lc++", 529 | "$(inherited)", 530 | ); 531 | PRODUCT_BUNDLE_IDENTIFIER = com.example.miorderjournytrackinglib; 532 | PRODUCT_NAME = "$(TARGET_NAME)"; 533 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MiOrderJournyTrackingLibExample.app/MiOrderJournyTrackingLibExample"; 534 | }; 535 | name = Release; 536 | }; 537 | 13B07F941A680F5B00A75B9A /* Debug */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 42F97513F89F4092763E90AF /* Pods-MiOrderJournyTrackingLibExample.debug.xcconfig */; 540 | buildSettings = { 541 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 542 | CLANG_ENABLE_MODULES = YES; 543 | CURRENT_PROJECT_VERSION = 1; 544 | ENABLE_BITCODE = NO; 545 | EXCLUDED_ARCHS = ""; 546 | INFOPLIST_FILE = MiOrderJournyTrackingLibExample/Info.plist; 547 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 548 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 549 | OTHER_LDFLAGS = ( 550 | "$(inherited)", 551 | "-ObjC", 552 | "-lc++", 553 | ); 554 | PRODUCT_BUNDLE_IDENTIFIER = com.example.miorderjournytrackinglib; 555 | PRODUCT_NAME = MiOrderJournyTrackingLibExample; 556 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 557 | SWIFT_VERSION = 5.0; 558 | VERSIONING_SYSTEM = "apple-generic"; 559 | }; 560 | name = Debug; 561 | }; 562 | 13B07F951A680F5B00A75B9A /* Release */ = { 563 | isa = XCBuildConfiguration; 564 | baseConfigurationReference = F96785884DE6215E449F8F37 /* Pods-MiOrderJournyTrackingLibExample.release.xcconfig */; 565 | buildSettings = { 566 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 567 | CLANG_ENABLE_MODULES = YES; 568 | CURRENT_PROJECT_VERSION = 1; 569 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; 570 | INFOPLIST_FILE = MiOrderJournyTrackingLibExample/Info.plist; 571 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 572 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 573 | OTHER_LDFLAGS = ( 574 | "$(inherited)", 575 | "-ObjC", 576 | "-lc++", 577 | ); 578 | PRODUCT_BUNDLE_IDENTIFIER = com.example.miorderjournytrackinglib; 579 | PRODUCT_NAME = MiOrderJournyTrackingLibExample; 580 | SWIFT_VERSION = 5.0; 581 | VERSIONING_SYSTEM = "apple-generic"; 582 | }; 583 | name = Release; 584 | }; 585 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 586 | isa = XCBuildConfiguration; 587 | buildSettings = { 588 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 589 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 590 | CLANG_ANALYZER_NONNULL = YES; 591 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 592 | CLANG_WARN_INFINITE_RECURSION = YES; 593 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 594 | DEBUG_INFORMATION_FORMAT = dwarf; 595 | ENABLE_TESTABILITY = YES; 596 | GCC_NO_COMMON_BLOCKS = YES; 597 | INFOPLIST_FILE = "MiOrderJournyTrackingLibExample-tvOS/Info.plist"; 598 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 599 | OTHER_LDFLAGS = ( 600 | "$(inherited)", 601 | "-ObjC", 602 | "-lc++", 603 | ); 604 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.MiOrderJournyTrackingLibExample-tvOS"; 605 | PRODUCT_NAME = "$(TARGET_NAME)"; 606 | SDKROOT = appletvos; 607 | TARGETED_DEVICE_FAMILY = 3; 608 | TVOS_DEPLOYMENT_TARGET = 10.0; 609 | }; 610 | name = Debug; 611 | }; 612 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 613 | isa = XCBuildConfiguration; 614 | buildSettings = { 615 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 616 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 617 | CLANG_ANALYZER_NONNULL = YES; 618 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 619 | CLANG_WARN_INFINITE_RECURSION = YES; 620 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 621 | COPY_PHASE_STRIP = NO; 622 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 623 | GCC_NO_COMMON_BLOCKS = YES; 624 | INFOPLIST_FILE = "MiOrderJournyTrackingLibExample-tvOS/Info.plist"; 625 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 626 | OTHER_LDFLAGS = ( 627 | "$(inherited)", 628 | "-ObjC", 629 | "-lc++", 630 | ); 631 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.MiOrderJournyTrackingLibExample-tvOS"; 632 | PRODUCT_NAME = "$(TARGET_NAME)"; 633 | SDKROOT = appletvos; 634 | TARGETED_DEVICE_FAMILY = 3; 635 | TVOS_DEPLOYMENT_TARGET = 10.0; 636 | }; 637 | name = Release; 638 | }; 639 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 640 | isa = XCBuildConfiguration; 641 | buildSettings = { 642 | BUNDLE_LOADER = "$(TEST_HOST)"; 643 | CLANG_ANALYZER_NONNULL = YES; 644 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 645 | CLANG_WARN_INFINITE_RECURSION = YES; 646 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 647 | DEBUG_INFORMATION_FORMAT = dwarf; 648 | ENABLE_TESTABILITY = YES; 649 | GCC_NO_COMMON_BLOCKS = YES; 650 | INFOPLIST_FILE = "MiOrderJournyTrackingLibExample-tvOSTests/Info.plist"; 651 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 652 | OTHER_LDFLAGS = ( 653 | "$(inherited)", 654 | "-ObjC", 655 | "-lc++", 656 | ); 657 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.MiOrderJournyTrackingLibExample-tvOSTests"; 658 | PRODUCT_NAME = "$(TARGET_NAME)"; 659 | SDKROOT = appletvos; 660 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MiOrderJournyTrackingLibExample-tvOS.app/MiOrderJournyTrackingLibExample-tvOS"; 661 | TVOS_DEPLOYMENT_TARGET = 10.1; 662 | }; 663 | name = Debug; 664 | }; 665 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 666 | isa = XCBuildConfiguration; 667 | buildSettings = { 668 | BUNDLE_LOADER = "$(TEST_HOST)"; 669 | CLANG_ANALYZER_NONNULL = YES; 670 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 671 | CLANG_WARN_INFINITE_RECURSION = YES; 672 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 673 | COPY_PHASE_STRIP = NO; 674 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 675 | GCC_NO_COMMON_BLOCKS = YES; 676 | INFOPLIST_FILE = "MiOrderJournyTrackingLibExample-tvOSTests/Info.plist"; 677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 678 | OTHER_LDFLAGS = ( 679 | "$(inherited)", 680 | "-ObjC", 681 | "-lc++", 682 | ); 683 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.MiOrderJournyTrackingLibExample-tvOSTests"; 684 | PRODUCT_NAME = "$(TARGET_NAME)"; 685 | SDKROOT = appletvos; 686 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MiOrderJournyTrackingLibExample-tvOS.app/MiOrderJournyTrackingLibExample-tvOS"; 687 | TVOS_DEPLOYMENT_TARGET = 10.1; 688 | }; 689 | name = Release; 690 | }; 691 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 692 | isa = XCBuildConfiguration; 693 | buildSettings = { 694 | ALWAYS_SEARCH_USER_PATHS = NO; 695 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 696 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 697 | CLANG_CXX_LIBRARY = "libc++"; 698 | CLANG_ENABLE_MODULES = YES; 699 | CLANG_ENABLE_OBJC_ARC = YES; 700 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 701 | CLANG_WARN_BOOL_CONVERSION = YES; 702 | CLANG_WARN_COMMA = YES; 703 | CLANG_WARN_CONSTANT_CONVERSION = YES; 704 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 705 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 706 | CLANG_WARN_EMPTY_BODY = YES; 707 | CLANG_WARN_ENUM_CONVERSION = YES; 708 | CLANG_WARN_INFINITE_RECURSION = YES; 709 | CLANG_WARN_INT_CONVERSION = YES; 710 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 711 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 712 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 713 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 714 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 715 | CLANG_WARN_STRICT_PROTOTYPES = YES; 716 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 717 | CLANG_WARN_UNREACHABLE_CODE = YES; 718 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 719 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 720 | COPY_PHASE_STRIP = NO; 721 | ENABLE_STRICT_OBJC_MSGSEND = YES; 722 | ENABLE_TESTABILITY = YES; 723 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; 724 | GCC_C_LANGUAGE_STANDARD = gnu99; 725 | GCC_DYNAMIC_NO_PIC = NO; 726 | GCC_NO_COMMON_BLOCKS = YES; 727 | GCC_OPTIMIZATION_LEVEL = 0; 728 | GCC_PREPROCESSOR_DEFINITIONS = ( 729 | "DEBUG=1", 730 | "$(inherited)", 731 | ); 732 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 733 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 734 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 735 | GCC_WARN_UNDECLARED_SELECTOR = YES; 736 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 737 | GCC_WARN_UNUSED_FUNCTION = YES; 738 | GCC_WARN_UNUSED_VARIABLE = YES; 739 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 740 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 741 | LIBRARY_SEARCH_PATHS = ( 742 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 743 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 744 | "\"$(inherited)\"", 745 | ); 746 | MTL_ENABLE_DEBUG_INFO = YES; 747 | ONLY_ACTIVE_ARCH = YES; 748 | SDKROOT = iphoneos; 749 | }; 750 | name = Debug; 751 | }; 752 | 83CBBA211A601CBA00E9B192 /* Release */ = { 753 | isa = XCBuildConfiguration; 754 | buildSettings = { 755 | ALWAYS_SEARCH_USER_PATHS = NO; 756 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 757 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 758 | CLANG_CXX_LIBRARY = "libc++"; 759 | CLANG_ENABLE_MODULES = YES; 760 | CLANG_ENABLE_OBJC_ARC = YES; 761 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 762 | CLANG_WARN_BOOL_CONVERSION = YES; 763 | CLANG_WARN_COMMA = YES; 764 | CLANG_WARN_CONSTANT_CONVERSION = YES; 765 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 766 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 767 | CLANG_WARN_EMPTY_BODY = YES; 768 | CLANG_WARN_ENUM_CONVERSION = YES; 769 | CLANG_WARN_INFINITE_RECURSION = YES; 770 | CLANG_WARN_INT_CONVERSION = YES; 771 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 772 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 773 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 774 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 775 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 776 | CLANG_WARN_STRICT_PROTOTYPES = YES; 777 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 778 | CLANG_WARN_UNREACHABLE_CODE = YES; 779 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 780 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 781 | COPY_PHASE_STRIP = YES; 782 | ENABLE_NS_ASSERTIONS = NO; 783 | ENABLE_STRICT_OBJC_MSGSEND = YES; 784 | GCC_C_LANGUAGE_STANDARD = gnu99; 785 | GCC_NO_COMMON_BLOCKS = YES; 786 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 787 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 788 | GCC_WARN_UNDECLARED_SELECTOR = YES; 789 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 790 | GCC_WARN_UNUSED_FUNCTION = YES; 791 | GCC_WARN_UNUSED_VARIABLE = YES; 792 | IPHONEOS_DEPLOYMENT_TARGET = 14.0; 793 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 794 | LIBRARY_SEARCH_PATHS = ( 795 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 796 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 797 | "\"$(inherited)\"", 798 | ); 799 | MTL_ENABLE_DEBUG_INFO = NO; 800 | SDKROOT = iphoneos; 801 | VALIDATE_PRODUCT = YES; 802 | }; 803 | name = Release; 804 | }; 805 | /* End XCBuildConfiguration section */ 806 | 807 | /* Begin XCConfigurationList section */ 808 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExampleTests" */ = { 809 | isa = XCConfigurationList; 810 | buildConfigurations = ( 811 | 00E356F61AD99517003FC87E /* Debug */, 812 | 00E356F71AD99517003FC87E /* Release */, 813 | ); 814 | defaultConfigurationIsVisible = 0; 815 | defaultConfigurationName = Release; 816 | }; 817 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExample" */ = { 818 | isa = XCConfigurationList; 819 | buildConfigurations = ( 820 | 13B07F941A680F5B00A75B9A /* Debug */, 821 | 13B07F951A680F5B00A75B9A /* Release */, 822 | ); 823 | defaultConfigurationIsVisible = 0; 824 | defaultConfigurationName = Release; 825 | }; 826 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExample-tvOS" */ = { 827 | isa = XCConfigurationList; 828 | buildConfigurations = ( 829 | 2D02E4971E0B4A5E006451C7 /* Debug */, 830 | 2D02E4981E0B4A5E006451C7 /* Release */, 831 | ); 832 | defaultConfigurationIsVisible = 0; 833 | defaultConfigurationName = Release; 834 | }; 835 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "MiOrderJournyTrackingLibExample-tvOSTests" */ = { 836 | isa = XCConfigurationList; 837 | buildConfigurations = ( 838 | 2D02E4991E0B4A5E006451C7 /* Debug */, 839 | 2D02E49A1E0B4A5E006451C7 /* Release */, 840 | ); 841 | defaultConfigurationIsVisible = 0; 842 | defaultConfigurationName = Release; 843 | }; 844 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "MiOrderJournyTrackingLibExample" */ = { 845 | isa = XCConfigurationList; 846 | buildConfigurations = ( 847 | 83CBBA201A601CBA00E9B192 /* Debug */, 848 | 83CBBA211A601CBA00E9B192 /* Release */, 849 | ); 850 | defaultConfigurationIsVisible = 0; 851 | defaultConfigurationName = Release; 852 | }; 853 | /* End XCConfigurationList section */ 854 | }; 855 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 856 | } 857 | --------------------------------------------------------------------------------