├── android ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values-night │ │ │ │ │ └── colors.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable │ │ │ │ │ ├── splashscreen.xml │ │ │ │ │ └── rn_edit_text_material.xml │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── jni │ │ │ │ ├── MainApplicationModuleProvider.h │ │ │ │ ├── OnLoad.cpp │ │ │ │ ├── MainApplicationModuleProvider.cpp │ │ │ │ ├── MainComponentsRegistry.h │ │ │ │ ├── MainApplicationTurboModuleManagerDelegate.h │ │ │ │ ├── MainApplicationTurboModuleManagerDelegate.cpp │ │ │ │ ├── Android.mk │ │ │ │ └── MainComponentsRegistry.cpp │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── gio_khimsho │ │ │ │ │ └── voicereader │ │ │ │ │ ├── newarchitecture │ │ │ │ │ ├── components │ │ │ │ │ │ └── MainComponentsRegistry.java │ │ │ │ │ ├── modules │ │ │ │ │ │ └── MainApplicationTurboModuleManagerDelegate.java │ │ │ │ │ └── MainApplicationReactNativeHost.java │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ └── AndroidManifest.xml │ │ └── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── gio_khimsho │ │ │ └── voicereader │ │ │ └── ReactNativeFlipper.java │ ├── debug.keystore │ ├── proguard-rules.pro │ ├── build_defs.bzl │ ├── BUCK │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle ├── gradle.properties ├── build.gradle ├── gradlew.bat └── gradlew ├── ios ├── Podfile.properties.json ├── voicereader │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── SplashScreen.imageset │ │ │ ├── image.png │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── App-Icon-20x20@1x.png │ │ │ ├── App-Icon-20x20@2x.png │ │ │ ├── App-Icon-20x20@3x.png │ │ │ ├── App-Icon-29x29@1x.png │ │ │ ├── App-Icon-29x29@2x.png │ │ │ ├── App-Icon-29x29@3x.png │ │ │ ├── App-Icon-40x40@1x.png │ │ │ ├── App-Icon-40x40@2x.png │ │ │ ├── App-Icon-40x40@3x.png │ │ │ ├── App-Icon-60x60@2x.png │ │ │ ├── App-Icon-60x60@3x.png │ │ │ ├── App-Icon-76x76@1x.png │ │ │ ├── App-Icon-76x76@2x.png │ │ │ ├── ItunesArtwork@2x.png │ │ │ ├── App-Icon-83.5x83.5@2x.png │ │ │ └── Contents.json │ │ └── SplashScreenBackground.imageset │ │ │ ├── image.png │ │ │ └── Contents.json │ ├── noop-file.swift │ ├── AppDelegate.h │ ├── main.m │ ├── voicereader.entitlements │ ├── Supporting │ │ └── Expo.plist │ ├── Info.plist │ ├── SplashScreen.storyboard │ └── AppDelegate.mm ├── voicereader.xcworkspace │ └── contents.xcworkspacedata ├── .gitignore ├── .xcode.env ├── Podfile ├── voicereader.xcodeproj │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── voicereader.xcscheme │ └── project.pbxproj └── Podfile.lock ├── assets ├── 1290.png ├── icon.png ├── splash.png ├── favicon.png └── adaptive-icon.png ├── tsconfig.json ├── .expo-shared └── assets.json ├── metro.config.js ├── .gitignore ├── babel.config.js ├── index.js ├── eas.json ├── README.md ├── src └── withBouncing.tsx ├── package.json ├── app.json └── App.tsx /android/app/src/main/res/values-night/colors.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/Podfile.properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo.jsEngine": "jsc" 3 | } 4 | -------------------------------------------------------------------------------- /assets/1290.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/assets/1290.png -------------------------------------------------------------------------------- /assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/assets/icon.png -------------------------------------------------------------------------------- /assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/assets/splash.png -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": {}, 3 | "extends": "expo/tsconfig.base" 4 | } 5 | -------------------------------------------------------------------------------- /assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/assets/favicon.png -------------------------------------------------------------------------------- /assets/adaptive-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/assets/adaptive-icon.png -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/debug.keystore -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "expo" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/voicereader/noop-file.swift: -------------------------------------------------------------------------------- 1 | // 2 | // @generated 3 | // A blank Swift file must be created for native modules with Swift files to work correctly. 4 | // 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/drawable-hdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/drawable-mdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/SplashScreen.imageset/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/SplashScreen.imageset/image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /.expo-shared/assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true, 3 | "40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true 4 | } 5 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | // Learn more https://docs.expo.io/guides/customizing-metro 2 | const { getDefaultConfig } = require('expo/metro-config'); 3 | 4 | module.exports = getDefaultConfig(__dirname); 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .expo/ 3 | dist/ 4 | npm-debug.* 5 | *.jks 6 | *.p8 7 | *.p12 8 | *.key 9 | *.mobileprovision 10 | *.orig.* 11 | web-build/ 12 | 13 | # macOS 14 | .DS_Store 15 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/splashscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (api) { 2 | api.cache(true); 3 | return { 4 | presets: ["babel-preset-expo"], 5 | plugins: ["react-native-reanimated/plugin"], 6 | }; 7 | }; 8 | -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/SplashScreenBackground.imageset/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/SplashScreenBackground.imageset/image.png -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4TWIGGERS/voice-reader/HEAD/ios/voicereader/Images.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/voicereader/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | #import 6 | 7 | @interface AppDelegate : EXAppDelegateWrapper 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /ios/voicereader/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | #ffffff 3 | #FFFFFF 4 | #023c69 5 | #ffffff 6 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Android/IntelliJ 6 | # 7 | build/ 8 | .idea 9 | .gradle 10 | local.properties 11 | *.iml 12 | *.hprof 13 | 14 | # BUCK 15 | buck-out/ 16 | \.buckd/ 17 | *.keystore 18 | !debug.keystore 19 | 20 | # Bundle artifacts 21 | *.jsbundle 22 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | voice-reader 3 | contain 4 | false 5 | -------------------------------------------------------------------------------- /ios/voicereader/voicereader.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ios/voicereader.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { registerRootComponent } from 'expo'; 2 | 3 | import App from './App'; 4 | 5 | // registerRootComponent calls AppRegistry.registerComponent('main', () => App); 6 | // It also ensures that whether you load the app in Expo Go or in a native build, 7 | // the environment is set up appropriately 8 | registerRootComponent(App); 9 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/jni/MainApplicationModuleProvider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | std::shared_ptr MainApplicationModuleProvider( 12 | const std::string moduleName, 13 | const JavaTurboModule::InitParams ¶ms); 14 | 15 | } // namespace react 16 | } // namespace facebook 17 | -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/SplashScreen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "image.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /eas.json: -------------------------------------------------------------------------------- 1 | { 2 | "cli": { 3 | "version": ">= 1.2.0" 4 | }, 5 | "build": { 6 | "development": { 7 | "developmentClient": true, 8 | "distribution": "internal", 9 | "ios": { 10 | "enterpriseProvisioning": "universal" 11 | } 12 | }, 13 | "preview": { 14 | "distribution": "internal" 15 | }, 16 | "production": {} 17 | }, 18 | "submit": { 19 | "production": {} 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/SplashScreenBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "image.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /android/app/src/main/jni/OnLoad.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "MainApplicationTurboModuleManagerDelegate.h" 3 | #include "MainComponentsRegistry.h" 4 | 5 | JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { 6 | return facebook::jni::initialize(vm, [] { 7 | facebook::react::MainApplicationTurboModuleManagerDelegate:: 8 | registerNatives(); 9 | facebook::react::MainComponentsRegistry::registerNatives(); 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | .xcode.env.local 25 | 26 | # Bundle artifacts 27 | *.jsbundle 28 | 29 | # CocoaPods 30 | /Pods/ 31 | -------------------------------------------------------------------------------- /ios/.xcode.env: -------------------------------------------------------------------------------- 1 | # This `.xcode.env` file is versioned and is used to source the environment 2 | # used when running script phases inside Xcode. 3 | # To customize your local environment, you can create an `.xcode.env.local` 4 | # file that is not versioned. 5 | 6 | # NODE_BINARY variable contains the PATH to the node executable. 7 | # 8 | # Customize the NODE_BINARY variable here. 9 | # For example, to use nvm with brew, add the following line 10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use 11 | export NODE_BINARY=$(command -v node) 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # voice-reader React-Native Expo 2 | 3 | https://user-images.githubusercontent.com/37814487/188575030-48337051-bf51-45db-847c-fdb4a17a3137.mov 4 | 5 | ## Install 6 | 7 | ```` 8 | yarn install && expo install && cd ios/ && pod install && cd .. 9 | ```` 10 | 11 | ## Development 12 | 13 | ### Ios 14 | ```` 15 | npx expo run:ios 16 | ```` 17 | 18 | ### Android 19 | ```` 20 | npx expo run:android 21 | ```` 22 | 23 | Or you could try to launch android from Android Studio. 24 | 25 | ### Metro bundler start 26 | ```` 27 | npx expo start --dev-client 28 | ```` 29 | -------------------------------------------------------------------------------- /ios/voicereader/Supporting/Expo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | EXUpdatesCheckOnLaunch 6 | ALWAYS 7 | EXUpdatesEnabled 8 | 9 | EXUpdatesLaunchWaitMs 10 | 0 11 | EXUpdatesSDKVersion 12 | 46.0.0 13 | EXUpdatesURL 14 | https://exp.host/@gio_khimsho/voice-reader 15 | 16 | -------------------------------------------------------------------------------- /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 | # react-native-reanimated 11 | -keep class com.swmansion.reanimated.** { *; } 12 | -keep class com.facebook.react.turbomodule.** { *; } 13 | 14 | # Add any project specific keep options here: 15 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /src/withBouncing.tsx: -------------------------------------------------------------------------------- 1 | import { defineAnimation } from "react-native-redash"; 2 | 3 | export const withBouncing = (velocity, lowerBound, upperBound) => { 4 | "worklet"; 5 | return defineAnimation(() => { 6 | "worklet"; 7 | const animation = (state, now) => { 8 | "worklet"; 9 | const { direction } = state; 10 | state.current += direction * velocity; 11 | if (state.current >= upperBound || state.current < lowerBound) { 12 | state.direction *= -1; 13 | } 14 | 15 | state.lastTimestamp = now; 16 | return false; 17 | }; 18 | const start = (state, _, now) => { 19 | "worklet"; 20 | state.current = lowerBound + Math.random() * upperBound; 21 | state.lastTimestamp = now; 22 | state.direction = 1; 23 | }; 24 | return { 25 | animation, 26 | start, 27 | }; 28 | }); 29 | }; 30 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "voice-reader", 3 | "version": "1.0.0", 4 | "scripts": { 5 | "start": "expo start --dev-client", 6 | "android": "expo run:android", 7 | "ios": "expo run:ios", 8 | "web": "expo start --web" 9 | }, 10 | "dependencies": { 11 | "@react-native-voice/voice": "^3.2.4", 12 | "@types/react": "~18.0.0", 13 | "@types/react-native": "~0.69.1", 14 | "expo": "~46.0.9", 15 | "expo-blur": "~11.2.0", 16 | "expo-dev-client": "~1.2.1", 17 | "expo-splash-screen": "~0.16.2", 18 | "expo-status-bar": "~1.4.0", 19 | "react": "18.0.0", 20 | "react-dom": "18.0.0", 21 | "react-native": "0.69.5", 22 | "react-native-reanimated": "^2.10.0", 23 | "react-native-web": "~0.18.7", 24 | "typescript": "^4.6.3" 25 | }, 26 | "devDependencies": { 27 | "@babel/core": "^7.12.9" 28 | }, 29 | "private": true 30 | } 31 | -------------------------------------------------------------------------------- /android/app/src/main/jni/MainApplicationModuleProvider.cpp: -------------------------------------------------------------------------------- 1 | #include "MainApplicationModuleProvider.h" 2 | 3 | #include 4 | 5 | namespace facebook { 6 | namespace react { 7 | 8 | std::shared_ptr MainApplicationModuleProvider( 9 | const std::string moduleName, 10 | const JavaTurboModule::InitParams ¶ms) { 11 | // Here you can provide your own module provider for TurboModules coming from 12 | // either your application or from external libraries. The approach to follow 13 | // is similar to the following (for a library called `samplelibrary`: 14 | // 15 | // auto module = samplelibrary_ModuleProvider(moduleName, params); 16 | // if (module != nullptr) { 17 | // return module; 18 | // } 19 | // return rncore_ModuleProvider(moduleName, params); 20 | return rncore_ModuleProvider(moduleName, params); 21 | } 22 | 23 | } // namespace react 24 | } // namespace facebook 25 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 17 | -------------------------------------------------------------------------------- /android/app/src/main/jni/MainComponentsRegistry.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | class MainComponentsRegistry 12 | : public facebook::jni::HybridClass { 13 | public: 14 | // Adapt it to the package you used for your Java class. 15 | constexpr static auto kJavaDescriptor = 16 | "Lcom/gio_khimsho/voicereader/newarchitecture/components/MainComponentsRegistry;"; 17 | 18 | static void registerNatives(); 19 | 20 | MainComponentsRegistry(ComponentFactory *delegate); 21 | 22 | private: 23 | static std::shared_ptr 24 | sharedProviderRegistry(); 25 | 26 | static jni::local_ref initHybrid( 27 | jni::alias_ref, 28 | ComponentFactory *delegate); 29 | }; 30 | 31 | } // namespace react 32 | } // namespace facebook 33 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'voice-reader' 2 | 3 | apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle"); 4 | useExpoModules() 5 | 6 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); 7 | applyNativeModulesSettingsGradle(settings) 8 | 9 | include ':app' 10 | includeBuild(new File(["node", "--print", "require.resolve('react-native-gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile()) 11 | 12 | if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { 13 | include(":ReactAndroid") 14 | project(":ReactAndroid").projectDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../ReactAndroid"); 15 | include(":ReactAndroid:hermes-engine") 16 | project(":ReactAndroid:hermes-engine").projectDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../ReactAndroid/hermes-engine"); 17 | } 18 | -------------------------------------------------------------------------------- /android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | #include 6 | 7 | namespace facebook { 8 | namespace react { 9 | 10 | class MainApplicationTurboModuleManagerDelegate 11 | : public jni::HybridClass< 12 | MainApplicationTurboModuleManagerDelegate, 13 | TurboModuleManagerDelegate> { 14 | public: 15 | // Adapt it to the package you used for your Java class. 16 | static constexpr auto kJavaDescriptor = 17 | "Lcom/gio_khimsho/voicereader/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; 18 | 19 | static jni::local_ref initHybrid(jni::alias_ref); 20 | 21 | static void registerNatives(); 22 | 23 | std::shared_ptr getTurboModule( 24 | const std::string name, 25 | const std::shared_ptr jsInvoker) override; 26 | std::shared_ptr getTurboModule( 27 | const std::string name, 28 | const JavaTurboModule::InitParams ¶ms) override; 29 | 30 | /** 31 | * Test-only method. Allows user to verify whether a TurboModule can be 32 | * created by instances of this class. 33 | */ 34 | bool canCreateTurboModule(std::string name); 35 | }; 36 | 37 | } // namespace react 38 | } // namespace facebook 39 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "name": "voice-reader", 4 | "slug": "voice-reader", 5 | "version": "1.0.0", 6 | "orientation": "portrait", 7 | "icon": "./assets/icon.png", 8 | "userInterfaceStyle": "light", 9 | "splash": { 10 | "image": "./assets/splash.png", 11 | "resizeMode": "contain", 12 | "backgroundColor": "#ffffff" 13 | }, 14 | "plugins": [ 15 | [ 16 | "@react-native-voice/voice", 17 | { 18 | "microphonePermission": "CUSTOM: Allow $(PRODUCT_NAME) to access the microphone", 19 | "speechRecognitionPermission": "CUSTOM: Allow $(PRODUCT_NAME) to securely recognize user speech" 20 | } 21 | ] 22 | ], 23 | "updates": { 24 | "fallbackToCacheTimeout": 0 25 | }, 26 | "assetBundlePatterns": ["**/*"], 27 | "ios": { 28 | "supportsTablet": true, 29 | "bundleIdentifier": "voice-render" 30 | }, 31 | "android": { 32 | "adaptiveIcon": { 33 | "foregroundImage": "./assets/adaptive-icon.png", 34 | "backgroundColor": "#FFFFFF" 35 | }, 36 | "package": "com.gio_khimsho.voicereader" 37 | }, 38 | "web": { 39 | "favicon": "./assets/favicon.png" 40 | }, 41 | "extra": { 42 | "eas": { 43 | "projectId": "ff74774f-0762-4cab-a6a4-d10defff7a92" 44 | } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gio_khimsho/voicereader/newarchitecture/components/MainComponentsRegistry.java: -------------------------------------------------------------------------------- 1 | package com.gio_khimsho.voicereader.newarchitecture.components; 2 | 3 | import com.facebook.jni.HybridData; 4 | import com.facebook.proguard.annotations.DoNotStrip; 5 | import com.facebook.react.fabric.ComponentFactory; 6 | import com.facebook.soloader.SoLoader; 7 | 8 | /** 9 | * Class responsible to load the custom Fabric Components. This class has native methods and needs a 10 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ 11 | * folder for you). 12 | * 13 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 14 | * `newArchEnabled` property). Is ignored otherwise. 15 | */ 16 | @DoNotStrip 17 | public class MainComponentsRegistry { 18 | static { 19 | SoLoader.loadLibrary("fabricjni"); 20 | } 21 | 22 | @DoNotStrip private final HybridData mHybridData; 23 | 24 | @DoNotStrip 25 | private native HybridData initHybrid(ComponentFactory componentFactory); 26 | 27 | @DoNotStrip 28 | private MainComponentsRegistry(ComponentFactory componentFactory) { 29 | mHybridData = initHybrid(componentFactory); 30 | } 31 | 32 | @DoNotStrip 33 | public static MainComponentsRegistry register(ComponentFactory componentFactory) { 34 | return new MainComponentsRegistry(componentFactory); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.gio_khimsho.voicereader", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.gio_khimsho.voicereader", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp: -------------------------------------------------------------------------------- 1 | #include "MainApplicationTurboModuleManagerDelegate.h" 2 | #include "MainApplicationModuleProvider.h" 3 | 4 | namespace facebook { 5 | namespace react { 6 | 7 | jni::local_ref 8 | MainApplicationTurboModuleManagerDelegate::initHybrid( 9 | jni::alias_ref) { 10 | return makeCxxInstance(); 11 | } 12 | 13 | void MainApplicationTurboModuleManagerDelegate::registerNatives() { 14 | registerHybrid({ 15 | makeNativeMethod( 16 | "initHybrid", MainApplicationTurboModuleManagerDelegate::initHybrid), 17 | makeNativeMethod( 18 | "canCreateTurboModule", 19 | MainApplicationTurboModuleManagerDelegate::canCreateTurboModule), 20 | }); 21 | } 22 | 23 | std::shared_ptr 24 | MainApplicationTurboModuleManagerDelegate::getTurboModule( 25 | const std::string name, 26 | const std::shared_ptr jsInvoker) { 27 | // Not implemented yet: provide pure-C++ NativeModules here. 28 | return nullptr; 29 | } 30 | 31 | std::shared_ptr 32 | MainApplicationTurboModuleManagerDelegate::getTurboModule( 33 | const std::string name, 34 | const JavaTurboModule::InitParams ¶ms) { 35 | return MainApplicationModuleProvider(name, params); 36 | } 37 | 38 | bool MainApplicationTurboModuleManagerDelegate::canCreateTurboModule( 39 | std::string name) { 40 | return getTurboModule(name, nullptr) != nullptr || 41 | getTurboModule(name, {.moduleName = name}) != nullptr; 42 | } 43 | 44 | } // namespace react 45 | } // namespace facebook 46 | -------------------------------------------------------------------------------- /android/app/src/main/jni/Android.mk: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(call my-dir) 2 | 3 | include $(REACT_ANDROID_DIR)/Android-prebuilt.mk 4 | 5 | # If you wish to add a custom TurboModule or Fabric component in your app you 6 | # will have to include the following autogenerated makefile. 7 | # include $(GENERATED_SRC_DIR)/codegen/jni/Android.mk 8 | include $(CLEAR_VARS) 9 | 10 | LOCAL_PATH := $(THIS_DIR) 11 | 12 | # You can customize the name of your application .so file here. 13 | LOCAL_MODULE := voicereader_appmodules 14 | 15 | LOCAL_C_INCLUDES := $(LOCAL_PATH) 16 | LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) 17 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) 18 | 19 | # If you wish to add a custom TurboModule or Fabric component in your app you 20 | # will have to uncomment those lines to include the generated source 21 | # files from the codegen (placed in $(GENERATED_SRC_DIR)/codegen/jni) 22 | # 23 | # LOCAL_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni 24 | # LOCAL_SRC_FILES += $(wildcard $(GENERATED_SRC_DIR)/codegen/jni/*.cpp) 25 | # LOCAL_EXPORT_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni 26 | 27 | # Here you should add any native library you wish to depend on. 28 | LOCAL_SHARED_LIBRARIES := \ 29 | libfabricjni \ 30 | libfbjni \ 31 | libfolly_runtime \ 32 | libglog \ 33 | libjsi \ 34 | libreact_codegen_rncore \ 35 | libreact_debug \ 36 | libreact_nativemodule_core \ 37 | libreact_render_componentregistry \ 38 | libreact_render_core \ 39 | libreact_render_debug \ 40 | libreact_render_graphics \ 41 | librrc_view \ 42 | libruntimeexecutor \ 43 | libturbomodulejsijni \ 44 | libyoga 45 | 46 | LOCAL_CFLAGS := -DLOG_TAG=\"ReactNative\" -fexceptions -frtti -std=c++17 -Wall 47 | 48 | include $(BUILD_SHARED_LIBRARY) 49 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") 2 | require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods") 3 | require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules") 4 | 5 | require 'json' 6 | podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {} 7 | 8 | platform :ios, podfile_properties['ios.deploymentTarget'] || '12.4' 9 | install! 'cocoapods', 10 | :deterministic_uuids => false 11 | 12 | target 'voicereader' do 13 | use_expo_modules! 14 | config = use_native_modules! 15 | 16 | use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] 17 | 18 | # Flags change depending on the env values. 19 | flags = get_default_flags() 20 | 21 | use_react_native!( 22 | :path => config[:reactNativePath], 23 | :hermes_enabled => flags[:hermes_enabled] || podfile_properties['expo.jsEngine'] == 'hermes', 24 | :fabric_enabled => flags[:fabric_enabled], 25 | # An absolute path to your application root. 26 | :app_path => "#{Dir.pwd}/.." 27 | ) 28 | 29 | # Uncomment to opt-in to using Flipper 30 | # Note that if you have use_frameworks! enabled, Flipper will not work 31 | # 32 | # if !ENV['CI'] 33 | # use_flipper!() 34 | # end 35 | 36 | post_install do |installer| 37 | react_native_post_install(installer) 38 | __apply_Xcode_12_5_M1_post_install_workaround(installer) 39 | end 40 | 41 | post_integrate do |installer| 42 | begin 43 | expo_patch_react_imports!(installer) 44 | rescue => e 45 | Pod::UI.warn e 46 | end 47 | end 48 | 49 | end 50 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/rn_edit_text_material.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 21 | 22 | 23 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gio_khimsho/voicereader/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java: -------------------------------------------------------------------------------- 1 | package com.gio_khimsho.voicereader.newarchitecture.modules; 2 | 3 | import com.facebook.jni.HybridData; 4 | import com.facebook.react.ReactPackage; 5 | import com.facebook.react.ReactPackageTurboModuleManagerDelegate; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.soloader.SoLoader; 8 | import java.util.List; 9 | 10 | /** 11 | * Class responsible to load the TurboModules. This class has native methods and needs a 12 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ 13 | * folder for you). 14 | * 15 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 16 | * `newArchEnabled` property). Is ignored otherwise. 17 | */ 18 | public class MainApplicationTurboModuleManagerDelegate 19 | extends ReactPackageTurboModuleManagerDelegate { 20 | 21 | private static volatile boolean sIsSoLibraryLoaded; 22 | 23 | protected MainApplicationTurboModuleManagerDelegate( 24 | ReactApplicationContext reactApplicationContext, List packages) { 25 | super(reactApplicationContext, packages); 26 | } 27 | 28 | protected native HybridData initHybrid(); 29 | 30 | native boolean canCreateTurboModule(String moduleName); 31 | 32 | public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder { 33 | protected MainApplicationTurboModuleManagerDelegate build( 34 | ReactApplicationContext context, List packages) { 35 | return new MainApplicationTurboModuleManagerDelegate(context, packages); 36 | } 37 | } 38 | 39 | @Override 40 | protected synchronized void maybeLoadOtherSoLibraries() { 41 | if (!sIsSoLibraryLoaded) { 42 | // If you change the name of your application .so file in the Android.mk file, 43 | // make sure you update the name here as well. 44 | SoLoader.loadLibrary("voicereader_appmodules"); 45 | sIsSoLibraryLoaded = true; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /android/app/src/main/jni/MainComponentsRegistry.cpp: -------------------------------------------------------------------------------- 1 | #include "MainComponentsRegistry.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace facebook { 9 | namespace react { 10 | 11 | MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {} 12 | 13 | std::shared_ptr 14 | MainComponentsRegistry::sharedProviderRegistry() { 15 | auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry(); 16 | 17 | // Custom Fabric Components go here. You can register custom 18 | // components coming from your App or from 3rd party libraries here. 19 | // 20 | // providerRegistry->add(concreteComponentDescriptorProvider< 21 | // AocViewerComponentDescriptor>()); 22 | return providerRegistry; 23 | } 24 | 25 | jni::local_ref 26 | MainComponentsRegistry::initHybrid( 27 | jni::alias_ref, 28 | ComponentFactory *delegate) { 29 | auto instance = makeCxxInstance(delegate); 30 | 31 | auto buildRegistryFunction = 32 | [](EventDispatcher::Weak const &eventDispatcher, 33 | ContextContainer::Shared const &contextContainer) 34 | -> ComponentDescriptorRegistry::Shared { 35 | auto registry = MainComponentsRegistry::sharedProviderRegistry() 36 | ->createComponentDescriptorRegistry( 37 | {eventDispatcher, contextContainer}); 38 | 39 | auto mutableRegistry = 40 | std::const_pointer_cast(registry); 41 | 42 | mutableRegistry->setFallbackComponentDescriptor( 43 | std::make_shared( 44 | ComponentDescriptorParameters{ 45 | eventDispatcher, contextContainer, nullptr})); 46 | 47 | return registry; 48 | }; 49 | 50 | delegate->buildRegistryFunction = buildRegistryFunction; 51 | return instance; 52 | } 53 | 54 | void MainComponentsRegistry::registerNatives() { 55 | registerHybrid({ 56 | makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid), 57 | }); 58 | } 59 | 60 | } // namespace react 61 | } // namespace facebook 62 | -------------------------------------------------------------------------------- /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: -Xmx512m -XX:MaxMetaspaceSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m 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 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | 25 | # Automatically convert third-party libraries to use AndroidX 26 | android.enableJetifier=true 27 | 28 | # Version of flipper SDK to use with React Native 29 | FLIPPER_VERSION=0.125.0 30 | 31 | # Use this property to specify which architecture you want to build. 32 | # You can also override it from the CLI using 33 | # ./gradlew -PreactNativeArchitectures=x86_64 34 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 35 | 36 | # Use this property to enable support to the new architecture. 37 | # This will allow you to use TurboModules and the Fabric render in 38 | # your application. You should enable this flag either if you want 39 | # to write custom TurboModules/Fabric components OR use libraries that 40 | # are providing them. 41 | newArchEnabled=false 42 | 43 | # The hosted JavaScript engine 44 | # Supported values: expo.jsEngine = "hermes" | "jsc" 45 | expo.jsEngine=jsc 46 | 47 | # Enable GIF support in React Native images (~200 B increase) 48 | expo.gif.enabled=true 49 | # Enable webp support in React Native images (~85 KB increase) 50 | expo.webp.enabled=true 51 | # Enable animated webp support (~3.4 MB increase) 52 | # Disabled by default because iOS doesn't support animated webp 53 | expo.webp.animated=false 54 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | import org.apache.tools.ant.taskdefs.condition.Os 2 | 3 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 4 | 5 | buildscript { 6 | ext { 7 | buildToolsVersion = findProperty('android.buildToolsVersion') ?: '31.0.0' 8 | minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21') 9 | compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '31') 10 | targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '31') 11 | if (findProperty('android.kotlinVersion')) { 12 | kotlinVersion = findProperty('android.kotlinVersion') 13 | } 14 | frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0' 15 | 16 | if (System.properties['os.arch'] == 'aarch64') { 17 | // For M1 Users we need to use the NDK 24 which added support for aarch64 18 | ndkVersion = '24.0.8215888' 19 | } else { 20 | // Otherwise we default to the side-by-side NDK version from AGP. 21 | ndkVersion = '21.4.7075529' 22 | } 23 | } 24 | repositories { 25 | google() 26 | mavenCentral() 27 | } 28 | dependencies { 29 | classpath('com.android.tools.build:gradle:7.1.1') 30 | classpath('com.facebook.react:react-native-gradle-plugin') 31 | classpath('de.undercouch:gradle-download-task:5.0.1') 32 | // NOTE: Do not place your application dependencies here; they belong 33 | // in the individual module build.gradle files 34 | } 35 | } 36 | 37 | allprojects { 38 | repositories { 39 | mavenLocal() 40 | maven { 41 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 42 | url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android')) 43 | } 44 | maven { 45 | // Android JSC is installed from npm 46 | url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist')) 47 | } 48 | 49 | google() 50 | mavenCentral { 51 | // We don't want to fetch react-native from Maven Central as there are 52 | // older versions over there. 53 | content { 54 | excludeGroup 'com.facebook.react' 55 | } 56 | } 57 | maven { url 'https://www.jitpack.io' } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /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 https://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 execute 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 execute 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 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /ios/voicereader/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "iphone", 5 | "size": "20x20", 6 | "scale": "2x", 7 | "filename": "App-Icon-20x20@2x.png" 8 | }, 9 | { 10 | "idiom": "iphone", 11 | "size": "20x20", 12 | "scale": "3x", 13 | "filename": "App-Icon-20x20@3x.png" 14 | }, 15 | { 16 | "idiom": "iphone", 17 | "size": "29x29", 18 | "scale": "1x", 19 | "filename": "App-Icon-29x29@1x.png" 20 | }, 21 | { 22 | "idiom": "iphone", 23 | "size": "29x29", 24 | "scale": "2x", 25 | "filename": "App-Icon-29x29@2x.png" 26 | }, 27 | { 28 | "idiom": "iphone", 29 | "size": "29x29", 30 | "scale": "3x", 31 | "filename": "App-Icon-29x29@3x.png" 32 | }, 33 | { 34 | "idiom": "iphone", 35 | "size": "40x40", 36 | "scale": "2x", 37 | "filename": "App-Icon-40x40@2x.png" 38 | }, 39 | { 40 | "idiom": "iphone", 41 | "size": "40x40", 42 | "scale": "3x", 43 | "filename": "App-Icon-40x40@3x.png" 44 | }, 45 | { 46 | "idiom": "iphone", 47 | "size": "60x60", 48 | "scale": "2x", 49 | "filename": "App-Icon-60x60@2x.png" 50 | }, 51 | { 52 | "idiom": "iphone", 53 | "size": "60x60", 54 | "scale": "3x", 55 | "filename": "App-Icon-60x60@3x.png" 56 | }, 57 | { 58 | "idiom": "ipad", 59 | "size": "20x20", 60 | "scale": "1x", 61 | "filename": "App-Icon-20x20@1x.png" 62 | }, 63 | { 64 | "idiom": "ipad", 65 | "size": "20x20", 66 | "scale": "2x", 67 | "filename": "App-Icon-20x20@2x.png" 68 | }, 69 | { 70 | "idiom": "ipad", 71 | "size": "29x29", 72 | "scale": "1x", 73 | "filename": "App-Icon-29x29@1x.png" 74 | }, 75 | { 76 | "idiom": "ipad", 77 | "size": "29x29", 78 | "scale": "2x", 79 | "filename": "App-Icon-29x29@2x.png" 80 | }, 81 | { 82 | "idiom": "ipad", 83 | "size": "40x40", 84 | "scale": "1x", 85 | "filename": "App-Icon-40x40@1x.png" 86 | }, 87 | { 88 | "idiom": "ipad", 89 | "size": "40x40", 90 | "scale": "2x", 91 | "filename": "App-Icon-40x40@2x.png" 92 | }, 93 | { 94 | "idiom": "ipad", 95 | "size": "76x76", 96 | "scale": "1x", 97 | "filename": "App-Icon-76x76@1x.png" 98 | }, 99 | { 100 | "idiom": "ipad", 101 | "size": "76x76", 102 | "scale": "2x", 103 | "filename": "App-Icon-76x76@2x.png" 104 | }, 105 | { 106 | "idiom": "ipad", 107 | "size": "83.5x83.5", 108 | "scale": "2x", 109 | "filename": "App-Icon-83.5x83.5@2x.png" 110 | }, 111 | { 112 | "idiom": "ios-marketing", 113 | "size": "1024x1024", 114 | "scale": "1x", 115 | "filename": "ItunesArtwork@2x.png" 116 | } 117 | ], 118 | "info": { 119 | "version": 1, 120 | "author": "expo" 121 | } 122 | } -------------------------------------------------------------------------------- /ios/voicereader/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSMicrophoneUsageDescription 6 | Description of why you require the use of the microphone 7 | NSSpeechRecognitionUsageDescription 8 | Description of why you require the use of the speech recognition 9 | CFBundleDevelopmentRegion 10 | $(DEVELOPMENT_LANGUAGE) 11 | CFBundleDisplayName 12 | voice-reader 13 | CFBundleExecutable 14 | $(EXECUTABLE_NAME) 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | $(PRODUCT_NAME) 21 | CFBundlePackageType 22 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 23 | CFBundleShortVersionString 24 | 1.0.0 25 | CFBundleSignature 26 | ???? 27 | CFBundleURLTypes 28 | 29 | 30 | CFBundleURLSchemes 31 | 32 | voice-render 33 | 34 | 35 | 36 | CFBundleURLSchemes 37 | 38 | exp+voice-reader 39 | 40 | 41 | 42 | CFBundleVersion 43 | 1 44 | LSRequiresIPhoneOS 45 | 46 | NSAppTransportSecurity 47 | 48 | NSAllowsArbitraryLoads 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | UILaunchStoryboardName 60 | SplashScreen 61 | UIRequiredDeviceCapabilities 62 | 63 | armv7 64 | 65 | UIRequiresFullScreen 66 | 67 | UIStatusBarStyle 68 | UIStatusBarStyleDefault 69 | UISupportedInterfaceOrientations 70 | 71 | UIInterfaceOrientationPortrait 72 | UIInterfaceOrientationPortraitUpsideDown 73 | 74 | UISupportedInterfaceOrientations~ipad 75 | 76 | UIInterfaceOrientationPortrait 77 | UIInterfaceOrientationPortraitUpsideDown 78 | UIInterfaceOrientationLandscapeLeft 79 | UIInterfaceOrientationLandscapeRight 80 | 81 | UIUserInterfaceStyle 82 | Light 83 | UIViewControllerBasedStatusBarAppearance 84 | 85 | 86 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gio_khimsho/voicereader/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.gio_khimsho.voicereader; 2 | 3 | import android.os.Build; 4 | import android.os.Bundle; 5 | 6 | import com.facebook.react.ReactActivity; 7 | import com.facebook.react.ReactActivityDelegate; 8 | import com.facebook.react.ReactRootView; 9 | 10 | import expo.modules.ReactActivityDelegateWrapper; 11 | 12 | public class MainActivity extends ReactActivity { 13 | @Override 14 | protected void onCreate(Bundle savedInstanceState) { 15 | // Set the theme to AppTheme BEFORE onCreate to support 16 | // coloring the background, status bar, and navigation bar. 17 | // This is required for expo-splash-screen. 18 | setTheme(R.style.AppTheme); 19 | super.onCreate(null); 20 | } 21 | 22 | /** 23 | * Returns the name of the main component registered from JavaScript. 24 | * This is used to schedule rendering of the component. 25 | */ 26 | @Override 27 | protected String getMainComponentName() { 28 | return "main"; 29 | } 30 | 31 | /** 32 | * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and 33 | * you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer 34 | * (Paper). 35 | */ 36 | @Override 37 | protected ReactActivityDelegate createReactActivityDelegate() { 38 | return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, 39 | new MainActivityDelegate(this, getMainComponentName()) 40 | ); 41 | } 42 | 43 | /** 44 | * Align the back button behavior with Android S 45 | * where moving root activities to background instead of finishing activities. 46 | * @see onBackPressed 47 | */ 48 | @Override 49 | public void invokeDefaultOnBackPressed() { 50 | if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) { 51 | if (!moveTaskToBack(false)) { 52 | // For non-root activities, use the default implementation to finish them. 53 | super.invokeDefaultOnBackPressed(); 54 | } 55 | return; 56 | } 57 | 58 | // Use the default back button implementation on Android S 59 | // because it's doing more than {@link Activity#moveTaskToBack} in fact. 60 | super.invokeDefaultOnBackPressed(); 61 | } 62 | 63 | public static class MainActivityDelegate extends ReactActivityDelegate { 64 | public MainActivityDelegate(ReactActivity activity, String mainComponentName) { 65 | super(activity, mainComponentName); 66 | } 67 | 68 | @Override 69 | protected ReactRootView createRootView() { 70 | ReactRootView reactRootView = new ReactRootView(getContext()); 71 | // If you opted-in for the New Architecture, we enable the Fabric Renderer. 72 | reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); 73 | return reactRootView; 74 | } 75 | 76 | @Override 77 | protected boolean isConcurrentRootEnabled() { 78 | // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18). 79 | // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html 80 | return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/gio_khimsho/voicereader/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.gio_khimsho.voicereader; 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 | } -------------------------------------------------------------------------------- /ios/voicereader.xcodeproj/xcshareddata/xcschemes/voicereader.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gio_khimsho/voicereader/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.gio_khimsho.voicereader; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import android.content.res.Configuration; 6 | import androidx.annotation.NonNull; 7 | 8 | import com.facebook.react.PackageList; 9 | import com.facebook.react.ReactApplication; 10 | import com.facebook.react.ReactInstanceManager; 11 | import com.facebook.react.ReactNativeHost; 12 | import com.facebook.react.ReactPackage; 13 | import com.facebook.react.config.ReactFeatureFlags; 14 | import com.facebook.soloader.SoLoader; 15 | import com.gio_khimsho.voicereader.newarchitecture.MainApplicationReactNativeHost; 16 | 17 | import expo.modules.ApplicationLifecycleDispatcher; 18 | import expo.modules.ReactNativeHostWrapper; 19 | 20 | import java.lang.reflect.InvocationTargetException; 21 | import java.util.List; 22 | 23 | public class MainApplication extends Application implements ReactApplication { 24 | private final ReactNativeHost mReactNativeHost = new ReactNativeHostWrapper( 25 | this, 26 | new ReactNativeHost(this) { 27 | @Override 28 | public boolean getUseDeveloperSupport() { 29 | return BuildConfig.DEBUG; 30 | } 31 | 32 | @Override 33 | protected List getPackages() { 34 | @SuppressWarnings("UnnecessaryLocalVariable") 35 | List packages = new PackageList(this).getPackages(); 36 | // Packages that cannot be autolinked yet can be added manually here, for example: 37 | // packages.add(new MyReactNativePackage()); 38 | return packages; 39 | } 40 | 41 | @Override 42 | protected String getJSMainModuleName() { 43 | return "index"; 44 | } 45 | }); 46 | 47 | private final ReactNativeHost mNewArchitectureNativeHost = 48 | new ReactNativeHostWrapper(this, new MainApplicationReactNativeHost(this)); 49 | 50 | @Override 51 | public ReactNativeHost getReactNativeHost() { 52 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { 53 | return mNewArchitectureNativeHost; 54 | } else { 55 | return mReactNativeHost; 56 | } 57 | } 58 | 59 | @Override 60 | public void onCreate() { 61 | super.onCreate(); 62 | // If you opted-in for the New Architecture, we enable the TurboModule system 63 | ReactFeatureFlags.useTurboModules = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; 64 | SoLoader.init(this, /* native exopackage */ false); 65 | 66 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 67 | ApplicationLifecycleDispatcher.onApplicationCreate(this); 68 | } 69 | 70 | @Override 71 | public void onConfigurationChanged(@NonNull Configuration newConfig) { 72 | super.onConfigurationChanged(newConfig); 73 | ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig); 74 | } 75 | 76 | /** 77 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 78 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 79 | * 80 | * @param context 81 | * @param reactInstanceManager 82 | */ 83 | private static void initializeFlipper( 84 | Context context, ReactInstanceManager reactInstanceManager) { 85 | if (BuildConfig.DEBUG) { 86 | try { 87 | /* 88 | We use reflection here to pick up the class that initializes Flipper, 89 | since Flipper library is not available in release mode 90 | */ 91 | Class aClass = Class.forName("com.gio_khimsho.voicereader.ReactNativeFlipper"); 92 | aClass 93 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 94 | .invoke(null, context, reactInstanceManager); 95 | } catch (ClassNotFoundException e) { 96 | e.printStackTrace(); 97 | } catch (NoSuchMethodException e) { 98 | e.printStackTrace(); 99 | } catch (IllegalAccessException e) { 100 | e.printStackTrace(); 101 | } catch (InvocationTargetException e) { 102 | e.printStackTrace(); 103 | } 104 | } 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /ios/voicereader/SplashScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gio_khimsho/voicereader/newarchitecture/MainApplicationReactNativeHost.java: -------------------------------------------------------------------------------- 1 | package com.gio_khimsho.voicereader.newarchitecture; 2 | 3 | import android.app.Application; 4 | import androidx.annotation.NonNull; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactInstanceManager; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.ReactPackageTurboModuleManagerDelegate; 10 | import com.facebook.react.bridge.JSIModulePackage; 11 | import com.facebook.react.bridge.JSIModuleProvider; 12 | import com.facebook.react.bridge.JSIModuleSpec; 13 | import com.facebook.react.bridge.JSIModuleType; 14 | import com.facebook.react.bridge.JavaScriptContextHolder; 15 | import com.facebook.react.bridge.ReactApplicationContext; 16 | import com.facebook.react.bridge.UIManager; 17 | import com.facebook.react.fabric.ComponentFactory; 18 | import com.facebook.react.fabric.CoreComponentsRegistry; 19 | import com.facebook.react.fabric.EmptyReactNativeConfig; 20 | import com.facebook.react.fabric.FabricJSIModuleProvider; 21 | import com.facebook.react.fabric.ReactNativeConfig; 22 | import com.facebook.react.uimanager.ViewManagerRegistry; 23 | import com.gio_khimsho.voicereader.BuildConfig; 24 | import com.gio_khimsho.voicereader.newarchitecture.components.MainComponentsRegistry; 25 | import com.gio_khimsho.voicereader.newarchitecture.modules.MainApplicationTurboModuleManagerDelegate; 26 | import java.util.ArrayList; 27 | import java.util.List; 28 | 29 | /** 30 | * A {@link ReactNativeHost} that helps you load everything needed for the New Architecture, both 31 | * TurboModule delegates and the Fabric Renderer. 32 | * 33 | *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the 34 | * `newArchEnabled` property). Is ignored otherwise. 35 | */ 36 | public class MainApplicationReactNativeHost extends ReactNativeHost { 37 | public MainApplicationReactNativeHost(Application application) { 38 | super(application); 39 | } 40 | 41 | @Override 42 | public boolean getUseDeveloperSupport() { 43 | return BuildConfig.DEBUG; 44 | } 45 | 46 | @Override 47 | protected List getPackages() { 48 | List packages = new PackageList(this).getPackages(); 49 | // Packages that cannot be autolinked yet can be added manually here, for example: 50 | // packages.add(new MyReactNativePackage()); 51 | // TurboModules must also be loaded here providing a valid TurboReactPackage implementation: 52 | // packages.add(new TurboReactPackage() { ... }); 53 | // If you have custom Fabric Components, their ViewManagers should also be loaded here 54 | // inside a ReactPackage. 55 | return packages; 56 | } 57 | 58 | @Override 59 | protected String getJSMainModuleName() { 60 | return "index"; 61 | } 62 | 63 | @NonNull 64 | @Override 65 | protected ReactPackageTurboModuleManagerDelegate.Builder 66 | getReactPackageTurboModuleManagerDelegateBuilder() { 67 | // Here we provide the ReactPackageTurboModuleManagerDelegate Builder. This is necessary 68 | // for the new architecture and to use TurboModules correctly. 69 | return new MainApplicationTurboModuleManagerDelegate.Builder(); 70 | } 71 | 72 | @Override 73 | protected JSIModulePackage getJSIModulePackage() { 74 | return new JSIModulePackage() { 75 | @Override 76 | public List getJSIModules( 77 | final ReactApplicationContext reactApplicationContext, 78 | final JavaScriptContextHolder jsContext) { 79 | final List specs = new ArrayList<>(); 80 | 81 | // Here we provide a new JSIModuleSpec that will be responsible of providing the 82 | // custom Fabric Components. 83 | specs.add( 84 | new JSIModuleSpec() { 85 | @Override 86 | public JSIModuleType getJSIModuleType() { 87 | return JSIModuleType.UIManager; 88 | } 89 | 90 | @Override 91 | public JSIModuleProvider getJSIModuleProvider() { 92 | final ComponentFactory componentFactory = new ComponentFactory(); 93 | CoreComponentsRegistry.register(componentFactory); 94 | 95 | // Here we register a Components Registry. 96 | // The one that is generated with the template contains no components 97 | // and just provides you the one from React Native core. 98 | MainComponentsRegistry.register(componentFactory); 99 | 100 | final ReactInstanceManager reactInstanceManager = getReactInstanceManager(); 101 | 102 | ViewManagerRegistry viewManagerRegistry = 103 | new ViewManagerRegistry( 104 | reactInstanceManager.getOrCreateViewManagers(reactApplicationContext)); 105 | 106 | return new FabricJSIModuleProvider( 107 | reactApplicationContext, 108 | componentFactory, 109 | ReactNativeConfig.DEFAULT_CONFIG, 110 | viewManagerRegistry); 111 | } 112 | }); 113 | return specs; 114 | } 115 | }; 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /ios/voicereader/AppDelegate.mm: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | #import 8 | 9 | #import 10 | 11 | #if RCT_NEW_ARCH_ENABLED 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | 19 | #import 20 | 21 | static NSString *const kRNConcurrentRoot = @"concurrentRoot"; 22 | 23 | @interface AppDelegate () { 24 | RCTTurboModuleManager *_turboModuleManager; 25 | RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; 26 | std::shared_ptr _reactNativeConfig; 27 | facebook::react::ContextContainer::Shared _contextContainer; 28 | } 29 | @end 30 | #endif 31 | 32 | @implementation AppDelegate 33 | 34 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 35 | { 36 | RCTAppSetupPrepareApp(application); 37 | 38 | RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions]; 39 | 40 | #if RCT_NEW_ARCH_ENABLED 41 | _contextContainer = std::make_shared(); 42 | _reactNativeConfig = std::make_shared(); 43 | _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); 44 | _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; 45 | bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; 46 | #endif 47 | 48 | NSDictionary *initProps = [self prepareInitialProps]; 49 | UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:initProps]; 50 | 51 | rootView.backgroundColor = [UIColor whiteColor]; 52 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 53 | UIViewController *rootViewController = [self.reactDelegate createRootViewController]; 54 | rootViewController.view = rootView; 55 | self.window.rootViewController = rootViewController; 56 | [self.window makeKeyAndVisible]; 57 | 58 | [super application:application didFinishLaunchingWithOptions:launchOptions]; 59 | 60 | return YES; 61 | } 62 | 63 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge 64 | { 65 | // If you'd like to export some custom RCTBridgeModules, add them here! 66 | return @[]; 67 | } 68 | 69 | /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. 70 | /// 71 | /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html 72 | /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture). 73 | /// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. 74 | - (BOOL)concurrentRootEnabled 75 | { 76 | // Switch this bool to turn on and off the concurrent root 77 | return true; 78 | } 79 | 80 | - (NSDictionary *)prepareInitialProps 81 | { 82 | NSMutableDictionary *initProps = [NSMutableDictionary new]; 83 | #if RCT_NEW_ARCH_ENABLED 84 | initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]); 85 | #endif 86 | return initProps; 87 | } 88 | 89 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 90 | { 91 | #if DEBUG 92 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 93 | #else 94 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 95 | #endif 96 | } 97 | 98 | // Linking API 99 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { 100 | return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options]; 101 | } 102 | 103 | // Universal Links 104 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { 105 | BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler]; 106 | return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result; 107 | } 108 | 109 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries 110 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken 111 | { 112 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; 113 | } 114 | 115 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries 116 | - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error 117 | { 118 | return [super application:application didFailToRegisterForRemoteNotificationsWithError:error]; 119 | } 120 | 121 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries 122 | - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler 123 | { 124 | return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler]; 125 | } 126 | 127 | #if RCT_NEW_ARCH_ENABLED 128 | 129 | #pragma mark - RCTCxxBridgeDelegate 130 | 131 | - (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge 132 | { 133 | _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge 134 | delegate:self 135 | jsInvoker:bridge.jsCallInvoker]; 136 | return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); 137 | } 138 | 139 | #pragma mark RCTTurboModuleManagerDelegate 140 | 141 | - (Class)getModuleClassFromName:(const char *)name 142 | { 143 | return RCTCoreModulesClassProvider(name); 144 | } 145 | 146 | - (std::shared_ptr)getTurboModule:(const std::string &)name 147 | jsInvoker:(std::shared_ptr)jsInvoker 148 | { 149 | return nullptr; 150 | } 151 | 152 | - (std::shared_ptr)getTurboModule:(const std::string &)name 153 | initParams: 154 | (const facebook::react::ObjCTurboModule::InitParams &)params 155 | { 156 | return nullptr; 157 | } 158 | 159 | - (id)getModuleInstanceFromClass:(Class)moduleClass 160 | { 161 | return RCTAppSetupDefaultModuleFromClass(moduleClass); 162 | } 163 | 164 | #endif 165 | 166 | @end 167 | -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect, useRef } from "react"; 2 | import { 3 | SafeAreaView, 4 | StyleSheet, 5 | Text, 6 | View, 7 | Dimensions, 8 | TouchableOpacity, 9 | Image, 10 | } from "react-native"; 11 | import Voice, { 12 | SpeechResultsEvent, 13 | SpeechErrorEvent, 14 | } from "@react-native-voice/voice"; 15 | import Animated, { 16 | useAnimatedStyle, 17 | useSharedValue, 18 | withRepeat, 19 | withSequence, 20 | withSpring, 21 | withTiming, 22 | } from "react-native-reanimated"; 23 | import { BlurView } from "expo-blur"; 24 | 25 | const { width } = Dimensions.get("screen"); 26 | const ItemSize = 100; 27 | const Bottom = width - ItemSize; 28 | const Top = 0; 29 | const Left = 0; 30 | const Right = width - ItemSize; 31 | const Middle = (width - ItemSize) / 2; 32 | const shadowWithTiming = { 33 | damping: 40, 34 | stiffness: 60, 35 | }; 36 | const itemWithTiming = { 37 | damping: 20, 38 | stiffness: 90, 39 | }; 40 | 41 | export default function App() { 42 | const [results, setResults] = useState([]); 43 | const [isListening, setIsListening] = useState(false); 44 | const offsetX = useSharedValue(0); 45 | const offsetY = useSharedValue(0); 46 | const rotation = useSharedValue(0); 47 | const borderRadius = useSharedValue(0); 48 | const widthHeight = useSharedValue(100); 49 | 50 | const textValue = useRef(""); 51 | 52 | const customSpringStyles = useAnimatedStyle(() => { 53 | return { 54 | borderRadius: withSpring(borderRadius.value, itemWithTiming), 55 | width: withSpring(widthHeight.value, itemWithTiming), 56 | height: withSpring(widthHeight.value, itemWithTiming), 57 | transform: [ 58 | { 59 | translateX: withSpring(offsetX.value, itemWithTiming), 60 | }, 61 | { 62 | translateY: withSpring(offsetY.value, itemWithTiming), 63 | }, 64 | { rotateZ: `${rotation.value}deg` }, 65 | ], 66 | }; 67 | }); 68 | const customSpringStylesBlur = useAnimatedStyle(() => { 69 | return { 70 | borderRadius: withSpring(borderRadius.value, shadowWithTiming), 71 | width: withSpring(widthHeight.value, shadowWithTiming), 72 | height: withSpring(widthHeight.value, shadowWithTiming), 73 | transform: [ 74 | { 75 | translateX: withSpring(offsetX.value, shadowWithTiming), 76 | }, 77 | { 78 | translateY: withSpring(offsetY.value, shadowWithTiming), 79 | }, 80 | { rotateZ: `${rotation.value}deg` }, 81 | ], 82 | }; 83 | }); 84 | 85 | const splitLastWords = (sentence, lastWordsCount) => 86 | sentence.split(" ").splice(-lastWordsCount).join(); 87 | 88 | const stopSpeech = async () => { 89 | offsetY.value = 0; 90 | offsetX.value = 0; 91 | return await Voice.destroy(), setIsListening(false); 92 | }; 93 | 94 | const callAction = async (result) => { 95 | const text = result.value[0]; 96 | 97 | if (text !== textValue.current) { 98 | textValue.current = text; 99 | const latsWord = splitLastWords(text, 1); 100 | // setResults([latsWord]); 101 | switch (latsWord) { 102 | case "stop": 103 | await stopSpeech(); 104 | setResults([latsWord]); 105 | return; 106 | case "left": 107 | offsetX.value = Left; 108 | setResults([latsWord]); 109 | return; 110 | case "right": 111 | offsetX.value = Right; 112 | setResults([latsWord]); 113 | return; 114 | case "bottom": 115 | case "down": 116 | offsetY.value = Bottom; 117 | setResults([latsWord]); 118 | return; 119 | case "top": 120 | case "up": 121 | offsetY.value = Top; 122 | setResults([latsWord]); 123 | return; 124 | case "middle": 125 | offsetY.value = Middle; 126 | offsetX.value = Middle; 127 | setResults([latsWord]); 128 | return; 129 | case "wiggle": 130 | rotation.value = withSequence( 131 | withTiming(-10, { duration: 50 }), 132 | withRepeat(withTiming(20, { duration: 100 }), 6, true), 133 | withTiming(0, { duration: 50 }) 134 | ); 135 | setResults([latsWord]); 136 | return; 137 | case "round": 138 | borderRadius.value = 100; 139 | setResults([latsWord]); 140 | return; 141 | case "square": 142 | borderRadius.value = 0; 143 | setResults([latsWord]); 144 | return; 145 | case "shrink": 146 | widthHeight.value = 50; 147 | setResults([latsWord]); 148 | return; 149 | case "grow": 150 | widthHeight.value = 100; 151 | setResults([latsWord]); 152 | return; 153 | default: 154 | break; 155 | } 156 | } 157 | }; 158 | 159 | useEffect(() => { 160 | async function onSpeechResults(e: SpeechResultsEvent) { 161 | callAction(e); 162 | } 163 | 164 | function onSpeechError(e: SpeechErrorEvent) { 165 | console.error(e); 166 | } 167 | 168 | Voice.onSpeechError = onSpeechError; 169 | Voice.onSpeechResults = onSpeechResults; 170 | return () => { 171 | Voice.destroy().then(Voice.removeAllListeners); 172 | }; 173 | }, []); 174 | 175 | async function toggleListening() { 176 | try { 177 | if (isListening) { 178 | stopSpeech(); 179 | setResults([]); 180 | } else { 181 | await Voice.start("en-US"); 182 | setIsListening(true); 183 | } 184 | } catch (e) { 185 | console.error(e); 186 | } 187 | } 188 | 189 | return ( 190 | 191 | 192 | 195 | 199 | 200 | 201 | 202 | 203 | 207 | 208 | 209 | Press the button and start speaking. 210 | 211 | 212 | {isListening ? "Stop speaking" : "Start speaking"} 213 | 214 | 215 | Results: 216 | 217 | {results.map((result, index) => { 218 | return ( 219 | 220 | {result} 221 | 222 | ); 223 | })} 224 | 225 | 226 | ); 227 | } 228 | 229 | const styles = StyleSheet.create({ 230 | container: { 231 | flex: 1, 232 | alignItems: "center", 233 | justifyContent: "center", 234 | backgroundColor: "#000", 235 | }, 236 | item: { 237 | overflow: "hidden", 238 | }, 239 | 240 | boxContainer: { 241 | width, 242 | height: width, 243 | backgroundColor: "#000", 244 | marginBottom: 30, 245 | }, 246 | resultsCont: { 247 | height: 30, 248 | }, 249 | Text: { 250 | color: "white", 251 | fontSize: 18, 252 | fontWeight: "700", 253 | }, 254 | button: { 255 | paddingVertical: 12, 256 | paddingHorizontal: 36, 257 | borderRadius: 6, 258 | backgroundColor: "#24262C", 259 | margin: 16, 260 | }, 261 | imageStyle: { 262 | width: "100%", 263 | height: "100%", 264 | }, 265 | }); 266 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original 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 POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 84 | 85 | APP_NAME="Gradle" 86 | APP_BASE_NAME=${0##*/} 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | MAX_FD=$( ulimit -H -n ) || 147 | warn "Could not query maximum file descriptor limit" 148 | esac 149 | case $MAX_FD in #( 150 | '' | soft) :;; #( 151 | *) 152 | ulimit -n "$MAX_FD" || 153 | warn "Could not set maximum file descriptor limit to $MAX_FD" 154 | esac 155 | fi 156 | 157 | # Collect all arguments for the java command, stacking in reverse order: 158 | # * args from the command line 159 | # * the main class name 160 | # * -classpath 161 | # * -D...appname settings 162 | # * --module-path (only if needed) 163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 164 | 165 | # For Cygwin or MSYS, switch paths to Windows format before running java 166 | if "$cygwin" || "$msys" ; then 167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 169 | 170 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 171 | 172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 173 | for arg do 174 | if 175 | case $arg in #( 176 | -*) false ;; # don't mess with options #( 177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 178 | [ -e "$t" ] ;; #( 179 | *) false ;; 180 | esac 181 | then 182 | arg=$( cygpath --path --ignore --mixed "$arg" ) 183 | fi 184 | # Roll the args list around exactly as many times as the number of 185 | # args, so each arg winds up back in the position where it started, but 186 | # possibly modified. 187 | # 188 | # NB: a `for` loop captures its iteration list before it begins, so 189 | # changing the positional parameters here affects neither the number of 190 | # iterations, nor the values presented in `arg`. 191 | shift # remove old arg 192 | set -- "$@" "$arg" # push replacement arg 193 | done 194 | fi 195 | 196 | # Collect all arguments for the java command; 197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 198 | # shell script including quotes and variable substitutions, so put them in 199 | # double quotes to make sure that they get re-expanded; and 200 | # * put everything else in single quotes, so that it's not re-expanded. 201 | 202 | set -- \ 203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 204 | -classpath "$CLASSPATH" \ 205 | org.gradle.wrapper.GradleWrapperMain \ 206 | "$@" 207 | 208 | # Use "xargs" to parse quoted args. 209 | # 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 211 | # 212 | # In Bash we could simply go: 213 | # 214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 215 | # set -- "${ARGS[@]}" "$@" 216 | # 217 | # but POSIX shell has neither arrays nor command substitution, so instead we 218 | # post-process each arg (as a line of input to sed) to backslash-escape any 219 | # character that might be a shell metacharacter, then use eval to reverse 220 | # that process (while maintaining the separation between arguments), and wrap 221 | # the whole thing up as a single "set" statement. 222 | # 223 | # This will of course break if any of these variables contains a newline or 224 | # an unmatched quote. 225 | # 226 | 227 | eval "set -- $( 228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 229 | xargs -n1 | 230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 231 | tr '\n' ' ' 232 | )" '"$@"' 233 | 234 | exec "$JAVACMD" "$@" 235 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | import org.apache.tools.ant.taskdefs.condition.Os 5 | 6 | /** 7 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 8 | * and bundleReleaseJsAndAssets). 9 | * These basically call `react-native bundle` with the correct arguments during the Android build 10 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 11 | * bundle directly from the development server. Below you can see all the possible configurations 12 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 13 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 14 | * 15 | * project.ext.react = [ 16 | * // the name of the generated asset file containing your JS bundle 17 | * bundleAssetName: "index.android.bundle", 18 | * 19 | * // the entry file for bundle generation. If none specified and 20 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 21 | * // default. Can be overridden with ENTRY_FILE environment variable. 22 | * entryFile: "index.android.js", 23 | * 24 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 25 | * bundleCommand: "ram-bundle", 26 | * 27 | * // whether to bundle JS and assets in debug mode 28 | * bundleInDebug: false, 29 | * 30 | * // whether to bundle JS and assets in release mode 31 | * bundleInRelease: true, 32 | * 33 | * // whether to bundle JS and assets in another build variant (if configured). 34 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 35 | * // The configuration property can be in the following formats 36 | * // 'bundleIn${productFlavor}${buildType}' 37 | * // 'bundleIn${buildType}' 38 | * // bundleInFreeDebug: true, 39 | * // bundleInPaidRelease: true, 40 | * // bundleInBeta: true, 41 | * 42 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 43 | * // for example: to disable dev mode in the staging build type (if configured) 44 | * devDisabledInStaging: true, 45 | * // The configuration property can be in the following formats 46 | * // 'devDisabledIn${productFlavor}${buildType}' 47 | * // 'devDisabledIn${buildType}' 48 | * 49 | * // the root of your project, i.e. where "package.json" lives 50 | * root: "../../", 51 | * 52 | * // where to put the JS bundle asset in debug mode 53 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 54 | * 55 | * // where to put the JS bundle asset in release mode 56 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 57 | * 58 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 59 | * // require('./image.png')), in debug mode 60 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 61 | * 62 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 63 | * // require('./image.png')), in release mode 64 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 65 | * 66 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 67 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 68 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 69 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 70 | * // for example, you might want to remove it from here. 71 | * inputExcludes: ["android/**", "ios/**"], 72 | * 73 | * // override which node gets called and with what additional arguments 74 | * nodeExecutableAndArgs: ["node"], 75 | * 76 | * // supply additional arguments to the packager 77 | * extraPackagerArgs: [] 78 | * ] 79 | */ 80 | 81 | def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath() 82 | 83 | def reactNativeRoot = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() 84 | 85 | project.ext.react = [ 86 | entryFile: ["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android"].execute(null, rootDir).text.trim(), 87 | enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes", 88 | hermesCommand: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc", 89 | cliPath: "${reactNativeRoot}/cli.js", 90 | composeSourceMapsPath: "${reactNativeRoot}/scripts/compose-source-maps.js", 91 | ] 92 | 93 | apply from: new File(reactNativeRoot, "react.gradle") 94 | 95 | /** 96 | * Set this to true to create two separate APKs instead of one: 97 | * - An APK that only works on ARM devices 98 | * - An APK that only works on x86 devices 99 | * The advantage is the size of the APK is reduced by about 4MB. 100 | * Upload all the APKs to the Play Store and people will download 101 | * the correct one based on the CPU architecture of their device. 102 | */ 103 | def enableSeparateBuildPerCPUArchitecture = false 104 | 105 | /** 106 | * Run Proguard to shrink the Java bytecode in release builds. 107 | */ 108 | def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean() 109 | 110 | /** 111 | * The preferred build flavor of JavaScriptCore. 112 | * 113 | * For example, to use the international variant, you can use: 114 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 115 | * 116 | * The international variant includes ICU i18n library and necessary data 117 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 118 | * give correct results when using with locales other than en-US. Note that 119 | * this variant is about 6MiB larger per architecture than default. 120 | */ 121 | def jscFlavor = 'org.webkit:android-jsc:+' 122 | 123 | /** 124 | * Whether to enable the Hermes VM. 125 | * 126 | * This should be set on project.ext.react and that value will be read here. If it is not set 127 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 128 | * and the benefits of using Hermes will therefore be sharply reduced. 129 | */ 130 | def enableHermes = project.ext.react.get("enableHermes", false); 131 | 132 | /** 133 | * Architectures to build native code for. 134 | */ 135 | def reactNativeArchitectures() { 136 | def value = project.getProperties().get("reactNativeArchitectures") 137 | return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] 138 | } 139 | 140 | android { 141 | ndkVersion rootProject.ext.ndkVersion 142 | 143 | compileSdkVersion rootProject.ext.compileSdkVersion 144 | 145 | defaultConfig { 146 | applicationId 'com.gio_khimsho.voicereader' 147 | minSdkVersion rootProject.ext.minSdkVersion 148 | targetSdkVersion rootProject.ext.targetSdkVersion 149 | versionCode 1 150 | versionName "1.0.0" 151 | buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() 152 | 153 | if (isNewArchitectureEnabled()) { 154 | // We configure the NDK build only if you decide to opt-in for the New Architecture. 155 | externalNativeBuild { 156 | ndkBuild { 157 | arguments "APP_PLATFORM=android-21", 158 | "APP_STL=c++_shared", 159 | "NDK_TOOLCHAIN_VERSION=clang", 160 | "GENERATED_SRC_DIR=$buildDir/generated/source", 161 | "PROJECT_BUILD_DIR=$buildDir", 162 | "REACT_ANDROID_DIR=${reactNativeRoot}/ReactAndroid", 163 | "REACT_ANDROID_BUILD_DIR=${reactNativeRoot}/ReactAndroid/build", 164 | "NODE_MODULES_DIR=$rootDir/../node_modules" 165 | cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1" 166 | cppFlags "-std=c++17" 167 | // Make sure this target name is the same you specify inside the 168 | // src/main/jni/Android.mk file for the `LOCAL_MODULE` variable. 169 | targets "voicereader_appmodules" 170 | 171 | // Fix for windows limit on number of character in file paths and in command lines 172 | if (Os.isFamily(Os.FAMILY_WINDOWS)) { 173 | arguments "NDK_APP_SHORT_COMMANDS=true" 174 | } 175 | } 176 | } 177 | if (!enableSeparateBuildPerCPUArchitecture) { 178 | ndk { 179 | abiFilters (*reactNativeArchitectures()) 180 | } 181 | } 182 | } 183 | } 184 | 185 | if (isNewArchitectureEnabled()) { 186 | // We configure the NDK build only if you decide to opt-in for the New Architecture. 187 | externalNativeBuild { 188 | ndkBuild { 189 | path "$projectDir/src/main/jni/Android.mk" 190 | } 191 | } 192 | def reactAndroidProjectDir = project(':ReactAndroid').projectDir 193 | def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { 194 | dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") 195 | from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") 196 | into("$buildDir/react-ndk/exported") 197 | } 198 | def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { 199 | dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") 200 | from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") 201 | into("$buildDir/react-ndk/exported") 202 | } 203 | afterEvaluate { 204 | // If you wish to add a custom TurboModule or component locally, 205 | // you should uncomment this line. 206 | // preBuild.dependsOn("generateCodegenArtifactsFromSchema") 207 | preDebugBuild.dependsOn(packageReactNdkDebugLibs) 208 | preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) 209 | 210 | // Due to a bug inside AGP, we have to explicitly set a dependency 211 | // between configureNdkBuild* tasks and the preBuild tasks. 212 | // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 213 | configureNdkBuildRelease.dependsOn(preReleaseBuild) 214 | configureNdkBuildDebug.dependsOn(preDebugBuild) 215 | reactNativeArchitectures().each { architecture -> 216 | tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure { 217 | dependsOn("preDebugBuild") 218 | } 219 | tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure { 220 | dependsOn("preReleaseBuild") 221 | } 222 | } 223 | } 224 | } 225 | 226 | splits { 227 | abi { 228 | reset() 229 | enable enableSeparateBuildPerCPUArchitecture 230 | universalApk false // If true, also generate a universal APK 231 | include (*reactNativeArchitectures()) 232 | } 233 | } 234 | signingConfigs { 235 | debug { 236 | storeFile file('debug.keystore') 237 | storePassword 'android' 238 | keyAlias 'androiddebugkey' 239 | keyPassword 'android' 240 | } 241 | } 242 | buildTypes { 243 | debug { 244 | signingConfig signingConfigs.debug 245 | } 246 | release { 247 | // Caution! In production, you need to generate your own keystore file. 248 | // see https://reactnative.dev/docs/signed-apk-android. 249 | signingConfig signingConfigs.debug 250 | minifyEnabled enableProguardInReleaseBuilds 251 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 252 | } 253 | } 254 | 255 | // applicationVariants are e.g. debug, release 256 | applicationVariants.all { variant -> 257 | variant.outputs.each { output -> 258 | // For each separate APK per architecture, set a unique version code as described here: 259 | // https://developer.android.com/studio/build/configure-apk-splits.html 260 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 261 | def abi = output.getFilter(OutputFile.ABI) 262 | if (abi != null) { // null for the universal-debug, universal-release variants 263 | output.versionCodeOverride = 264 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 265 | } 266 | 267 | } 268 | } 269 | } 270 | 271 | // Apply static values from `gradle.properties` to the `android.packagingOptions` 272 | // Accepts values in comma delimited lists, example: 273 | // android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini 274 | ["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop -> 275 | // Split option: 'foo,bar' -> ['foo', 'bar'] 276 | def options = (findProperty("android.packagingOptions.$prop") ?: "").split(","); 277 | // Trim all elements in place. 278 | for (i in 0.. 0) { 283 | println "android.packagingOptions.$prop += $options ($options.length)" 284 | // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**' 285 | options.each { 286 | android.packagingOptions[prop] += it 287 | } 288 | } 289 | } 290 | 291 | dependencies { 292 | implementation fileTree(dir: "libs", include: ["*.jar"]) 293 | 294 | //noinspection GradleDynamicVersion 295 | implementation "com.facebook.react:react-native:+" // From node_modules 296 | 297 | def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true"; 298 | def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true"; 299 | def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true"; 300 | def frescoVersion = rootProject.ext.frescoVersion 301 | 302 | // If your app supports Android versions before Ice Cream Sandwich (API level 14) 303 | if (isGifEnabled || isWebpEnabled) { 304 | implementation "com.facebook.fresco:fresco:${frescoVersion}" 305 | implementation "com.facebook.fresco:imagepipeline-okhttp3:${frescoVersion}" 306 | } 307 | 308 | if (isGifEnabled) { 309 | // For animated gif support 310 | implementation "com.facebook.fresco:animated-gif:${frescoVersion}" 311 | } 312 | 313 | if (isWebpEnabled) { 314 | // For webp support 315 | implementation "com.facebook.fresco:webpsupport:${frescoVersion}" 316 | if (isWebpAnimatedEnabled) { 317 | // Animated webp support 318 | implementation "com.facebook.fresco:animated-webp:${frescoVersion}" 319 | } 320 | } 321 | 322 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 323 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 324 | exclude group:'com.facebook.fbjni' 325 | } 326 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 327 | exclude group:'com.facebook.flipper' 328 | exclude group:'com.squareup.okhttp3', module:'okhttp' 329 | } 330 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 331 | exclude group:'com.facebook.flipper' 332 | } 333 | 334 | if (enableHermes) { 335 | //noinspection GradleDynamicVersion 336 | implementation("com.facebook.react:hermes-engine:+") { // From node_modules 337 | exclude group:'com.facebook.fbjni' 338 | } 339 | } else { 340 | implementation jscFlavor 341 | } 342 | } 343 | 344 | if (isNewArchitectureEnabled()) { 345 | // If new architecture is enabled, we let you build RN from source 346 | // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. 347 | // This will be applied to all the imported transtitive dependency. 348 | configurations.all { 349 | resolutionStrategy.dependencySubstitution { 350 | substitute(module("com.facebook.react:react-native")) 351 | .using(project(":ReactAndroid")) 352 | .because("On New Architecture we're building React Native from source") 353 | substitute(module("com.facebook.react:hermes-engine")) 354 | .using(project(":ReactAndroid:hermes-engine")) 355 | .because("On New Architecture we're building Hermes from source") 356 | } 357 | } 358 | } 359 | 360 | // Run this once to be able to run the application with BUCK 361 | // puts all compile dependencies into folder libs for BUCK to use 362 | task copyDownloadableDepsToLibs(type: Copy) { 363 | from configurations.implementation 364 | into 'libs' 365 | } 366 | 367 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle"); 368 | applyNativeModulesAppBuildGradle(project) 369 | 370 | def isNewArchitectureEnabled() { 371 | // To opt-in for the New Architecture, you can either: 372 | // - Set `newArchEnabled` to true inside the `gradle.properties` file 373 | // - Invoke gradle with `-newArchEnabled=true` 374 | // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` 375 | return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" 376 | } 377 | -------------------------------------------------------------------------------- /ios/voicereader.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 11 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 12 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 13 | 2EFDF719CE7148748CCEFA40 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31C6C9117A8A4488A697FE79 /* noop-file.swift */; }; 14 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; }; 15 | 96905EF65AED1B983A6B3ABC /* libPods-voicereader.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-voicereader.a */; }; 16 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; }; 17 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 22 | 13B07F961A680F5B00A75B9A /* voicereader.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = voicereader.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = voicereader/AppDelegate.h; sourceTree = ""; }; 24 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = voicereader/AppDelegate.mm; sourceTree = ""; }; 25 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = voicereader/Images.xcassets; sourceTree = ""; }; 26 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = voicereader/Info.plist; sourceTree = ""; }; 27 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = voicereader/main.m; sourceTree = ""; }; 28 | 31C6C9117A8A4488A697FE79 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "voicereader/noop-file.swift"; sourceTree = ""; }; 29 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-voicereader.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-voicereader.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | 6C2E3173556A471DD304B334 /* Pods-voicereader.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-voicereader.debug.xcconfig"; path = "Target Support Files/Pods-voicereader/Pods-voicereader.debug.xcconfig"; sourceTree = ""; }; 31 | 7A4D352CD337FB3A3BF06240 /* Pods-voicereader.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-voicereader.release.xcconfig"; path = "Target Support Files/Pods-voicereader/Pods-voicereader.release.xcconfig"; sourceTree = ""; }; 32 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = voicereader/SplashScreen.storyboard; sourceTree = ""; }; 33 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; }; 34 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 35 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-voicereader/ExpoModulesProvider.swift"; sourceTree = ""; }; 36 | /* End PBXFileReference section */ 37 | 38 | /* Begin PBXFrameworksBuildPhase section */ 39 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 40 | isa = PBXFrameworksBuildPhase; 41 | buildActionMask = 2147483647; 42 | files = ( 43 | 96905EF65AED1B983A6B3ABC /* libPods-voicereader.a in Frameworks */, 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | 13B07FAE1A68108700A75B9A /* voicereader */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | BB2F792B24A3F905000567C9 /* Supporting */, 54 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 55 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 56 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */, 57 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 58 | 13B07FB61A68108700A75B9A /* Info.plist */, 59 | 13B07FB71A68108700A75B9A /* main.m */, 60 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */, 61 | 31C6C9117A8A4488A697FE79 /* noop-file.swift */, 62 | ); 63 | name = voicereader; 64 | sourceTree = ""; 65 | }; 66 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 70 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-voicereader.a */, 71 | ); 72 | name = Frameworks; 73 | sourceTree = ""; 74 | }; 75 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | ); 79 | name = Libraries; 80 | sourceTree = ""; 81 | }; 82 | 83CBB9F61A601CBA00E9B192 = { 83 | isa = PBXGroup; 84 | children = ( 85 | 13B07FAE1A68108700A75B9A /* voicereader */, 86 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 87 | 83CBBA001A601CBA00E9B192 /* Products */, 88 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 89 | D65327D7A22EEC0BE12398D9 /* Pods */, 90 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */, 91 | ); 92 | indentWidth = 2; 93 | sourceTree = ""; 94 | tabWidth = 2; 95 | usesTabs = 0; 96 | }; 97 | 83CBBA001A601CBA00E9B192 /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 13B07F961A680F5B00A75B9A /* voicereader.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 92DBD88DE9BF7D494EA9DA96 /* voicereader */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */, 109 | ); 110 | name = voicereader; 111 | sourceTree = ""; 112 | }; 113 | BB2F792B24A3F905000567C9 /* Supporting */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | BB2F792C24A3F905000567C9 /* Expo.plist */, 117 | ); 118 | name = Supporting; 119 | path = voicereader/Supporting; 120 | sourceTree = ""; 121 | }; 122 | D65327D7A22EEC0BE12398D9 /* Pods */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 6C2E3173556A471DD304B334 /* Pods-voicereader.debug.xcconfig */, 126 | 7A4D352CD337FB3A3BF06240 /* Pods-voicereader.release.xcconfig */, 127 | ); 128 | path = Pods; 129 | sourceTree = ""; 130 | }; 131 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 92DBD88DE9BF7D494EA9DA96 /* voicereader */, 135 | ); 136 | name = ExpoModulesProviders; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 13B07F861A680F5B00A75B9A /* voicereader */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "voicereader" */; 145 | buildPhases = ( 146 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */, 147 | FD10A7F022414F080027D42C /* Start Packager */, 148 | 13B07F871A680F5B00A75B9A /* Sources */, 149 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 150 | 13B07F8E1A680F5B00A75B9A /* Resources */, 151 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 152 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */, 153 | ); 154 | buildRules = ( 155 | ); 156 | dependencies = ( 157 | ); 158 | name = voicereader; 159 | productName = voicereader; 160 | productReference = 13B07F961A680F5B00A75B9A /* voicereader.app */; 161 | productType = "com.apple.product-type.application"; 162 | }; 163 | /* End PBXNativeTarget section */ 164 | 165 | /* Begin PBXProject section */ 166 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 167 | isa = PBXProject; 168 | attributes = { 169 | LastUpgradeCheck = 1130; 170 | TargetAttributes = { 171 | 13B07F861A680F5B00A75B9A = { 172 | LastSwiftMigration = 1250; 173 | }; 174 | }; 175 | }; 176 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "voicereader" */; 177 | compatibilityVersion = "Xcode 3.2"; 178 | developmentRegion = en; 179 | hasScannedForEncodings = 0; 180 | knownRegions = ( 181 | en, 182 | Base, 183 | ); 184 | mainGroup = 83CBB9F61A601CBA00E9B192; 185 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 186 | projectDirPath = ""; 187 | projectRoot = ""; 188 | targets = ( 189 | 13B07F861A680F5B00A75B9A /* voicereader */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */, 200 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 201 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | /* End PBXResourcesBuildPhase section */ 206 | 207 | /* Begin PBXShellScriptBuildPhase section */ 208 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 209 | isa = PBXShellScriptBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | inputPaths = ( 214 | ); 215 | name = "Bundle React Native code and images"; 216 | outputPaths = ( 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | shellPath = /bin/sh; 220 | shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n"; 221 | }; 222 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = { 223 | isa = PBXShellScriptBuildPhase; 224 | buildActionMask = 2147483647; 225 | files = ( 226 | ); 227 | inputFileListPaths = ( 228 | ); 229 | inputPaths = ( 230 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 231 | "${PODS_ROOT}/Manifest.lock", 232 | ); 233 | name = "[CP] Check Pods Manifest.lock"; 234 | outputFileListPaths = ( 235 | ); 236 | outputPaths = ( 237 | "$(DERIVED_FILE_DIR)/Pods-voicereader-checkManifestLockResult.txt", 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | shellPath = /bin/sh; 241 | 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"; 242 | showEnvVarsInLog = 0; 243 | }; 244 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = { 245 | isa = PBXShellScriptBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | ); 249 | inputPaths = ( 250 | "${PODS_ROOT}/Target Support Files/Pods-voicereader/Pods-voicereader-resources.sh", 251 | "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle", 252 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 253 | "${PODS_CONFIGURATION_BUILD_DIR}/expo-dev-launcher/EXDevLauncher.bundle", 254 | "${PODS_CONFIGURATION_BUILD_DIR}/expo-dev-menu/EXDevMenu.bundle", 255 | ); 256 | name = "[CP] Copy Pods Resources"; 257 | outputPaths = ( 258 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle", 259 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 260 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXDevLauncher.bundle", 261 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXDevMenu.bundle", 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-voicereader/Pods-voicereader-resources.sh\"\n"; 266 | showEnvVarsInLog = 0; 267 | }; 268 | FD10A7F022414F080027D42C /* Start Packager */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputFileListPaths = ( 274 | ); 275 | inputPaths = ( 276 | ); 277 | name = "Start Packager"; 278 | outputFileListPaths = ( 279 | ); 280 | outputPaths = ( 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | shellPath = /bin/sh; 284 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/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 `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n"; 285 | showEnvVarsInLog = 0; 286 | }; 287 | /* End PBXShellScriptBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | 13B07F871A680F5B00A75B9A /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, 295 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 296 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */, 297 | 2EFDF719CE7148748CCEFA40 /* noop-file.swift in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | /* End PBXSourcesBuildPhase section */ 302 | 303 | /* Begin XCBuildConfiguration section */ 304 | 13B07F941A680F5B00A75B9A /* Debug */ = { 305 | isa = XCBuildConfiguration; 306 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-voicereader.debug.xcconfig */; 307 | buildSettings = { 308 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 309 | CLANG_ENABLE_MODULES = YES; 310 | CODE_SIGN_ENTITLEMENTS = voicereader/voicereader.entitlements; 311 | CURRENT_PROJECT_VERSION = 1; 312 | ENABLE_BITCODE = NO; 313 | GCC_PREPROCESSOR_DEFINITIONS = ( 314 | "$(inherited)", 315 | "FB_SONARKIT_ENABLED=1", 316 | ); 317 | INFOPLIST_FILE = voicereader/Info.plist; 318 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 320 | OTHER_LDFLAGS = ( 321 | "$(inherited)", 322 | "-ObjC", 323 | "-lc++", 324 | ); 325 | OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; 326 | PRODUCT_BUNDLE_IDENTIFIER = "voice-render"; 327 | PRODUCT_NAME = voicereader; 328 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 329 | SWIFT_VERSION = 5.0; 330 | TARGETED_DEVICE_FAMILY = "1,2"; 331 | VERSIONING_SYSTEM = "apple-generic"; 332 | }; 333 | name = Debug; 334 | }; 335 | 13B07F951A680F5B00A75B9A /* Release */ = { 336 | isa = XCBuildConfiguration; 337 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-voicereader.release.xcconfig */; 338 | buildSettings = { 339 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 340 | CLANG_ENABLE_MODULES = YES; 341 | CODE_SIGN_ENTITLEMENTS = voicereader/voicereader.entitlements; 342 | CURRENT_PROJECT_VERSION = 1; 343 | INFOPLIST_FILE = voicereader/Info.plist; 344 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 345 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 346 | OTHER_LDFLAGS = ( 347 | "$(inherited)", 348 | "-ObjC", 349 | "-lc++", 350 | ); 351 | OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE"; 352 | PRODUCT_BUNDLE_IDENTIFIER = "voice-render"; 353 | PRODUCT_NAME = voicereader; 354 | SWIFT_VERSION = 5.0; 355 | TARGETED_DEVICE_FAMILY = "1,2"; 356 | VERSIONING_SYSTEM = "apple-generic"; 357 | }; 358 | name = Release; 359 | }; 360 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | ALWAYS_SEARCH_USER_PATHS = NO; 364 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 365 | CLANG_CXX_LANGUAGE_STANDARD = "c++17"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 375 | CLANG_WARN_EMPTY_BODY = YES; 376 | CLANG_WARN_ENUM_CONVERSION = YES; 377 | CLANG_WARN_INFINITE_RECURSION = YES; 378 | CLANG_WARN_INT_CONVERSION = YES; 379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 384 | CLANG_WARN_STRICT_PROTOTYPES = YES; 385 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 386 | CLANG_WARN_UNREACHABLE_CODE = YES; 387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 389 | COPY_PHASE_STRIP = NO; 390 | ENABLE_STRICT_OBJC_MSGSEND = YES; 391 | ENABLE_TESTABILITY = YES; 392 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_DYNAMIC_NO_PIC = NO; 395 | GCC_NO_COMMON_BLOCKS = YES; 396 | GCC_OPTIMIZATION_LEVEL = 0; 397 | GCC_PREPROCESSOR_DEFINITIONS = ( 398 | "DEBUG=1", 399 | "$(inherited)", 400 | ); 401 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 403 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 404 | GCC_WARN_UNDECLARED_SELECTOR = YES; 405 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 406 | GCC_WARN_UNUSED_FUNCTION = YES; 407 | GCC_WARN_UNUSED_VARIABLE = YES; 408 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 409 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 410 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 411 | MTL_ENABLE_DEBUG_INFO = YES; 412 | ONLY_ACTIVE_ARCH = YES; 413 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; 414 | SDKROOT = iphoneos; 415 | }; 416 | name = Debug; 417 | }; 418 | 83CBBA211A601CBA00E9B192 /* Release */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | ALWAYS_SEARCH_USER_PATHS = NO; 422 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 423 | CLANG_CXX_LANGUAGE_STANDARD = "c++17"; 424 | CLANG_CXX_LIBRARY = "libc++"; 425 | CLANG_ENABLE_MODULES = YES; 426 | CLANG_ENABLE_OBJC_ARC = YES; 427 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 428 | CLANG_WARN_BOOL_CONVERSION = YES; 429 | CLANG_WARN_COMMA = YES; 430 | CLANG_WARN_CONSTANT_CONVERSION = YES; 431 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_EMPTY_BODY = YES; 434 | CLANG_WARN_ENUM_CONVERSION = YES; 435 | CLANG_WARN_INFINITE_RECURSION = YES; 436 | CLANG_WARN_INT_CONVERSION = YES; 437 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 438 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 439 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 440 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 441 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 442 | CLANG_WARN_STRICT_PROTOTYPES = YES; 443 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 444 | CLANG_WARN_UNREACHABLE_CODE = YES; 445 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 446 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 447 | COPY_PHASE_STRIP = YES; 448 | ENABLE_NS_ASSERTIONS = NO; 449 | ENABLE_STRICT_OBJC_MSGSEND = YES; 450 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = ""; 451 | GCC_C_LANGUAGE_STANDARD = gnu99; 452 | GCC_NO_COMMON_BLOCKS = YES; 453 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 454 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 455 | GCC_WARN_UNDECLARED_SELECTOR = YES; 456 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 457 | GCC_WARN_UNUSED_FUNCTION = YES; 458 | GCC_WARN_UNUSED_VARIABLE = YES; 459 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 460 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 461 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 462 | MTL_ENABLE_DEBUG_INFO = NO; 463 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; 464 | SDKROOT = iphoneos; 465 | VALIDATE_PRODUCT = YES; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "voicereader" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 13B07F941A680F5B00A75B9A /* Debug */, 476 | 13B07F951A680F5B00A75B9A /* Release */, 477 | ); 478 | defaultConfigurationIsVisible = 0; 479 | defaultConfigurationName = Release; 480 | }; 481 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "voicereader" */ = { 482 | isa = XCConfigurationList; 483 | buildConfigurations = ( 484 | 83CBBA201A601CBA00E9B192 /* Debug */, 485 | 83CBBA211A601CBA00E9B192 /* Release */, 486 | ); 487 | defaultConfigurationIsVisible = 0; 488 | defaultConfigurationName = Release; 489 | }; 490 | /* End XCConfigurationList section */ 491 | }; 492 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 493 | } 494 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost (1.76.0) 3 | - DoubleConversion (1.1.6) 4 | - EXApplication (4.2.2): 5 | - ExpoModulesCore 6 | - EXBlur (11.2.0): 7 | - ExpoModulesCore 8 | - EXConstants (13.2.4): 9 | - ExpoModulesCore 10 | - EXErrorRecovery (3.2.0): 11 | - ExpoModulesCore 12 | - EXFileSystem (14.1.0): 13 | - ExpoModulesCore 14 | - EXFont (10.2.0): 15 | - ExpoModulesCore 16 | - EXJSONUtils (0.3.0) 17 | - EXManifests (0.3.1): 18 | - EXJSONUtils 19 | - Expo (46.0.9): 20 | - ExpoModulesCore 21 | - expo-dev-client (1.2.1): 22 | - EXManifests 23 | - expo-dev-launcher 24 | - expo-dev-menu 25 | - expo-dev-menu-interface 26 | - EXUpdatesInterface 27 | - expo-dev-launcher (1.2.1): 28 | - EXManifests 29 | - expo-dev-launcher/Main (= 1.2.1) 30 | - expo-dev-menu 31 | - expo-dev-menu-interface 32 | - ExpoModulesCore 33 | - EXUpdatesInterface 34 | - React-Core 35 | - expo-dev-launcher/Main (1.2.1): 36 | - EXManifests 37 | - expo-dev-launcher/Unsafe 38 | - expo-dev-menu 39 | - expo-dev-menu-interface 40 | - ExpoModulesCore 41 | - EXUpdatesInterface 42 | - React-Core 43 | - expo-dev-launcher/Unsafe (1.2.1): 44 | - EXManifests 45 | - expo-dev-menu 46 | - expo-dev-menu-interface 47 | - ExpoModulesCore 48 | - EXUpdatesInterface 49 | - React-Core 50 | - expo-dev-menu (1.2.1): 51 | - expo-dev-menu/Main (= 1.2.1) 52 | - expo-dev-menu-interface (0.7.2) 53 | - expo-dev-menu/GestureHandler (1.2.1) 54 | - expo-dev-menu/Main (1.2.1): 55 | - EXManifests 56 | - expo-dev-menu-interface 57 | - expo-dev-menu/Vendored 58 | - ExpoModulesCore 59 | - React-Core 60 | - expo-dev-menu/Reanimated (1.2.1): 61 | - DoubleConversion 62 | - FBLazyVector 63 | - FBReactNativeSpec 64 | - glog 65 | - RCT-Folly 66 | - RCTRequired 67 | - RCTTypeSafety 68 | - React-callinvoker 69 | - React-Core 70 | - React-Core/DevSupport 71 | - React-Core/RCTWebSocket 72 | - React-CoreModules 73 | - React-cxxreact 74 | - React-jsi 75 | - React-jsiexecutor 76 | - React-jsinspector 77 | - React-RCTActionSheet 78 | - React-RCTAnimation 79 | - React-RCTBlob 80 | - React-RCTImage 81 | - React-RCTLinking 82 | - React-RCTNetwork 83 | - React-RCTSettings 84 | - React-RCTText 85 | - React-RCTVibration 86 | - ReactCommon/turbomodule/core 87 | - Yoga 88 | - expo-dev-menu/SafeAreaView (1.2.1) 89 | - expo-dev-menu/Vendored (1.2.1): 90 | - expo-dev-menu/GestureHandler 91 | - expo-dev-menu/Reanimated 92 | - expo-dev-menu/SafeAreaView 93 | - ExpoKeepAwake (10.2.0): 94 | - ExpoModulesCore 95 | - ExpoModulesCore (0.11.4): 96 | - React-Core 97 | - ReactCommon/turbomodule/core 98 | - EXSplashScreen (0.16.2): 99 | - ExpoModulesCore 100 | - React-Core 101 | - EXUpdatesInterface (0.7.0) 102 | - FBLazyVector (0.69.5) 103 | - FBReactNativeSpec (0.69.5): 104 | - RCT-Folly (= 2021.06.28.00-v2) 105 | - RCTRequired (= 0.69.5) 106 | - RCTTypeSafety (= 0.69.5) 107 | - React-Core (= 0.69.5) 108 | - React-jsi (= 0.69.5) 109 | - ReactCommon/turbomodule/core (= 0.69.5) 110 | - fmt (6.2.1) 111 | - glog (0.3.5) 112 | - RCT-Folly (2021.06.28.00-v2): 113 | - boost 114 | - DoubleConversion 115 | - fmt (~> 6.2.1) 116 | - glog 117 | - RCT-Folly/Default (= 2021.06.28.00-v2) 118 | - RCT-Folly/Default (2021.06.28.00-v2): 119 | - boost 120 | - DoubleConversion 121 | - fmt (~> 6.2.1) 122 | - glog 123 | - RCTRequired (0.69.5) 124 | - RCTTypeSafety (0.69.5): 125 | - FBLazyVector (= 0.69.5) 126 | - RCTRequired (= 0.69.5) 127 | - React-Core (= 0.69.5) 128 | - React (0.69.5): 129 | - React-Core (= 0.69.5) 130 | - React-Core/DevSupport (= 0.69.5) 131 | - React-Core/RCTWebSocket (= 0.69.5) 132 | - React-RCTActionSheet (= 0.69.5) 133 | - React-RCTAnimation (= 0.69.5) 134 | - React-RCTBlob (= 0.69.5) 135 | - React-RCTImage (= 0.69.5) 136 | - React-RCTLinking (= 0.69.5) 137 | - React-RCTNetwork (= 0.69.5) 138 | - React-RCTSettings (= 0.69.5) 139 | - React-RCTText (= 0.69.5) 140 | - React-RCTVibration (= 0.69.5) 141 | - React-bridging (0.69.5): 142 | - RCT-Folly (= 2021.06.28.00-v2) 143 | - React-jsi (= 0.69.5) 144 | - React-callinvoker (0.69.5) 145 | - React-Codegen (0.69.5): 146 | - FBReactNativeSpec (= 0.69.5) 147 | - RCT-Folly (= 2021.06.28.00-v2) 148 | - RCTRequired (= 0.69.5) 149 | - RCTTypeSafety (= 0.69.5) 150 | - React-Core (= 0.69.5) 151 | - React-jsi (= 0.69.5) 152 | - React-jsiexecutor (= 0.69.5) 153 | - ReactCommon/turbomodule/core (= 0.69.5) 154 | - React-Core (0.69.5): 155 | - glog 156 | - RCT-Folly (= 2021.06.28.00-v2) 157 | - React-Core/Default (= 0.69.5) 158 | - React-cxxreact (= 0.69.5) 159 | - React-jsi (= 0.69.5) 160 | - React-jsiexecutor (= 0.69.5) 161 | - React-perflogger (= 0.69.5) 162 | - Yoga 163 | - React-Core/CoreModulesHeaders (0.69.5): 164 | - glog 165 | - RCT-Folly (= 2021.06.28.00-v2) 166 | - React-Core/Default 167 | - React-cxxreact (= 0.69.5) 168 | - React-jsi (= 0.69.5) 169 | - React-jsiexecutor (= 0.69.5) 170 | - React-perflogger (= 0.69.5) 171 | - Yoga 172 | - React-Core/Default (0.69.5): 173 | - glog 174 | - RCT-Folly (= 2021.06.28.00-v2) 175 | - React-cxxreact (= 0.69.5) 176 | - React-jsi (= 0.69.5) 177 | - React-jsiexecutor (= 0.69.5) 178 | - React-perflogger (= 0.69.5) 179 | - Yoga 180 | - React-Core/DevSupport (0.69.5): 181 | - glog 182 | - RCT-Folly (= 2021.06.28.00-v2) 183 | - React-Core/Default (= 0.69.5) 184 | - React-Core/RCTWebSocket (= 0.69.5) 185 | - React-cxxreact (= 0.69.5) 186 | - React-jsi (= 0.69.5) 187 | - React-jsiexecutor (= 0.69.5) 188 | - React-jsinspector (= 0.69.5) 189 | - React-perflogger (= 0.69.5) 190 | - Yoga 191 | - React-Core/RCTActionSheetHeaders (0.69.5): 192 | - glog 193 | - RCT-Folly (= 2021.06.28.00-v2) 194 | - React-Core/Default 195 | - React-cxxreact (= 0.69.5) 196 | - React-jsi (= 0.69.5) 197 | - React-jsiexecutor (= 0.69.5) 198 | - React-perflogger (= 0.69.5) 199 | - Yoga 200 | - React-Core/RCTAnimationHeaders (0.69.5): 201 | - glog 202 | - RCT-Folly (= 2021.06.28.00-v2) 203 | - React-Core/Default 204 | - React-cxxreact (= 0.69.5) 205 | - React-jsi (= 0.69.5) 206 | - React-jsiexecutor (= 0.69.5) 207 | - React-perflogger (= 0.69.5) 208 | - Yoga 209 | - React-Core/RCTBlobHeaders (0.69.5): 210 | - glog 211 | - RCT-Folly (= 2021.06.28.00-v2) 212 | - React-Core/Default 213 | - React-cxxreact (= 0.69.5) 214 | - React-jsi (= 0.69.5) 215 | - React-jsiexecutor (= 0.69.5) 216 | - React-perflogger (= 0.69.5) 217 | - Yoga 218 | - React-Core/RCTImageHeaders (0.69.5): 219 | - glog 220 | - RCT-Folly (= 2021.06.28.00-v2) 221 | - React-Core/Default 222 | - React-cxxreact (= 0.69.5) 223 | - React-jsi (= 0.69.5) 224 | - React-jsiexecutor (= 0.69.5) 225 | - React-perflogger (= 0.69.5) 226 | - Yoga 227 | - React-Core/RCTLinkingHeaders (0.69.5): 228 | - glog 229 | - RCT-Folly (= 2021.06.28.00-v2) 230 | - React-Core/Default 231 | - React-cxxreact (= 0.69.5) 232 | - React-jsi (= 0.69.5) 233 | - React-jsiexecutor (= 0.69.5) 234 | - React-perflogger (= 0.69.5) 235 | - Yoga 236 | - React-Core/RCTNetworkHeaders (0.69.5): 237 | - glog 238 | - RCT-Folly (= 2021.06.28.00-v2) 239 | - React-Core/Default 240 | - React-cxxreact (= 0.69.5) 241 | - React-jsi (= 0.69.5) 242 | - React-jsiexecutor (= 0.69.5) 243 | - React-perflogger (= 0.69.5) 244 | - Yoga 245 | - React-Core/RCTSettingsHeaders (0.69.5): 246 | - glog 247 | - RCT-Folly (= 2021.06.28.00-v2) 248 | - React-Core/Default 249 | - React-cxxreact (= 0.69.5) 250 | - React-jsi (= 0.69.5) 251 | - React-jsiexecutor (= 0.69.5) 252 | - React-perflogger (= 0.69.5) 253 | - Yoga 254 | - React-Core/RCTTextHeaders (0.69.5): 255 | - glog 256 | - RCT-Folly (= 2021.06.28.00-v2) 257 | - React-Core/Default 258 | - React-cxxreact (= 0.69.5) 259 | - React-jsi (= 0.69.5) 260 | - React-jsiexecutor (= 0.69.5) 261 | - React-perflogger (= 0.69.5) 262 | - Yoga 263 | - React-Core/RCTVibrationHeaders (0.69.5): 264 | - glog 265 | - RCT-Folly (= 2021.06.28.00-v2) 266 | - React-Core/Default 267 | - React-cxxreact (= 0.69.5) 268 | - React-jsi (= 0.69.5) 269 | - React-jsiexecutor (= 0.69.5) 270 | - React-perflogger (= 0.69.5) 271 | - Yoga 272 | - React-Core/RCTWebSocket (0.69.5): 273 | - glog 274 | - RCT-Folly (= 2021.06.28.00-v2) 275 | - React-Core/Default (= 0.69.5) 276 | - React-cxxreact (= 0.69.5) 277 | - React-jsi (= 0.69.5) 278 | - React-jsiexecutor (= 0.69.5) 279 | - React-perflogger (= 0.69.5) 280 | - Yoga 281 | - React-CoreModules (0.69.5): 282 | - RCT-Folly (= 2021.06.28.00-v2) 283 | - RCTTypeSafety (= 0.69.5) 284 | - React-Codegen (= 0.69.5) 285 | - React-Core/CoreModulesHeaders (= 0.69.5) 286 | - React-jsi (= 0.69.5) 287 | - React-RCTImage (= 0.69.5) 288 | - ReactCommon/turbomodule/core (= 0.69.5) 289 | - React-cxxreact (0.69.5): 290 | - boost (= 1.76.0) 291 | - DoubleConversion 292 | - glog 293 | - RCT-Folly (= 2021.06.28.00-v2) 294 | - React-callinvoker (= 0.69.5) 295 | - React-jsi (= 0.69.5) 296 | - React-jsinspector (= 0.69.5) 297 | - React-logger (= 0.69.5) 298 | - React-perflogger (= 0.69.5) 299 | - React-runtimeexecutor (= 0.69.5) 300 | - React-jsi (0.69.5): 301 | - boost (= 1.76.0) 302 | - DoubleConversion 303 | - glog 304 | - RCT-Folly (= 2021.06.28.00-v2) 305 | - React-jsi/Default (= 0.69.5) 306 | - React-jsi/Default (0.69.5): 307 | - boost (= 1.76.0) 308 | - DoubleConversion 309 | - glog 310 | - RCT-Folly (= 2021.06.28.00-v2) 311 | - React-jsiexecutor (0.69.5): 312 | - DoubleConversion 313 | - glog 314 | - RCT-Folly (= 2021.06.28.00-v2) 315 | - React-cxxreact (= 0.69.5) 316 | - React-jsi (= 0.69.5) 317 | - React-perflogger (= 0.69.5) 318 | - React-jsinspector (0.69.5) 319 | - React-logger (0.69.5): 320 | - glog 321 | - react-native-voice (3.2.4): 322 | - React-Core 323 | - React-perflogger (0.69.5) 324 | - React-RCTActionSheet (0.69.5): 325 | - React-Core/RCTActionSheetHeaders (= 0.69.5) 326 | - React-RCTAnimation (0.69.5): 327 | - RCT-Folly (= 2021.06.28.00-v2) 328 | - RCTTypeSafety (= 0.69.5) 329 | - React-Codegen (= 0.69.5) 330 | - React-Core/RCTAnimationHeaders (= 0.69.5) 331 | - React-jsi (= 0.69.5) 332 | - ReactCommon/turbomodule/core (= 0.69.5) 333 | - React-RCTBlob (0.69.5): 334 | - RCT-Folly (= 2021.06.28.00-v2) 335 | - React-Codegen (= 0.69.5) 336 | - React-Core/RCTBlobHeaders (= 0.69.5) 337 | - React-Core/RCTWebSocket (= 0.69.5) 338 | - React-jsi (= 0.69.5) 339 | - React-RCTNetwork (= 0.69.5) 340 | - ReactCommon/turbomodule/core (= 0.69.5) 341 | - React-RCTImage (0.69.5): 342 | - RCT-Folly (= 2021.06.28.00-v2) 343 | - RCTTypeSafety (= 0.69.5) 344 | - React-Codegen (= 0.69.5) 345 | - React-Core/RCTImageHeaders (= 0.69.5) 346 | - React-jsi (= 0.69.5) 347 | - React-RCTNetwork (= 0.69.5) 348 | - ReactCommon/turbomodule/core (= 0.69.5) 349 | - React-RCTLinking (0.69.5): 350 | - React-Codegen (= 0.69.5) 351 | - React-Core/RCTLinkingHeaders (= 0.69.5) 352 | - React-jsi (= 0.69.5) 353 | - ReactCommon/turbomodule/core (= 0.69.5) 354 | - React-RCTNetwork (0.69.5): 355 | - RCT-Folly (= 2021.06.28.00-v2) 356 | - RCTTypeSafety (= 0.69.5) 357 | - React-Codegen (= 0.69.5) 358 | - React-Core/RCTNetworkHeaders (= 0.69.5) 359 | - React-jsi (= 0.69.5) 360 | - ReactCommon/turbomodule/core (= 0.69.5) 361 | - React-RCTSettings (0.69.5): 362 | - RCT-Folly (= 2021.06.28.00-v2) 363 | - RCTTypeSafety (= 0.69.5) 364 | - React-Codegen (= 0.69.5) 365 | - React-Core/RCTSettingsHeaders (= 0.69.5) 366 | - React-jsi (= 0.69.5) 367 | - ReactCommon/turbomodule/core (= 0.69.5) 368 | - React-RCTText (0.69.5): 369 | - React-Core/RCTTextHeaders (= 0.69.5) 370 | - React-RCTVibration (0.69.5): 371 | - RCT-Folly (= 2021.06.28.00-v2) 372 | - React-Codegen (= 0.69.5) 373 | - React-Core/RCTVibrationHeaders (= 0.69.5) 374 | - React-jsi (= 0.69.5) 375 | - ReactCommon/turbomodule/core (= 0.69.5) 376 | - React-runtimeexecutor (0.69.5): 377 | - React-jsi (= 0.69.5) 378 | - ReactCommon/turbomodule/core (0.69.5): 379 | - DoubleConversion 380 | - glog 381 | - RCT-Folly (= 2021.06.28.00-v2) 382 | - React-bridging (= 0.69.5) 383 | - React-callinvoker (= 0.69.5) 384 | - React-Core (= 0.69.5) 385 | - React-cxxreact (= 0.69.5) 386 | - React-jsi (= 0.69.5) 387 | - React-logger (= 0.69.5) 388 | - React-perflogger (= 0.69.5) 389 | - RNReanimated (2.10.0): 390 | - DoubleConversion 391 | - FBLazyVector 392 | - FBReactNativeSpec 393 | - glog 394 | - RCT-Folly 395 | - RCTRequired 396 | - RCTTypeSafety 397 | - React-callinvoker 398 | - React-Core 399 | - React-Core/DevSupport 400 | - React-Core/RCTWebSocket 401 | - React-CoreModules 402 | - React-cxxreact 403 | - React-jsi 404 | - React-jsiexecutor 405 | - React-jsinspector 406 | - React-RCTActionSheet 407 | - React-RCTAnimation 408 | - React-RCTBlob 409 | - React-RCTImage 410 | - React-RCTLinking 411 | - React-RCTNetwork 412 | - React-RCTSettings 413 | - React-RCTText 414 | - ReactCommon/turbomodule/core 415 | - Yoga 416 | - Yoga (1.14.0) 417 | 418 | DEPENDENCIES: 419 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) 420 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 421 | - EXApplication (from `../node_modules/expo-application/ios`) 422 | - EXBlur (from `../node_modules/expo-blur/ios`) 423 | - EXConstants (from `../node_modules/expo-constants/ios`) 424 | - EXErrorRecovery (from `../node_modules/expo-error-recovery/ios`) 425 | - EXFileSystem (from `../node_modules/expo-file-system/ios`) 426 | - EXFont (from `../node_modules/expo-font/ios`) 427 | - EXJSONUtils (from `../node_modules/expo-json-utils/ios`) 428 | - EXManifests (from `../node_modules/expo-manifests/ios`) 429 | - Expo (from `../node_modules/expo`) 430 | - expo-dev-client (from `../node_modules/expo-dev-client/ios`) 431 | - expo-dev-launcher (from `../node_modules/expo-dev-launcher`) 432 | - expo-dev-menu (from `../node_modules/expo-dev-menu`) 433 | - expo-dev-menu-interface (from `../node_modules/expo-dev-menu-interface/ios`) 434 | - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`) 435 | - ExpoModulesCore (from `../node_modules/expo-modules-core/ios`) 436 | - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`) 437 | - EXUpdatesInterface (from `../node_modules/expo-updates-interface/ios`) 438 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 439 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 440 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 441 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 442 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 443 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 444 | - React (from `../node_modules/react-native/`) 445 | - React-bridging (from `../node_modules/react-native/ReactCommon`) 446 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 447 | - React-Codegen (from `build/generated/ios`) 448 | - React-Core (from `../node_modules/react-native/`) 449 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 450 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 451 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 452 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 453 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 454 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 455 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`) 456 | - "react-native-voice (from `../node_modules/@react-native-voice/voice`)" 457 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 458 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 459 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 460 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 461 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 462 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 463 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 464 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 465 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 466 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 467 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 468 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 469 | - RNReanimated (from `../node_modules/react-native-reanimated`) 470 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 471 | 472 | SPEC REPOS: 473 | trunk: 474 | - fmt 475 | 476 | EXTERNAL SOURCES: 477 | boost: 478 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" 479 | DoubleConversion: 480 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 481 | EXApplication: 482 | :path: "../node_modules/expo-application/ios" 483 | EXBlur: 484 | :path: "../node_modules/expo-blur/ios" 485 | EXConstants: 486 | :path: "../node_modules/expo-constants/ios" 487 | EXErrorRecovery: 488 | :path: "../node_modules/expo-error-recovery/ios" 489 | EXFileSystem: 490 | :path: "../node_modules/expo-file-system/ios" 491 | EXFont: 492 | :path: "../node_modules/expo-font/ios" 493 | EXJSONUtils: 494 | :path: "../node_modules/expo-json-utils/ios" 495 | EXManifests: 496 | :path: "../node_modules/expo-manifests/ios" 497 | Expo: 498 | :path: "../node_modules/expo" 499 | expo-dev-client: 500 | :path: "../node_modules/expo-dev-client/ios" 501 | expo-dev-launcher: 502 | :path: "../node_modules/expo-dev-launcher" 503 | expo-dev-menu: 504 | :path: "../node_modules/expo-dev-menu" 505 | expo-dev-menu-interface: 506 | :path: "../node_modules/expo-dev-menu-interface/ios" 507 | ExpoKeepAwake: 508 | :path: "../node_modules/expo-keep-awake/ios" 509 | ExpoModulesCore: 510 | :path: "../node_modules/expo-modules-core/ios" 511 | EXSplashScreen: 512 | :path: "../node_modules/expo-splash-screen/ios" 513 | EXUpdatesInterface: 514 | :path: "../node_modules/expo-updates-interface/ios" 515 | FBLazyVector: 516 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 517 | FBReactNativeSpec: 518 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 519 | glog: 520 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 521 | RCT-Folly: 522 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 523 | RCTRequired: 524 | :path: "../node_modules/react-native/Libraries/RCTRequired" 525 | RCTTypeSafety: 526 | :path: "../node_modules/react-native/Libraries/TypeSafety" 527 | React: 528 | :path: "../node_modules/react-native/" 529 | React-bridging: 530 | :path: "../node_modules/react-native/ReactCommon" 531 | React-callinvoker: 532 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 533 | React-Codegen: 534 | :path: build/generated/ios 535 | React-Core: 536 | :path: "../node_modules/react-native/" 537 | React-CoreModules: 538 | :path: "../node_modules/react-native/React/CoreModules" 539 | React-cxxreact: 540 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 541 | React-jsi: 542 | :path: "../node_modules/react-native/ReactCommon/jsi" 543 | React-jsiexecutor: 544 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 545 | React-jsinspector: 546 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 547 | React-logger: 548 | :path: "../node_modules/react-native/ReactCommon/logger" 549 | react-native-voice: 550 | :path: "../node_modules/@react-native-voice/voice" 551 | React-perflogger: 552 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 553 | React-RCTActionSheet: 554 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 555 | React-RCTAnimation: 556 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 557 | React-RCTBlob: 558 | :path: "../node_modules/react-native/Libraries/Blob" 559 | React-RCTImage: 560 | :path: "../node_modules/react-native/Libraries/Image" 561 | React-RCTLinking: 562 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 563 | React-RCTNetwork: 564 | :path: "../node_modules/react-native/Libraries/Network" 565 | React-RCTSettings: 566 | :path: "../node_modules/react-native/Libraries/Settings" 567 | React-RCTText: 568 | :path: "../node_modules/react-native/Libraries/Text" 569 | React-RCTVibration: 570 | :path: "../node_modules/react-native/Libraries/Vibration" 571 | React-runtimeexecutor: 572 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 573 | ReactCommon: 574 | :path: "../node_modules/react-native/ReactCommon" 575 | RNReanimated: 576 | :path: "../node_modules/react-native-reanimated" 577 | Yoga: 578 | :path: "../node_modules/react-native/ReactCommon/yoga" 579 | 580 | SPEC CHECKSUMS: 581 | boost: a7c83b31436843459a1961bfd74b96033dc77234 582 | DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 583 | EXApplication: e418d737a036e788510f2c4ad6c10a7d54d18586 584 | EXBlur: a3556f992ca1cdf117f0e19d6e4775f3406e77c3 585 | EXConstants: 7c44785d41d8e959d527d23d29444277a4d1ee73 586 | EXErrorRecovery: 74d71ee59f6814315457b09d68e86aa95cc7d05d 587 | EXFileSystem: 927e0a8885aa9c49e50fc38eaba2c2389f2f1019 588 | EXFont: a5d80bd9b3452b2d5abbce2487da89b0150e6487 589 | EXJSONUtils: 2a74b8f40f1523cc3f92af99c91aa78201737a77 590 | EXManifests: b38dc61303f5eede990b4c8ecbfac32f82160e65 591 | Expo: 73412414e62f5cbc6e713def821de70b92cd3ad6 592 | expo-dev-client: 258dd6da471e23b8671a3634003e4c0ff55aaeda 593 | expo-dev-launcher: c0c466fe8fbda8a2e34e1c69e1b87df237698599 594 | expo-dev-menu: ab1e9353dbc761d5b62b1fc909f38e866857feba 595 | expo-dev-menu-interface: 27047461614aee1dc082cacc0e0f5b4c7b8edd1b 596 | ExpoKeepAwake: 0e8f18142e71bbf2c7f6aa66ebed249ba1420320 597 | ExpoModulesCore: e281bb7b78ea47e227dd5af94d04b24d8b2e1255 598 | EXSplashScreen: 799bece80089219b2c989c1082d70f3b00995cda 599 | EXUpdatesInterface: 2bbc11815dfa2ec3fc02e5534c7592c6b42b5327 600 | FBLazyVector: 0045cf98ca4a48af3bf7108d85b1c243740fa289 601 | FBReactNativeSpec: 82e74141263f8c962e288f5cd6b5d149cdc8afe1 602 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 603 | glog: 3d02b25ca00c2d456734d0bcff864cbc62f6ae1a 604 | RCT-Folly: b9d9fe1fc70114b751c076104e52f3b1b5e5a95a 605 | RCTRequired: 85c60c4bde8241278be2c93420de4c65475a2151 606 | RCTTypeSafety: 15990f289215eb0fc65c5eb6e2610faeeda8d5e1 607 | React: 6cfa9367042a85f6235740420df017d51efc6494 608 | React-bridging: bf49ea3fa02446c647748d33cc9cbc0f5509bba7 609 | React-callinvoker: 6b98a94d1f5063afe211379d061b01f40707394a 610 | React-Codegen: 2fe0ade7442acce0b729a228a2d9111b6ef294e2 611 | React-Core: ad82eacbe769f918b0d199df3cb7c780cd3f46ff 612 | React-CoreModules: 72b07fed89ab0e7f2600f9275ec9642130aa920c 613 | React-cxxreact: 2bba16be9eb4116bee86e3dfd85aeb67b2795eca 614 | React-jsi: 013de11039e08ae5d67868a72f1012794d34e72f 615 | React-jsiexecutor: e42f0b46de293a026c2fb20e524d4fe09f81f575 616 | React-jsinspector: e385fb7a1440ae3f3b2cd1a139ca5aadaab43c10 617 | React-logger: 15c734997c06fe9c9b88e528fb7757601e7a56df 618 | react-native-voice: f5e8eec2278451d0017eb6a30a6ccc726aca34e0 619 | React-perflogger: 367418425c5e4a9f0f80385ee1eaacd2a7348f8e 620 | React-RCTActionSheet: e4885e7136f98ded1137cd3daccc05eaed97d5a6 621 | React-RCTAnimation: 7c5a74f301c9b763343ba98a3dd776ed2676993f 622 | React-RCTBlob: 5c294e0415b290b1b3b72ec454c43e3afcfab444 623 | React-RCTImage: e82034ab64dfbadd3e0b42d830a810702f59f758 624 | React-RCTLinking: f007e2b4094e1fd364f3bde8bbd94113d4e1e70f 625 | React-RCTNetwork: 72eaf2f4cbcb5105b2ef4ac6a987b51047d8835f 626 | React-RCTSettings: 61949292107ca7b6cf9601679e952b1b5a3546a7 627 | React-RCTText: 307181243987b73aaefc22afd0b57b10ef970429 628 | React-RCTVibration: 42b34fde72e42446d9b08d2b9a3ddc2fa9ac6189 629 | React-runtimeexecutor: c778439c3c430a5719d027d3c67423b390a221fe 630 | ReactCommon: ab1003b81be740fecd82509c370a45b1a7dda0c1 631 | RNReanimated: 7faa787e8d4493fbc95fab2ad331fa7625828cfa 632 | Yoga: c2b1f2494060865ac1f27e49639e72371b1205fa 633 | 634 | PODFILE CHECKSUM: 6b0fed5ddfe318e0eb28d18da0d9879310ca2aaf 635 | 636 | COCOAPODS: 1.11.3 637 | --------------------------------------------------------------------------------