├── .expo-shared └── assets.json ├── .gitattributes ├── .gitignore ├── .vscode └── settings.json ├── App.tsx ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── jbcbros │ │ │ └── qBitRemote │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── jbcbros │ │ │ └── qBitRemote │ │ │ ├── MainActivity.java │ │ │ ├── MainApplication.java │ │ │ └── generated │ │ │ └── BasePackageList.java │ │ └── res │ │ ├── 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 │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_foreground.png │ │ └── ic_launcher_round.png │ │ ├── values-night │ │ └── colors.xml │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── assets ├── fonts │ └── SpaceMono-Regular.ttf └── images │ ├── Auther.jpg │ ├── adaptive-icon.png │ ├── favicon.png │ ├── icon.png │ ├── icon2.png │ ├── logo-sm.png │ └── splash.png ├── babel.config.js ├── components ├── EditScreenInfo.tsx ├── StyledText.tsx ├── Themed.tsx └── __tests__ │ └── StyledText-test.js ├── constants ├── Colors.ts └── Layout.ts ├── global └── AppContext.tsx ├── hooks ├── useCachedResources.ts └── useColorScheme.ts ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── qBitRemote.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── qBitRemote.xcscheme ├── qBitRemote.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── qBitRemote │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ └── LaunchScreen.xib │ ├── Images.xcassets │ ├── 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 │ │ ├── App-Icon-83.5x83.5@2x.png │ │ ├── Contents.json │ │ └── ItunesArtwork@2x.png │ ├── Contents.json │ ├── SplashScreen.imageset │ │ ├── Contents.json │ │ └── image.png │ └── SplashScreenBackground.imageset │ │ ├── Contents.json │ │ └── image.png │ ├── Info.plist │ ├── SplashScreen.storyboard │ ├── Supporting │ └── Expo.plist │ ├── main.m │ ├── noop-file.swift │ ├── qBitRemote-Bridging-Header.h │ └── qBitRemote.entitlements ├── metro.config.js ├── navigation ├── BottomTabNavigator.tsx ├── LinkingConfiguration.ts ├── SideNavigator.tsx └── index.tsx ├── package-lock.json ├── package.json ├── screens ├── HostScreen.tsx ├── InfoScreen.tsx ├── NotFoundScreen.tsx ├── TabOneScreen.tsx ├── TabTwoScreen.tsx └── UploadScreen.tsx ├── tsconfig.json ├── types.tsx └── yarn.lock /.expo-shared/assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "e997a5256149a4b76e6bfd6cbf519c5e5a0f1d278a3d8fa1253022b03c90473b": true, 3 | "af683c96e0ffd2cf81287651c9433fa44debc1220ca7cb431fe482747f34a505": true, 4 | "12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true, 5 | "40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true 6 | } 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .expo/ 3 | npm-debug.* 4 | *.jks 5 | *.p8 6 | *.p12 7 | *.key 8 | *.mobileprovision 9 | *.orig.* 10 | web-build/ 11 | 12 | # macOS 13 | .DS_Store 14 | 15 | # @generated expo-cli sync-2138f1e3e130677ea10ea873f6d498e3890e677b 16 | # The following patterns were generated by expo-cli 17 | 18 | # OSX 19 | # 20 | .DS_Store 21 | 22 | # Xcode 23 | # 24 | build/ 25 | *.pbxuser 26 | !default.pbxuser 27 | *.mode1v3 28 | !default.mode1v3 29 | *.mode2v3 30 | !default.mode2v3 31 | *.perspectivev3 32 | !default.perspectivev3 33 | xcuserdata 34 | *.xccheckout 35 | *.moved-aside 36 | DerivedData 37 | *.hmap 38 | *.ipa 39 | *.xcuserstate 40 | project.xcworkspace 41 | 42 | # Android/IntelliJ 43 | # 44 | build/ 45 | .idea 46 | .gradle 47 | local.properties 48 | *.iml 49 | *.hprof 50 | 51 | # node.js 52 | # 53 | node_modules/ 54 | npm-debug.log 55 | yarn-error.log 56 | 57 | # BUCK 58 | buck-out/ 59 | \.buckd/ 60 | *.keystore 61 | !debug.keystore 62 | 63 | # Bundle artifacts 64 | *.jsbundle 65 | 66 | # CocoaPods 67 | /ios/Pods/ 68 | 69 | # Expo 70 | .expo/ 71 | web-build/ 72 | 73 | # @end expo-cli -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "*.yaml": "home-assistant" 4 | } 5 | } -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | import 'react-native-gesture-handler'; 2 | import { StatusBar } from 'expo-status-bar'; 3 | import React, { useState, useEffect } from 'react'; 4 | import AppContext from './global/AppContext'; 5 | import * as SecureStore from 'expo-secure-store'; 6 | 7 | import { SafeAreaProvider } from 'react-native-safe-area-context'; 8 | 9 | import useCachedResources from './hooks/useCachedResources'; 10 | import useColorScheme from './hooks/useColorScheme'; 11 | import Navigation from './navigation'; 12 | 13 | export default function App() { 14 | const isLoadingComplete = useCachedResources(); 15 | const colorScheme = useColorScheme(); 16 | const [loading, setLoading] = useState(true); 17 | 18 | const [host, setHost] = useState(''); 19 | const [port, setPort] = useState(); 20 | const [ssl, setSsl] = useState(false); 21 | const [username, setUsername] = useState(''); 22 | const [password, setPassword] = useState(''); 23 | const [nickname, setNickname] = useState('Remote'); 24 | 25 | 26 | async function getValueFor() { 27 | let host = await SecureStore.getItemAsync('host'); 28 | setHost(host); 29 | 30 | let port = await SecureStore.getItemAsync('port'); 31 | setPort(port); 32 | let username = await SecureStore.getItemAsync('username'); 33 | setUsername(username); 34 | 35 | let passwordRes = await SecureStore.getItemAsync('passwordRes'); 36 | setPassword(passwordRes); 37 | 38 | let ssl = await SecureStore.getItemAsync('ssl'); 39 | setSsl(ssl); 40 | 41 | setLoading(false) 42 | } 43 | 44 | 45 | getValueFor(); 46 | 47 | 48 | const userSettings = { 49 | host: host, 50 | port: port, 51 | ssl: ssl, 52 | username: username, 53 | nickname: nickname, 54 | password: password, 55 | setHost, 56 | setPort, 57 | setSsl, 58 | setUsername, 59 | setPassword, 60 | setNickname 61 | }; 62 | 63 | if (!loading) { 64 | if (!isLoadingComplete) { 65 | return null; 66 | } else { 67 | return ( 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | ); 76 | } 77 | } else { 78 | return null 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # qBitRemote 2 | A iOS & Android client for qbittorrent 3 | **Authentication error has been fixed** 4 | 5 | ![Preview](https://i.imgur.com/FHlFpTL.png) 6 | 7 | 8 | 9 | **Features** 10 | - Add torrents from file or magnet links 11 | - See states of torrents 12 | - Pause/Resume torrents 13 | - Remove torrent 14 | - Recheck torrents 15 | - Info about the torrent 16 | - Dark mode for UI 17 | 18 | 19 | # Installation 20 | There are two main methods for installing this app to your iOS device. 21 | 22 | **Install via Xcode** 23 | 1. Clone repository 24 | 2. NPM install inside project 25 | 3. Open qBitRemote.xcworkspace with Xcode and install to device of your choice 26 | 27 | **Sideload with AltStore** 28 | 1. Install AltStore to your device 29 | 2. Download qBitRemote.ipa from Releases 30 | 3. Add it to AltStore (https://altstore.io/) 31 | -------------------------------------------------------------------------------- /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.jbcbros.qBitRemote", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.jbcbros.qBitRemote", 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/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes", 82 | ] 83 | 84 | apply from: '../../node_modules/react-native-unimodules/gradle.groovy' 85 | apply from: "../../node_modules/react-native/react.gradle" 86 | apply from: "../../node_modules/expo-constants/scripts/get-app-config-android.gradle" 87 | apply from: "../../node_modules/expo-updates/scripts/create-manifest-android.gradle" 88 | 89 | /** 90 | * Set this to true to create two separate APKs instead of one: 91 | * - An APK that only works on ARM devices 92 | * - An APK that only works on x86 devices 93 | * The advantage is the size of the APK is reduced by about 4MB. 94 | * Upload all the APKs to the Play Store and people will download 95 | * the correct one based on the CPU architecture of their device. 96 | */ 97 | def enableSeparateBuildPerCPUArchitecture = false 98 | 99 | /** 100 | * Run Proguard to shrink the Java bytecode in release builds. 101 | */ 102 | def enableProguardInReleaseBuilds = false 103 | 104 | /** 105 | * The preferred build flavor of JavaScriptCore. 106 | * 107 | * For example, to use the international variant, you can use: 108 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 109 | * 110 | * The international variant includes ICU i18n library and necessary data 111 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 112 | * give correct results when using with locales other than en-US. Note that 113 | * this variant is about 6MiB larger per architecture than default. 114 | */ 115 | def jscFlavor = 'org.webkit:android-jsc:+' 116 | 117 | /** 118 | * Whether to enable the Hermes VM. 119 | * 120 | * This should be set on project.ext.react and mirrored here. If it is not set 121 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 122 | * and the benefits of using Hermes will therefore be sharply reduced. 123 | */ 124 | def enableHermes = project.ext.react.get("enableHermes", false); 125 | 126 | android { 127 | compileSdkVersion rootProject.ext.compileSdkVersion 128 | 129 | compileOptions { 130 | sourceCompatibility JavaVersion.VERSION_1_8 131 | targetCompatibility JavaVersion.VERSION_1_8 132 | } 133 | 134 | defaultConfig { 135 | applicationId 'com.jbcbros.qBitRemote' 136 | minSdkVersion rootProject.ext.minSdkVersion 137 | targetSdkVersion rootProject.ext.targetSdkVersion 138 | versionCode 1 139 | versionName "1.0.0" 140 | } 141 | splits { 142 | abi { 143 | reset() 144 | enable enableSeparateBuildPerCPUArchitecture 145 | universalApk false // If true, also generate a universal APK 146 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 147 | } 148 | } 149 | signingConfigs { 150 | debug { 151 | storeFile file('debug.keystore') 152 | storePassword 'android' 153 | keyAlias 'androiddebugkey' 154 | keyPassword 'android' 155 | } 156 | } 157 | buildTypes { 158 | debug { 159 | signingConfig signingConfigs.debug 160 | } 161 | release { 162 | // Caution! In production, you need to generate your own keystore file. 163 | // see https://reactnative.dev/docs/signed-apk-android. 164 | signingConfig signingConfigs.debug 165 | minifyEnabled enableProguardInReleaseBuilds 166 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 167 | } 168 | } 169 | 170 | // applicationVariants are e.g. debug, release 171 | applicationVariants.all { variant -> 172 | variant.outputs.each { output -> 173 | // For each separate APK per architecture, set a unique version code as described here: 174 | // https://developer.android.com/studio/build/configure-apk-splits.html 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 191 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 192 | exclude group:'com.facebook.fbjni' 193 | } 194 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 195 | exclude group:'com.facebook.flipper' 196 | exclude group:'com.squareup.okhttp3', module:'okhttp' 197 | } 198 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 199 | exclude group:'com.facebook.flipper' 200 | } 201 | addUnimodulesDependencies() 202 | 203 | if (enableHermes) { 204 | def hermesPath = "../../node_modules/hermes-engine/android/"; 205 | debugImplementation files(hermesPath + "hermes-debug.aar") 206 | releaseImplementation files(hermesPath + "hermes-release.aar") 207 | } else { 208 | implementation jscFlavor 209 | } 210 | } 211 | 212 | // Run this once to be able to run the application with BUCK 213 | // puts all compile dependencies into folder libs for BUCK to use 214 | task copyDownloadableDepsToLibs(type: Copy) { 215 | from configurations.compile 216 | into 'libs' 217 | } 218 | 219 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 220 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/debug.keystore -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/jbcbros/qBitRemote/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.jbcbros.qBitRemote; 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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/jbcbros/qBitRemote/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.jbcbros.qBitRemote; 2 | import android.content.res.Configuration; 3 | import android.content.Intent; 4 | 5 | import android.os.Bundle; 6 | 7 | import com.facebook.react.ReactActivity; 8 | import com.facebook.react.ReactActivityDelegate; 9 | import com.facebook.react.ReactRootView; 10 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 11 | 12 | import expo.modules.splashscreen.singletons.SplashScreen; 13 | import expo.modules.splashscreen.SplashScreenImageResizeMode; 14 | 15 | 16 | public class MainActivity extends ReactActivity { 17 | 18 | // Added automatically by Expo Config 19 | @Override 20 | public void onConfigurationChanged(Configuration newConfig) { 21 | super.onConfigurationChanged(newConfig); 22 | Intent intent = new Intent("onConfigurationChanged"); 23 | intent.putExtra("newConfig", newConfig); 24 | sendBroadcast(intent); 25 | } 26 | 27 | @Override 28 | protected void onCreate(Bundle savedInstanceState) { 29 | // Set the theme to AppTheme BEFORE onCreate to support 30 | // coloring the background, status bar, and navigation bar. 31 | // This is required for expo-splash-screen. 32 | setTheme(R.style.AppTheme); 33 | super.onCreate(null); 34 | // @generated begin expo-splash-screen-mainActivity-onCreate-show-splash - expo prebuild (DO NOT MODIFY) sync-8915a20732e7fda227585f9b6ef0d38bef4fbbbe 35 | SplashScreen.show(this, SplashScreenImageResizeMode.CONTAIN, ReactRootView.class, false); 36 | // @generated end expo-splash-screen-mainActivity-onCreate-show-splash 37 | // SplashScreen.show(...) has to be called after super.onCreate(...) 38 | // Below line is handled by '@expo/configure-splash-screen' command and it's discouraged to modify it manually 39 | } 40 | 41 | 42 | /** 43 | * Returns the name of the main component registered from JavaScript. 44 | * This is used to schedule rendering of the component. 45 | */ 46 | @Override 47 | protected String getMainComponentName() { 48 | return "main"; 49 | } 50 | 51 | @Override 52 | protected ReactActivityDelegate createReactActivityDelegate() { 53 | return new ReactActivityDelegate(this, getMainComponentName()) { 54 | @Override 55 | protected ReactRootView createRootView() { 56 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 57 | } 58 | }; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/jbcbros/qBitRemote/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.jbcbros.qBitRemote; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import android.net.Uri; 6 | 7 | import com.facebook.react.PackageList; 8 | import com.facebook.react.ReactApplication; 9 | import com.facebook.react.ReactInstanceManager; 10 | import com.facebook.react.ReactNativeHost; 11 | import com.facebook.react.ReactPackage; 12 | import com.facebook.react.shell.MainReactPackage; 13 | import com.facebook.soloader.SoLoader; 14 | import com.jbcbros.qBitRemote.generated.BasePackageList; 15 | 16 | import org.unimodules.adapters.react.ReactAdapterPackage; 17 | import org.unimodules.adapters.react.ModuleRegistryAdapter; 18 | import org.unimodules.adapters.react.ReactModuleRegistryProvider; 19 | import org.unimodules.core.interfaces.Package; 20 | import org.unimodules.core.interfaces.SingletonModule; 21 | import expo.modules.updates.UpdatesController; 22 | 23 | import com.facebook.react.bridge.JSIModulePackage; 24 | import com.swmansion.reanimated.ReanimatedJSIModulePackage; 25 | 26 | import java.lang.reflect.InvocationTargetException; 27 | import java.util.Arrays; 28 | import java.util.List; 29 | import javax.annotation.Nullable; 30 | 31 | public class MainApplication extends Application implements ReactApplication { 32 | private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider( 33 | new BasePackageList().getPackageList() 34 | ); 35 | 36 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 37 | @Override 38 | public boolean getUseDeveloperSupport() { 39 | return BuildConfig.DEBUG; 40 | } 41 | 42 | @Override 43 | protected List getPackages() { 44 | List packages = new PackageList(this).getPackages(); 45 | packages.add(new ModuleRegistryAdapter(mModuleRegistryProvider)); 46 | return packages; 47 | } 48 | 49 | @Override 50 | protected String getJSMainModuleName() { 51 | return "index"; 52 | } 53 | 54 | @Override 55 | protected JSIModulePackage getJSIModulePackage() { 56 | return new ReanimatedJSIModulePackage(); 57 | } 58 | 59 | @Override 60 | protected @Nullable String getJSBundleFile() { 61 | if (BuildConfig.DEBUG) { 62 | return super.getJSBundleFile(); 63 | } else { 64 | return UpdatesController.getInstance().getLaunchAssetFile(); 65 | } 66 | } 67 | 68 | @Override 69 | protected @Nullable String getBundleAssetName() { 70 | if (BuildConfig.DEBUG) { 71 | return super.getBundleAssetName(); 72 | } else { 73 | return UpdatesController.getInstance().getBundleAssetName(); 74 | } 75 | } 76 | }; 77 | 78 | @Override 79 | public ReactNativeHost getReactNativeHost() { 80 | return mReactNativeHost; 81 | } 82 | 83 | @Override 84 | public void onCreate() { 85 | super.onCreate(); 86 | SoLoader.init(this, /* native exopackage */ false); 87 | 88 | if (!BuildConfig.DEBUG) { 89 | UpdatesController.initialize(this); 90 | } 91 | 92 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 93 | } 94 | 95 | /** 96 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 97 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 98 | * 99 | * @param context 100 | * @param reactInstanceManager 101 | */ 102 | private static void initializeFlipper( 103 | Context context, ReactInstanceManager reactInstanceManager) { 104 | if (BuildConfig.DEBUG) { 105 | try { 106 | /* 107 | We use reflection here to pick up the class that initializes Flipper, 108 | since Flipper library is not available in release mode 109 | */ 110 | Class aClass = Class.forName("com.jbcbros.qBitRemote.ReactNativeFlipper"); 111 | aClass 112 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 113 | .invoke(null, context, reactInstanceManager); 114 | } catch (ClassNotFoundException e) { 115 | e.printStackTrace(); 116 | } catch (NoSuchMethodException e) { 117 | e.printStackTrace(); 118 | } catch (IllegalAccessException e) { 119 | e.printStackTrace(); 120 | } catch (InvocationTargetException e) { 121 | e.printStackTrace(); 122 | } 123 | } 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/jbcbros/qBitRemote/generated/BasePackageList.java: -------------------------------------------------------------------------------- 1 | package com.jbcbros.qBitRemote.generated; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | import org.unimodules.core.interfaces.Package; 6 | 7 | public class BasePackageList { 8 | public List getPackageList() { 9 | return Arrays.asList( 10 | new expo.modules.application.ApplicationPackage(), 11 | new expo.modules.constants.ConstantsPackage(), 12 | new expo.modules.documentpicker.DocumentPickerPackage(), 13 | new expo.modules.errorrecovery.ErrorRecoveryPackage(), 14 | new expo.modules.filesystem.FileSystemPackage(), 15 | new expo.modules.font.FontLoaderPackage(), 16 | new expo.modules.imageloader.ImageLoaderPackage(), 17 | new expo.modules.keepawake.KeepAwakePackage(), 18 | new expo.modules.securestore.SecureStorePackage(), 19 | new expo.modules.splashscreen.SplashScreenPackage(), 20 | new expo.modules.updates.UpdatesPackage(), 21 | new expo.modules.webbrowser.WebBrowserPackage() 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/drawable-hdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/drawable-mdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/splashscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ffffff 4 | #ffffff 5 | #023c69 6 | #ffffff 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | qBitRemote 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 17 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 30 8 | targetSdkVersion = 30 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:4.1.0") 16 | 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # 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.54.0 30 | 31 | # The hosted JavaScript engine 32 | # Supported values: expo.jsEngine = "hermes" | "jsc" 33 | expo.jsEngine=jsc 34 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /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 init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'qBitRemote' 2 | 3 | apply from: '../node_modules/react-native-unimodules/gradle.groovy' 4 | includeUnimodulesProjects() 5 | 6 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); 7 | applyNativeModulesSettingsGradle(settings) 8 | 9 | include ':app' 10 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "name": "qBitRemote", 4 | "slug": "qBitRemote", 5 | "version": "1.0.0", 6 | "orientation": "portrait", 7 | "icon": "./assets/images/icon2.png", 8 | "privacy": "unlisted", 9 | "scheme": "qbitremote", 10 | "userInterfaceStyle": "automatic", 11 | "splash": { 12 | "image": "./assets/images/splash.png", 13 | "resizeMode": "contain", 14 | "backgroundColor": "#ffffff" 15 | }, 16 | "updates": { 17 | "fallbackToCacheTimeout": 0 18 | }, 19 | "assetBundlePatterns": [ 20 | "**/*" 21 | ], 22 | "ios": { 23 | "supportsTablet": true, 24 | "bundleIdentifier": "com.jbcbros2.qBitRemote" 25 | }, 26 | "android": { 27 | "adaptiveIcon": { 28 | "foregroundImage": "./assets/images/adaptive-icon.png", 29 | "backgroundColor": "#ffffff" 30 | }, 31 | "package": "com.jbcbros.qBitRemote" 32 | }, 33 | "web": { 34 | "favicon": "./assets/images/favicon.png" 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /assets/fonts/SpaceMono-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/fonts/SpaceMono-Regular.ttf -------------------------------------------------------------------------------- /assets/images/Auther.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/Auther.jpg -------------------------------------------------------------------------------- /assets/images/adaptive-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/adaptive-icon.png -------------------------------------------------------------------------------- /assets/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/favicon.png -------------------------------------------------------------------------------- /assets/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/icon.png -------------------------------------------------------------------------------- /assets/images/icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/icon2.png -------------------------------------------------------------------------------- /assets/images/logo-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/logo-sm.png -------------------------------------------------------------------------------- /assets/images/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/assets/images/splash.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /components/EditScreenInfo.tsx: -------------------------------------------------------------------------------- 1 | import * as WebBrowser from 'expo-web-browser'; 2 | import React, { useState, useEffect, useContext } from 'react'; 3 | import AppContext from '../global/AppContext' 4 | 5 | import { StyleSheet, TouchableOpacity } from 'react-native'; 6 | 7 | import Colors from '../constants/Colors'; 8 | import { MonoText } from './StyledText'; 9 | import { Text, View } from './Themed'; 10 | 11 | export default function EditScreenInfo({ path }: { path: string }) { 12 | const userSettings: any = useContext(AppContext); 13 | 14 | return ( 15 | 16 | 17 | 21 | A React Native project by JBCBRO, enables remote control of qBittorrent v4.5 + webui. 22 | The current version is 23 | 24 | 25 | 26 | 27 | 31 | qBitRemote v. 1 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | {userSettings.host} 40 | {userSettings.port} 41 | {userSettings.username} 42 | 43 | 44 | 45 | 46 | 47 | ); 48 | } 49 | 50 | function handleHelpPress() { 51 | WebBrowser.openBrowserAsync( 52 | 'https://docs.expo.io/get-started/create-a-new-app/#opening-the-app-on-your-phonetablet' 53 | ); 54 | } 55 | 56 | const styles = StyleSheet.create({ 57 | getStartedContainer: { 58 | alignItems: 'center', 59 | marginHorizontal: 50, 60 | }, 61 | homeScreenFilename: { 62 | marginVertical: 7, 63 | }, 64 | codeHighlightContainer: { 65 | borderRadius: 3, 66 | paddingHorizontal: 4, 67 | }, 68 | getStartedText: { 69 | fontSize: 17, 70 | lineHeight: 24, 71 | textAlign: 'center', 72 | }, 73 | helpContainer: { 74 | marginTop: 15, 75 | marginHorizontal: 20, 76 | alignItems: 'center', 77 | }, 78 | helpLink: { 79 | paddingVertical: 15, 80 | }, 81 | helpLinkText: { 82 | textAlign: 'center', 83 | }, 84 | }); 85 | -------------------------------------------------------------------------------- /components/StyledText.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import { Text, TextProps } from './Themed'; 4 | 5 | export function MonoText(props: TextProps) { 6 | return ; 7 | } 8 | -------------------------------------------------------------------------------- /components/Themed.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Learn more about Light and Dark modes: 3 | * https://docs.expo.io/guides/color-schemes/ 4 | */ 5 | 6 | import * as React from 'react'; 7 | import { Text as DefaultText, View as DefaultView } from 'react-native'; 8 | 9 | import Colors from '../constants/Colors'; 10 | import useColorScheme from '../hooks/useColorScheme'; 11 | 12 | export function useThemeColor( 13 | props: { light?: string; dark?: string }, 14 | colorName: keyof typeof Colors.light & keyof typeof Colors.dark 15 | ) { 16 | const theme = useColorScheme(); 17 | const colorFromProps = props[theme]; 18 | 19 | if (colorFromProps) { 20 | return colorFromProps; 21 | } else { 22 | return Colors[theme][colorName]; 23 | } 24 | } 25 | 26 | type ThemeProps = { 27 | lightColor?: string; 28 | darkColor?: string; 29 | }; 30 | 31 | export type TextProps = ThemeProps & DefaultText['props']; 32 | export type ViewProps = ThemeProps & DefaultView['props']; 33 | 34 | export function Text(props: TextProps) { 35 | const { style, lightColor, darkColor, ...otherProps } = props; 36 | const color = useThemeColor({ light: lightColor, dark: darkColor }, 'text'); 37 | 38 | return ; 39 | } 40 | 41 | export function View(props: ViewProps) { 42 | const { style, lightColor, darkColor, ...otherProps } = props; 43 | const backgroundColor = useThemeColor({ light: lightColor, dark: darkColor }, 'background'); 44 | 45 | return ; 46 | } 47 | -------------------------------------------------------------------------------- /components/__tests__/StyledText-test.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import renderer from 'react-test-renderer'; 3 | 4 | import { MonoText } from '../StyledText'; 5 | 6 | it(`renders correctly`, () => { 7 | const tree = renderer.create(Snapshot test!).toJSON(); 8 | 9 | expect(tree).toMatchSnapshot(); 10 | }); 11 | -------------------------------------------------------------------------------- /constants/Colors.ts: -------------------------------------------------------------------------------- 1 | const tintColorLight = '#2f95dc'; 2 | const tintColorDark = '#fff'; 3 | 4 | export default { 5 | light: { 6 | text: '#000', 7 | background: '#fff', 8 | tint: tintColorLight, 9 | tabIconDefault: '#ccc', 10 | tabIconSelected: tintColorLight, 11 | }, 12 | dark: { 13 | text: '#fff', 14 | background: '#000', 15 | tint: tintColorDark, 16 | tabIconDefault: '#ccc', 17 | tabIconSelected: tintColorDark, 18 | }, 19 | }; 20 | -------------------------------------------------------------------------------- /constants/Layout.ts: -------------------------------------------------------------------------------- 1 | import { Dimensions } from 'react-native'; 2 | 3 | const width = Dimensions.get('window').width; 4 | const height = Dimensions.get('window').height; 5 | 6 | export default { 7 | window: { 8 | width, 9 | height, 10 | }, 11 | isSmallDevice: width < 375, 12 | }; 13 | -------------------------------------------------------------------------------- /global/AppContext.tsx: -------------------------------------------------------------------------------- 1 | // components/AppContext.js 2 | import React from "react"; 3 | 4 | const AppContext = React.createContext(); 5 | 6 | export default AppContext; -------------------------------------------------------------------------------- /hooks/useCachedResources.ts: -------------------------------------------------------------------------------- 1 | import { Ionicons } from '@expo/vector-icons'; 2 | import * as Font from 'expo-font'; 3 | import * as SplashScreen from 'expo-splash-screen'; 4 | import * as React from 'react'; 5 | 6 | export default function useCachedResources() { 7 | const [isLoadingComplete, setLoadingComplete] = React.useState(false); 8 | 9 | // Load any resources or data that we need prior to rendering the app 10 | React.useEffect(() => { 11 | async function loadResourcesAndDataAsync() { 12 | try { 13 | SplashScreen.preventAutoHideAsync(); 14 | 15 | // Load fonts 16 | await Font.loadAsync({ 17 | ...Ionicons.font, 18 | 'space-mono': require('../assets/fonts/SpaceMono-Regular.ttf'), 19 | }); 20 | } catch (e) { 21 | // We might want to provide this error information to an error reporting service 22 | console.warn(e); 23 | } finally { 24 | setLoadingComplete(true); 25 | SplashScreen.hideAsync(); 26 | } 27 | } 28 | 29 | loadResourcesAndDataAsync(); 30 | }, []); 31 | 32 | return isLoadingComplete; 33 | } 34 | -------------------------------------------------------------------------------- /hooks/useColorScheme.ts: -------------------------------------------------------------------------------- 1 | import { ColorSchemeName, useColorScheme as _useColorScheme } from 'react-native'; 2 | 3 | // The useColorScheme value is always either light or dark, but the built-in 4 | // type suggests that it can be null. This will not happen in practice, so this 5 | // makes it a bit easier to work with. 6 | export default function useColorScheme(): NonNullable { 7 | return _useColorScheme() as NonNullable; 8 | } 9 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import 'react-native-gesture-handler'; 2 | import { registerRootComponent } from 'expo'; 3 | 4 | import App from './App'; 5 | 6 | // registerRootComponent calls AppRegistry.registerComponent('main', () => App); 7 | // It also ensures that whether you load the app in Expo Go or in a native build, 8 | // the environment is set up appropriately 9 | registerRootComponent(App); 10 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/react-native-unimodules/cocoapods.rb' 3 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 4 | 5 | platform :ios, '11.0' 6 | 7 | target 'qBitRemote' do 8 | use_unimodules! 9 | config = use_native_modules! 10 | 11 | use_react_native!(:path => config["reactNativePath"]) 12 | 13 | # Uncomment to opt-in to using Flipper 14 | # 15 | # if !ENV['CI'] 16 | # use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1') 17 | # post_install do |installer| 18 | # flipper_post_install(installer) 19 | # end 20 | # end 21 | end 22 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - EXApplication (3.2.0): 5 | - UMCore 6 | - EXConstants (11.0.1): 7 | - ExpoModulesCore 8 | - UMCore 9 | - EXDocumentPicker (9.2.4): 10 | - ExpoModulesCore 11 | - UMCore 12 | - EXErrorRecovery (2.2.0): 13 | - UMCore 14 | - EXFileSystem (11.1.3): 15 | - ExpoModulesCore 16 | - UMCore 17 | - EXFont (9.2.1): 18 | - ExpoModulesCore 19 | - UMCore 20 | - EXImageLoader (2.2.0): 21 | - ExpoModulesCore 22 | - React-Core 23 | - UMCore 24 | - EXKeepAwake (9.2.0): 25 | - UMCore 26 | - ExpoModulesCore (0.2.0): 27 | - ExpoModulesCore/Core (= 0.2.0) 28 | - ExpoModulesCore/Interfaces (= 0.2.0) 29 | - UMCore 30 | - ExpoModulesCore/Core (0.2.0): 31 | - UMCore 32 | - ExpoModulesCore/Interfaces (0.2.0): 33 | - ExpoModulesCore/Core 34 | - UMCore 35 | - EXSecureStore (10.2.0): 36 | - UMCore 37 | - EXSplashScreen (0.11.2): 38 | - React-Core 39 | - UMCore 40 | - EXStructuredHeaders (1.1.1): 41 | - UMCore 42 | - EXUpdates (0.8.4): 43 | - EXStructuredHeaders 44 | - EXUpdatesInterface 45 | - React-Core 46 | - UMCore 47 | - EXUpdatesInterface (0.2.2) 48 | - EXWebBrowser (9.2.0): 49 | - UMCore 50 | - FBLazyVector (0.63.4) 51 | - FBReactNativeSpec (0.63.4): 52 | - Folly (= 2020.01.13.00) 53 | - RCTRequired (= 0.63.4) 54 | - RCTTypeSafety (= 0.63.4) 55 | - React-Core (= 0.63.4) 56 | - React-jsi (= 0.63.4) 57 | - ReactCommon/turbomodule/core (= 0.63.4) 58 | - Folly (2020.01.13.00): 59 | - boost-for-react-native 60 | - DoubleConversion 61 | - Folly/Default (= 2020.01.13.00) 62 | - glog 63 | - Folly/Default (2020.01.13.00): 64 | - boost-for-react-native 65 | - DoubleConversion 66 | - glog 67 | - glog (0.3.5) 68 | - RCTRequired (0.63.4) 69 | - RCTTypeSafety (0.63.4): 70 | - FBLazyVector (= 0.63.4) 71 | - Folly (= 2020.01.13.00) 72 | - RCTRequired (= 0.63.4) 73 | - React-Core (= 0.63.4) 74 | - React (0.63.4): 75 | - React-Core (= 0.63.4) 76 | - React-Core/DevSupport (= 0.63.4) 77 | - React-Core/RCTWebSocket (= 0.63.4) 78 | - React-RCTActionSheet (= 0.63.4) 79 | - React-RCTAnimation (= 0.63.4) 80 | - React-RCTBlob (= 0.63.4) 81 | - React-RCTImage (= 0.63.4) 82 | - React-RCTLinking (= 0.63.4) 83 | - React-RCTNetwork (= 0.63.4) 84 | - React-RCTSettings (= 0.63.4) 85 | - React-RCTText (= 0.63.4) 86 | - React-RCTVibration (= 0.63.4) 87 | - React-callinvoker (0.63.4) 88 | - React-Core (0.63.4): 89 | - Folly (= 2020.01.13.00) 90 | - glog 91 | - React-Core/Default (= 0.63.4) 92 | - React-cxxreact (= 0.63.4) 93 | - React-jsi (= 0.63.4) 94 | - React-jsiexecutor (= 0.63.4) 95 | - Yoga 96 | - React-Core/CoreModulesHeaders (0.63.4): 97 | - Folly (= 2020.01.13.00) 98 | - glog 99 | - React-Core/Default 100 | - React-cxxreact (= 0.63.4) 101 | - React-jsi (= 0.63.4) 102 | - React-jsiexecutor (= 0.63.4) 103 | - Yoga 104 | - React-Core/Default (0.63.4): 105 | - Folly (= 2020.01.13.00) 106 | - glog 107 | - React-cxxreact (= 0.63.4) 108 | - React-jsi (= 0.63.4) 109 | - React-jsiexecutor (= 0.63.4) 110 | - Yoga 111 | - React-Core/DevSupport (0.63.4): 112 | - Folly (= 2020.01.13.00) 113 | - glog 114 | - React-Core/Default (= 0.63.4) 115 | - React-Core/RCTWebSocket (= 0.63.4) 116 | - React-cxxreact (= 0.63.4) 117 | - React-jsi (= 0.63.4) 118 | - React-jsiexecutor (= 0.63.4) 119 | - React-jsinspector (= 0.63.4) 120 | - Yoga 121 | - React-Core/RCTActionSheetHeaders (0.63.4): 122 | - Folly (= 2020.01.13.00) 123 | - glog 124 | - React-Core/Default 125 | - React-cxxreact (= 0.63.4) 126 | - React-jsi (= 0.63.4) 127 | - React-jsiexecutor (= 0.63.4) 128 | - Yoga 129 | - React-Core/RCTAnimationHeaders (0.63.4): 130 | - Folly (= 2020.01.13.00) 131 | - glog 132 | - React-Core/Default 133 | - React-cxxreact (= 0.63.4) 134 | - React-jsi (= 0.63.4) 135 | - React-jsiexecutor (= 0.63.4) 136 | - Yoga 137 | - React-Core/RCTBlobHeaders (0.63.4): 138 | - Folly (= 2020.01.13.00) 139 | - glog 140 | - React-Core/Default 141 | - React-cxxreact (= 0.63.4) 142 | - React-jsi (= 0.63.4) 143 | - React-jsiexecutor (= 0.63.4) 144 | - Yoga 145 | - React-Core/RCTImageHeaders (0.63.4): 146 | - Folly (= 2020.01.13.00) 147 | - glog 148 | - React-Core/Default 149 | - React-cxxreact (= 0.63.4) 150 | - React-jsi (= 0.63.4) 151 | - React-jsiexecutor (= 0.63.4) 152 | - Yoga 153 | - React-Core/RCTLinkingHeaders (0.63.4): 154 | - Folly (= 2020.01.13.00) 155 | - glog 156 | - React-Core/Default 157 | - React-cxxreact (= 0.63.4) 158 | - React-jsi (= 0.63.4) 159 | - React-jsiexecutor (= 0.63.4) 160 | - Yoga 161 | - React-Core/RCTNetworkHeaders (0.63.4): 162 | - Folly (= 2020.01.13.00) 163 | - glog 164 | - React-Core/Default 165 | - React-cxxreact (= 0.63.4) 166 | - React-jsi (= 0.63.4) 167 | - React-jsiexecutor (= 0.63.4) 168 | - Yoga 169 | - React-Core/RCTSettingsHeaders (0.63.4): 170 | - Folly (= 2020.01.13.00) 171 | - glog 172 | - React-Core/Default 173 | - React-cxxreact (= 0.63.4) 174 | - React-jsi (= 0.63.4) 175 | - React-jsiexecutor (= 0.63.4) 176 | - Yoga 177 | - React-Core/RCTTextHeaders (0.63.4): 178 | - Folly (= 2020.01.13.00) 179 | - glog 180 | - React-Core/Default 181 | - React-cxxreact (= 0.63.4) 182 | - React-jsi (= 0.63.4) 183 | - React-jsiexecutor (= 0.63.4) 184 | - Yoga 185 | - React-Core/RCTVibrationHeaders (0.63.4): 186 | - Folly (= 2020.01.13.00) 187 | - glog 188 | - React-Core/Default 189 | - React-cxxreact (= 0.63.4) 190 | - React-jsi (= 0.63.4) 191 | - React-jsiexecutor (= 0.63.4) 192 | - Yoga 193 | - React-Core/RCTWebSocket (0.63.4): 194 | - Folly (= 2020.01.13.00) 195 | - glog 196 | - React-Core/Default (= 0.63.4) 197 | - React-cxxreact (= 0.63.4) 198 | - React-jsi (= 0.63.4) 199 | - React-jsiexecutor (= 0.63.4) 200 | - Yoga 201 | - React-CoreModules (0.63.4): 202 | - FBReactNativeSpec (= 0.63.4) 203 | - Folly (= 2020.01.13.00) 204 | - RCTTypeSafety (= 0.63.4) 205 | - React-Core/CoreModulesHeaders (= 0.63.4) 206 | - React-jsi (= 0.63.4) 207 | - React-RCTImage (= 0.63.4) 208 | - ReactCommon/turbomodule/core (= 0.63.4) 209 | - React-cxxreact (0.63.4): 210 | - boost-for-react-native (= 1.63.0) 211 | - DoubleConversion 212 | - Folly (= 2020.01.13.00) 213 | - glog 214 | - React-callinvoker (= 0.63.4) 215 | - React-jsinspector (= 0.63.4) 216 | - React-jsi (0.63.4): 217 | - boost-for-react-native (= 1.63.0) 218 | - DoubleConversion 219 | - Folly (= 2020.01.13.00) 220 | - glog 221 | - React-jsi/Default (= 0.63.4) 222 | - React-jsi/Default (0.63.4): 223 | - boost-for-react-native (= 1.63.0) 224 | - DoubleConversion 225 | - Folly (= 2020.01.13.00) 226 | - glog 227 | - React-jsiexecutor (0.63.4): 228 | - DoubleConversion 229 | - Folly (= 2020.01.13.00) 230 | - glog 231 | - React-cxxreact (= 0.63.4) 232 | - React-jsi (= 0.63.4) 233 | - React-jsinspector (0.63.4) 234 | - react-native-safe-area-context (3.2.0): 235 | - React-Core 236 | - React-RCTActionSheet (0.63.4): 237 | - React-Core/RCTActionSheetHeaders (= 0.63.4) 238 | - React-RCTAnimation (0.63.4): 239 | - FBReactNativeSpec (= 0.63.4) 240 | - Folly (= 2020.01.13.00) 241 | - RCTTypeSafety (= 0.63.4) 242 | - React-Core/RCTAnimationHeaders (= 0.63.4) 243 | - React-jsi (= 0.63.4) 244 | - ReactCommon/turbomodule/core (= 0.63.4) 245 | - React-RCTBlob (0.63.4): 246 | - FBReactNativeSpec (= 0.63.4) 247 | - Folly (= 2020.01.13.00) 248 | - React-Core/RCTBlobHeaders (= 0.63.4) 249 | - React-Core/RCTWebSocket (= 0.63.4) 250 | - React-jsi (= 0.63.4) 251 | - React-RCTNetwork (= 0.63.4) 252 | - ReactCommon/turbomodule/core (= 0.63.4) 253 | - React-RCTImage (0.63.4): 254 | - FBReactNativeSpec (= 0.63.4) 255 | - Folly (= 2020.01.13.00) 256 | - RCTTypeSafety (= 0.63.4) 257 | - React-Core/RCTImageHeaders (= 0.63.4) 258 | - React-jsi (= 0.63.4) 259 | - React-RCTNetwork (= 0.63.4) 260 | - ReactCommon/turbomodule/core (= 0.63.4) 261 | - React-RCTLinking (0.63.4): 262 | - FBReactNativeSpec (= 0.63.4) 263 | - React-Core/RCTLinkingHeaders (= 0.63.4) 264 | - React-jsi (= 0.63.4) 265 | - ReactCommon/turbomodule/core (= 0.63.4) 266 | - React-RCTNetwork (0.63.4): 267 | - FBReactNativeSpec (= 0.63.4) 268 | - Folly (= 2020.01.13.00) 269 | - RCTTypeSafety (= 0.63.4) 270 | - React-Core/RCTNetworkHeaders (= 0.63.4) 271 | - React-jsi (= 0.63.4) 272 | - ReactCommon/turbomodule/core (= 0.63.4) 273 | - React-RCTSettings (0.63.4): 274 | - FBReactNativeSpec (= 0.63.4) 275 | - Folly (= 2020.01.13.00) 276 | - RCTTypeSafety (= 0.63.4) 277 | - React-Core/RCTSettingsHeaders (= 0.63.4) 278 | - React-jsi (= 0.63.4) 279 | - ReactCommon/turbomodule/core (= 0.63.4) 280 | - React-RCTText (0.63.4): 281 | - React-Core/RCTTextHeaders (= 0.63.4) 282 | - React-RCTVibration (0.63.4): 283 | - FBReactNativeSpec (= 0.63.4) 284 | - Folly (= 2020.01.13.00) 285 | - React-Core/RCTVibrationHeaders (= 0.63.4) 286 | - React-jsi (= 0.63.4) 287 | - ReactCommon/turbomodule/core (= 0.63.4) 288 | - ReactCommon/turbomodule/core (0.63.4): 289 | - DoubleConversion 290 | - Folly (= 2020.01.13.00) 291 | - glog 292 | - React-callinvoker (= 0.63.4) 293 | - React-Core (= 0.63.4) 294 | - React-cxxreact (= 0.63.4) 295 | - React-jsi (= 0.63.4) 296 | - RNCMaskedView (0.1.10): 297 | - React 298 | - RNGestureHandler (1.10.3): 299 | - React-Core 300 | - RNReanimated (2.2.0): 301 | - DoubleConversion 302 | - FBLazyVector 303 | - FBReactNativeSpec 304 | - Folly 305 | - glog 306 | - RCTRequired 307 | - RCTTypeSafety 308 | - React 309 | - React-callinvoker 310 | - React-Core 311 | - React-Core/DevSupport 312 | - React-Core/RCTWebSocket 313 | - React-CoreModules 314 | - React-cxxreact 315 | - React-jsi 316 | - React-jsiexecutor 317 | - React-jsinspector 318 | - React-RCTActionSheet 319 | - React-RCTAnimation 320 | - React-RCTBlob 321 | - React-RCTImage 322 | - React-RCTLinking 323 | - React-RCTNetwork 324 | - React-RCTSettings 325 | - React-RCTText 326 | - React-RCTVibration 327 | - ReactCommon/turbomodule/core 328 | - Yoga 329 | - RNScreens (3.4.0): 330 | - React-Core 331 | - React-RCTImage 332 | - UMAppLoader (2.2.0) 333 | - UMCore (7.1.1) 334 | - UMReactNativeAdapter (6.3.5): 335 | - ExpoModulesCore 336 | - React-Core 337 | - UMCore 338 | - UMTaskManagerInterface (6.2.0): 339 | - UMCore 340 | - Yoga (1.14.0) 341 | 342 | DEPENDENCIES: 343 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 344 | - EXApplication (from `../node_modules/expo-application/ios`) 345 | - EXConstants (from `../node_modules/expo-constants/ios`) 346 | - EXDocumentPicker (from `../node_modules/expo-document-picker/ios`) 347 | - EXErrorRecovery (from `../node_modules/expo-error-recovery/ios`) 348 | - EXFileSystem (from `../node_modules/expo-file-system/ios`) 349 | - EXFont (from `../node_modules/expo-font/ios`) 350 | - EXImageLoader (from `../node_modules/expo-image-loader/ios`) 351 | - EXKeepAwake (from `../node_modules/expo-keep-awake/ios`) 352 | - ExpoModulesCore (from `../node_modules/expo-modules-core/ios`) 353 | - EXSecureStore (from `../node_modules/expo-secure-store/ios`) 354 | - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`) 355 | - EXStructuredHeaders (from `../node_modules/expo-structured-headers/ios`) 356 | - EXUpdates (from `../node_modules/expo-updates/ios`) 357 | - EXUpdatesInterface (from `../node_modules/expo-updates-interface/ios`) 358 | - EXWebBrowser (from `../node_modules/expo-web-browser/ios`) 359 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 360 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 361 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 362 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 363 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 364 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 365 | - React (from `../node_modules/react-native/`) 366 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 367 | - React-Core (from `../node_modules/react-native/`) 368 | - React-Core/DevSupport (from `../node_modules/react-native/`) 369 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 370 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 371 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 372 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 373 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 374 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 375 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) 376 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 377 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 378 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 379 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 380 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 381 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 382 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 383 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 384 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 385 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 386 | - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" 387 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 388 | - RNReanimated (from `../node_modules/react-native-reanimated`) 389 | - RNScreens (from `../node_modules/react-native-screens`) 390 | - UMAppLoader (from `../node_modules/unimodules-app-loader/ios`) 391 | - "UMCore (from `../node_modules/@unimodules/core/ios`)" 392 | - "UMReactNativeAdapter (from `../node_modules/@unimodules/react-native-adapter/ios`)" 393 | - UMTaskManagerInterface (from `../node_modules/unimodules-task-manager-interface/ios`) 394 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 395 | 396 | SPEC REPOS: 397 | trunk: 398 | - boost-for-react-native 399 | 400 | EXTERNAL SOURCES: 401 | DoubleConversion: 402 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 403 | EXApplication: 404 | :path: "../node_modules/expo-application/ios" 405 | EXConstants: 406 | :path: "../node_modules/expo-constants/ios" 407 | EXDocumentPicker: 408 | :path: "../node_modules/expo-document-picker/ios" 409 | EXErrorRecovery: 410 | :path: "../node_modules/expo-error-recovery/ios" 411 | EXFileSystem: 412 | :path: "../node_modules/expo-file-system/ios" 413 | EXFont: 414 | :path: "../node_modules/expo-font/ios" 415 | EXImageLoader: 416 | :path: "../node_modules/expo-image-loader/ios" 417 | EXKeepAwake: 418 | :path: "../node_modules/expo-keep-awake/ios" 419 | ExpoModulesCore: 420 | :path: "../node_modules/expo-modules-core/ios" 421 | EXSecureStore: 422 | :path: "../node_modules/expo-secure-store/ios" 423 | EXSplashScreen: 424 | :path: "../node_modules/expo-splash-screen/ios" 425 | EXStructuredHeaders: 426 | :path: "../node_modules/expo-structured-headers/ios" 427 | EXUpdates: 428 | :path: "../node_modules/expo-updates/ios" 429 | EXUpdatesInterface: 430 | :path: "../node_modules/expo-updates-interface/ios" 431 | EXWebBrowser: 432 | :path: "../node_modules/expo-web-browser/ios" 433 | FBLazyVector: 434 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 435 | FBReactNativeSpec: 436 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 437 | Folly: 438 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 439 | glog: 440 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 441 | RCTRequired: 442 | :path: "../node_modules/react-native/Libraries/RCTRequired" 443 | RCTTypeSafety: 444 | :path: "../node_modules/react-native/Libraries/TypeSafety" 445 | React: 446 | :path: "../node_modules/react-native/" 447 | React-callinvoker: 448 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 449 | React-Core: 450 | :path: "../node_modules/react-native/" 451 | React-CoreModules: 452 | :path: "../node_modules/react-native/React/CoreModules" 453 | React-cxxreact: 454 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 455 | React-jsi: 456 | :path: "../node_modules/react-native/ReactCommon/jsi" 457 | React-jsiexecutor: 458 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 459 | React-jsinspector: 460 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 461 | react-native-safe-area-context: 462 | :path: "../node_modules/react-native-safe-area-context" 463 | React-RCTActionSheet: 464 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 465 | React-RCTAnimation: 466 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 467 | React-RCTBlob: 468 | :path: "../node_modules/react-native/Libraries/Blob" 469 | React-RCTImage: 470 | :path: "../node_modules/react-native/Libraries/Image" 471 | React-RCTLinking: 472 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 473 | React-RCTNetwork: 474 | :path: "../node_modules/react-native/Libraries/Network" 475 | React-RCTSettings: 476 | :path: "../node_modules/react-native/Libraries/Settings" 477 | React-RCTText: 478 | :path: "../node_modules/react-native/Libraries/Text" 479 | React-RCTVibration: 480 | :path: "../node_modules/react-native/Libraries/Vibration" 481 | ReactCommon: 482 | :path: "../node_modules/react-native/ReactCommon" 483 | RNCMaskedView: 484 | :path: "../node_modules/@react-native-community/masked-view" 485 | RNGestureHandler: 486 | :path: "../node_modules/react-native-gesture-handler" 487 | RNReanimated: 488 | :path: "../node_modules/react-native-reanimated" 489 | RNScreens: 490 | :path: "../node_modules/react-native-screens" 491 | UMAppLoader: 492 | :path: "../node_modules/unimodules-app-loader/ios" 493 | UMCore: 494 | :path: "../node_modules/@unimodules/core/ios" 495 | UMReactNativeAdapter: 496 | :path: "../node_modules/@unimodules/react-native-adapter/ios" 497 | UMTaskManagerInterface: 498 | :path: "../node_modules/unimodules-task-manager-interface/ios" 499 | Yoga: 500 | :path: "../node_modules/react-native/ReactCommon/yoga" 501 | 502 | SPEC CHECKSUMS: 503 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 504 | DoubleConversion: cde416483dac037923206447da6e1454df403714 505 | EXApplication: cdc959fd8b706b039621de03585375f11a066a47 506 | EXConstants: 5fc49c1bf567558e4576befcccb5e99f49f9c2ce 507 | EXDocumentPicker: 484683af715133a58f8c4b17fdaf7e411662f498 508 | EXErrorRecovery: e092308f1fad9030d298e5116585c2d79671c8e6 509 | EXFileSystem: 94496f1160b0bf7f000fe04e38ecb2aa63083a2c 510 | EXFont: cb2350960187470ec54ff4668755abb74fde9839 511 | EXImageLoader: 6494524ac2b99af4edcacada0e19c71600423e59 512 | EXKeepAwake: db7607300383508b9ccf1da5bed4eab541f53e25 513 | ExpoModulesCore: 730c7158b2fb179ba5921230e56a083a2304974d 514 | EXSecureStore: 051e95a9624704313c50e8c95ee65033ce210aee 515 | EXSplashScreen: f9928db64cf96e1e69beebbc3610cc3b2db2d38f 516 | EXStructuredHeaders: 5c1dfd030edc0128927fe3cb7ec73bec84b73ab4 517 | EXUpdates: ef6e5120c03bcb2b98eb4a271eaa97aa5b12474b 518 | EXUpdatesInterface: e4c4c7b7c49250314ad7137ffca09446c5b2c492 519 | EXWebBrowser: 8bd1e653ac73114cc126eeff5fb2b2fedf9e1fb0 520 | FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e 521 | FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e 522 | Folly: b73c3869541e86821df3c387eb0af5f65addfab4 523 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 524 | RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e 525 | RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b 526 | React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 527 | React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe 528 | React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b 529 | React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60 530 | React-cxxreact: c1480d4fda5720086c90df537ee7d285d4c57ac3 531 | React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 532 | React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 533 | React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a 534 | react-native-safe-area-context: e471852c5ed67eea4b10c5d9d43c1cebae3b231d 535 | React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 536 | React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b 537 | React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0 538 | React-RCTImage: c1b1f2d3f43a4a528c8946d6092384b5c880d2f0 539 | React-RCTLinking: 35ae4ab9dc0410d1fcbdce4d7623194a27214fb2 540 | React-RCTNetwork: 29ec2696f8d8cfff7331fac83d3e893c95ef43ae 541 | React-RCTSettings: 60f0691bba2074ef394f95d4c2265ec284e0a46a 542 | React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c 543 | React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d 544 | ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b 545 | RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459 546 | RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211 547 | RNReanimated: d9da990fc90123f4ffbfdda93d00fc15174863a8 548 | RNScreens: 21b73c94c9117e1110a79ee0ee80c93ccefed8ce 549 | UMAppLoader: db2dae4bc3085e21f56d6d9cf7783d08c5999af4 550 | UMCore: 063edcab3a9de0c44301fe77af147aa1a654b40f 551 | UMReactNativeAdapter: 548b3f6ae0e814ce55c8b2059ac1dc4bf43ec2db 552 | UMTaskManagerInterface: 75462b0d8580ec91ae23f88a4f9271a3130efb02 553 | Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 554 | 555 | PODFILE CHECKSUM: dfd1e9f6692d02e8b3eb03eb49442b5464687669 556 | 557 | COCOAPODS: 1.10.1 558 | -------------------------------------------------------------------------------- /ios/qBitRemote.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.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; }; 15 | 96905EF65AED1B983A6B3ABC /* libPods-qBitRemote.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-qBitRemote.a */; }; 16 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; }; 17 | C46E1668F8F1403DB2F9E9CA /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B836F2A1F124123971C0BD1 /* noop-file.swift */; }; 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 /* qBitRemote.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = qBitRemote.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = qBitRemote/AppDelegate.h; sourceTree = ""; }; 24 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = qBitRemote/AppDelegate.m; sourceTree = ""; }; 25 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 26 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = qBitRemote/Images.xcassets; sourceTree = ""; }; 27 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = qBitRemote/Info.plist; sourceTree = ""; }; 28 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = qBitRemote/main.m; sourceTree = ""; }; 29 | 2B836F2A1F124123971C0BD1 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "qBitRemote/noop-file.swift"; sourceTree = ""; }; 30 | 3623FDE791454DEDA82AC783 /* qBitRemote-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "qBitRemote-Bridging-Header.h"; path = "qBitRemote/qBitRemote-Bridging-Header.h"; sourceTree = ""; }; 31 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-qBitRemote.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-qBitRemote.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 6C2E3173556A471DD304B334 /* Pods-qBitRemote.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-qBitRemote.debug.xcconfig"; path = "Target Support Files/Pods-qBitRemote/Pods-qBitRemote.debug.xcconfig"; sourceTree = ""; }; 33 | 7A4D352CD337FB3A3BF06240 /* Pods-qBitRemote.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-qBitRemote.release.xcconfig"; path = "Target Support Files/Pods-qBitRemote/Pods-qBitRemote.release.xcconfig"; sourceTree = ""; }; 34 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = qBitRemote/SplashScreen.storyboard; sourceTree = ""; }; 35 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; }; 36 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 37 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 38 | /* End PBXFileReference section */ 39 | 40 | /* Begin PBXFrameworksBuildPhase section */ 41 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 42 | isa = PBXFrameworksBuildPhase; 43 | buildActionMask = 2147483647; 44 | files = ( 45 | 96905EF65AED1B983A6B3ABC /* libPods-qBitRemote.a in Frameworks */, 46 | ); 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | /* End PBXFrameworksBuildPhase section */ 50 | 51 | /* Begin PBXGroup section */ 52 | 13B07FAE1A68108700A75B9A /* qBitRemote */ = { 53 | isa = PBXGroup; 54 | children = ( 55 | BB2F792B24A3F905000567C9 /* Supporting */, 56 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 57 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 58 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 59 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 60 | 13B07FB61A68108700A75B9A /* Info.plist */, 61 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 62 | 13B07FB71A68108700A75B9A /* main.m */, 63 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */, 64 | 2B836F2A1F124123971C0BD1 /* noop-file.swift */, 65 | 3623FDE791454DEDA82AC783 /* qBitRemote-Bridging-Header.h */, 66 | ); 67 | name = qBitRemote; 68 | sourceTree = ""; 69 | }; 70 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 74 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 75 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-qBitRemote.a */, 76 | ); 77 | name = Frameworks; 78 | sourceTree = ""; 79 | }; 80 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | ); 84 | name = Libraries; 85 | sourceTree = ""; 86 | }; 87 | 83CBB9F61A601CBA00E9B192 = { 88 | isa = PBXGroup; 89 | children = ( 90 | 13B07FAE1A68108700A75B9A /* qBitRemote */, 91 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 92 | 83CBBA001A601CBA00E9B192 /* Products */, 93 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 94 | D65327D7A22EEC0BE12398D9 /* Pods */, 95 | ); 96 | indentWidth = 2; 97 | sourceTree = ""; 98 | tabWidth = 2; 99 | usesTabs = 0; 100 | }; 101 | 83CBBA001A601CBA00E9B192 /* Products */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 13B07F961A680F5B00A75B9A /* qBitRemote.app */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | BB2F792B24A3F905000567C9 /* Supporting */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | BB2F792C24A3F905000567C9 /* Expo.plist */, 113 | ); 114 | name = Supporting; 115 | path = qBitRemote/Supporting; 116 | sourceTree = ""; 117 | }; 118 | D65327D7A22EEC0BE12398D9 /* Pods */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 6C2E3173556A471DD304B334 /* Pods-qBitRemote.debug.xcconfig */, 122 | 7A4D352CD337FB3A3BF06240 /* Pods-qBitRemote.release.xcconfig */, 123 | ); 124 | path = Pods; 125 | sourceTree = ""; 126 | }; 127 | /* End PBXGroup section */ 128 | 129 | /* Begin PBXNativeTarget section */ 130 | 13B07F861A680F5B00A75B9A /* qBitRemote */ = { 131 | isa = PBXNativeTarget; 132 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "qBitRemote" */; 133 | buildPhases = ( 134 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */, 135 | FD10A7F022414F080027D42C /* Start Packager */, 136 | 13B07F871A680F5B00A75B9A /* Sources */, 137 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 138 | 13B07F8E1A680F5B00A75B9A /* Resources */, 139 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 140 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */, 141 | ); 142 | buildRules = ( 143 | ); 144 | dependencies = ( 145 | ); 146 | name = qBitRemote; 147 | productName = qBitRemote; 148 | productReference = 13B07F961A680F5B00A75B9A /* qBitRemote.app */; 149 | productType = "com.apple.product-type.application"; 150 | }; 151 | /* End PBXNativeTarget section */ 152 | 153 | /* Begin PBXProject section */ 154 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 155 | isa = PBXProject; 156 | attributes = { 157 | LastUpgradeCheck = 1300; 158 | TargetAttributes = { 159 | 13B07F861A680F5B00A75B9A = { 160 | DevelopmentTeam = 9A77268NMP; 161 | LastSwiftMigration = 1120; 162 | }; 163 | }; 164 | }; 165 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "qBitRemote" */; 166 | compatibilityVersion = "Xcode 3.2"; 167 | developmentRegion = en; 168 | hasScannedForEncodings = 0; 169 | knownRegions = ( 170 | en, 171 | Base, 172 | ); 173 | mainGroup = 83CBB9F61A601CBA00E9B192; 174 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 175 | projectDirPath = ""; 176 | projectRoot = ""; 177 | targets = ( 178 | 13B07F861A680F5B00A75B9A /* qBitRemote */, 179 | ); 180 | }; 181 | /* End PBXProject section */ 182 | 183 | /* Begin PBXResourcesBuildPhase section */ 184 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 185 | isa = PBXResourcesBuildPhase; 186 | buildActionMask = 2147483647; 187 | files = ( 188 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */, 189 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 190 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 191 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | /* End PBXResourcesBuildPhase section */ 196 | 197 | /* Begin PBXShellScriptBuildPhase section */ 198 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 199 | isa = PBXShellScriptBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | inputPaths = ( 204 | ); 205 | name = "Bundle React Native code and images"; 206 | outputPaths = ( 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | shellPath = /bin/sh; 210 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n../node_modules/expo-constants/scripts/get-app-config-ios.sh\n../node_modules/expo-updates/scripts/create-manifest-ios.sh\n"; 211 | }; 212 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = { 213 | isa = PBXShellScriptBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | inputFileListPaths = ( 218 | ); 219 | inputPaths = ( 220 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 221 | "${PODS_ROOT}/Manifest.lock", 222 | ); 223 | name = "[CP] Check Pods Manifest.lock"; 224 | outputFileListPaths = ( 225 | ); 226 | outputPaths = ( 227 | "$(DERIVED_FILE_DIR)/Pods-qBitRemote-checkManifestLockResult.txt", 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | shellPath = /bin/sh; 231 | 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"; 232 | showEnvVarsInLog = 0; 233 | }; 234 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = { 235 | isa = PBXShellScriptBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | inputPaths = ( 240 | "${PODS_ROOT}/Target Support Files/Pods-qBitRemote/Pods-qBitRemote-resources.sh", 241 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 242 | ); 243 | name = "[CP] Copy Pods Resources"; 244 | outputPaths = ( 245 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | shellPath = /bin/sh; 249 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-qBitRemote/Pods-qBitRemote-resources.sh\"\n"; 250 | showEnvVarsInLog = 0; 251 | }; 252 | FD10A7F022414F080027D42C /* Start Packager */ = { 253 | isa = PBXShellScriptBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | ); 257 | inputFileListPaths = ( 258 | ); 259 | inputPaths = ( 260 | ); 261 | name = "Start Packager"; 262 | outputFileListPaths = ( 263 | ); 264 | outputPaths = ( 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | shellPath = /bin/sh; 268 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 269 | showEnvVarsInLog = 0; 270 | }; 271 | /* End PBXShellScriptBuildPhase section */ 272 | 273 | /* Begin PBXSourcesBuildPhase section */ 274 | 13B07F871A680F5B00A75B9A /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 279 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 280 | C46E1668F8F1403DB2F9E9CA /* noop-file.swift in Sources */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | /* End PBXSourcesBuildPhase section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 13B07FB21A68108700A75B9A /* Base */, 291 | ); 292 | name = LaunchScreen.xib; 293 | path = qBitRemote; 294 | sourceTree = ""; 295 | }; 296 | /* End PBXVariantGroup section */ 297 | 298 | /* Begin XCBuildConfiguration section */ 299 | 13B07F941A680F5B00A75B9A /* Debug */ = { 300 | isa = XCBuildConfiguration; 301 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-qBitRemote.debug.xcconfig */; 302 | buildSettings = { 303 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 304 | CLANG_ENABLE_MODULES = YES; 305 | CODE_SIGN_ENTITLEMENTS = qBitRemote/qBitRemote.entitlements; 306 | CURRENT_PROJECT_VERSION = 1; 307 | DEVELOPMENT_TEAM = 9A77268NMP; 308 | ENABLE_BITCODE = NO; 309 | GCC_PREPROCESSOR_DEFINITIONS = ( 310 | "$(inherited)", 311 | "FB_SONARKIT_ENABLED=1", 312 | ); 313 | INFOPLIST_FILE = qBitRemote/Info.plist; 314 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 315 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 316 | OTHER_LDFLAGS = ( 317 | "$(inherited)", 318 | "-ObjC", 319 | "-lc++", 320 | ); 321 | PRODUCT_BUNDLE_IDENTIFIER = com.jbcbros.qBitRemote; 322 | PRODUCT_NAME = qBitRemote; 323 | SWIFT_OBJC_BRIDGING_HEADER = "qBitRemote/qBitRemote-Bridging-Header.h"; 324 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 325 | SWIFT_VERSION = 5.0; 326 | TARGETED_DEVICE_FAMILY = "1,2"; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Debug; 330 | }; 331 | 13B07F951A680F5B00A75B9A /* Release */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-qBitRemote.release.xcconfig */; 334 | buildSettings = { 335 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 336 | CLANG_ENABLE_MODULES = YES; 337 | CODE_SIGN_ENTITLEMENTS = qBitRemote/qBitRemote.entitlements; 338 | CURRENT_PROJECT_VERSION = 1; 339 | DEVELOPMENT_TEAM = 9A77268NMP; 340 | INFOPLIST_FILE = qBitRemote/Info.plist; 341 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 342 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 343 | OTHER_LDFLAGS = ( 344 | "$(inherited)", 345 | "-ObjC", 346 | "-lc++", 347 | ); 348 | PRODUCT_BUNDLE_IDENTIFIER = com.jbcbros.qBitRemote; 349 | PRODUCT_NAME = qBitRemote; 350 | SWIFT_OBJC_BRIDGING_HEADER = "qBitRemote/qBitRemote-Bridging-Header.h"; 351 | SWIFT_VERSION = 5.0; 352 | TARGETED_DEVICE_FAMILY = "1,2"; 353 | VERSIONING_SYSTEM = "apple-generic"; 354 | }; 355 | name = Release; 356 | }; 357 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 381 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 382 | CLANG_WARN_STRICT_PROTOTYPES = YES; 383 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 384 | CLANG_WARN_UNREACHABLE_CODE = YES; 385 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 386 | CODE_SIGN_ENTITLEMENTS = qBitRemote/qBitRemote.entitlements; 387 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 388 | COPY_PHASE_STRIP = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | ENABLE_TESTABILITY = YES; 391 | GCC_C_LANGUAGE_STANDARD = gnu99; 392 | GCC_DYNAMIC_NO_PIC = NO; 393 | GCC_NO_COMMON_BLOCKS = YES; 394 | GCC_OPTIMIZATION_LEVEL = 0; 395 | GCC_PREPROCESSOR_DEFINITIONS = ( 396 | "DEBUG=1", 397 | "$(inherited)", 398 | ); 399 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 407 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 408 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 409 | MTL_ENABLE_DEBUG_INFO = YES; 410 | ONLY_ACTIVE_ARCH = YES; 411 | SDKROOT = iphoneos; 412 | }; 413 | name = Debug; 414 | }; 415 | 83CBBA211A601CBA00E9B192 /* Release */ = { 416 | isa = XCBuildConfiguration; 417 | buildSettings = { 418 | ALWAYS_SEARCH_USER_PATHS = NO; 419 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 420 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 421 | CLANG_CXX_LIBRARY = "libc++"; 422 | CLANG_ENABLE_MODULES = YES; 423 | CLANG_ENABLE_OBJC_ARC = YES; 424 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 425 | CLANG_WARN_BOOL_CONVERSION = YES; 426 | CLANG_WARN_COMMA = YES; 427 | CLANG_WARN_CONSTANT_CONVERSION = YES; 428 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 430 | CLANG_WARN_EMPTY_BODY = YES; 431 | CLANG_WARN_ENUM_CONVERSION = YES; 432 | CLANG_WARN_INFINITE_RECURSION = YES; 433 | CLANG_WARN_INT_CONVERSION = YES; 434 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 435 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 436 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 437 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 438 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 439 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 440 | CLANG_WARN_STRICT_PROTOTYPES = YES; 441 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 442 | CLANG_WARN_UNREACHABLE_CODE = YES; 443 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 444 | CODE_SIGN_ENTITLEMENTS = qBitRemote/qBitRemote.entitlements; 445 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 446 | COPY_PHASE_STRIP = YES; 447 | ENABLE_NS_ASSERTIONS = NO; 448 | ENABLE_STRICT_OBJC_MSGSEND = YES; 449 | GCC_C_LANGUAGE_STANDARD = gnu99; 450 | GCC_NO_COMMON_BLOCKS = YES; 451 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 452 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 453 | GCC_WARN_UNDECLARED_SELECTOR = YES; 454 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 455 | GCC_WARN_UNUSED_FUNCTION = YES; 456 | GCC_WARN_UNUSED_VARIABLE = YES; 457 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 458 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 459 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 460 | MTL_ENABLE_DEBUG_INFO = NO; 461 | SDKROOT = iphoneos; 462 | SWIFT_COMPILATION_MODE = wholemodule; 463 | VALIDATE_PRODUCT = YES; 464 | }; 465 | name = Release; 466 | }; 467 | /* End XCBuildConfiguration section */ 468 | 469 | /* Begin XCConfigurationList section */ 470 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "qBitRemote" */ = { 471 | isa = XCConfigurationList; 472 | buildConfigurations = ( 473 | 13B07F941A680F5B00A75B9A /* Debug */, 474 | 13B07F951A680F5B00A75B9A /* Release */, 475 | ); 476 | defaultConfigurationIsVisible = 0; 477 | defaultConfigurationName = Release; 478 | }; 479 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "qBitRemote" */ = { 480 | isa = XCConfigurationList; 481 | buildConfigurations = ( 482 | 83CBBA201A601CBA00E9B192 /* Debug */, 483 | 83CBBA211A601CBA00E9B192 /* Release */, 484 | ); 485 | defaultConfigurationIsVisible = 0; 486 | defaultConfigurationName = Release; 487 | }; 488 | /* End XCConfigurationList section */ 489 | }; 490 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 491 | } 492 | -------------------------------------------------------------------------------- /ios/qBitRemote.xcodeproj/xcshareddata/xcschemes/qBitRemote.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 | -------------------------------------------------------------------------------- /ios/qBitRemote.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/qBitRemote.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/qBitRemote/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | #import 7 | 8 | @interface AppDelegate : UMAppDelegateWrapper 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ios/qBitRemote/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | 14 | #if defined(FB_SONARKIT_ENABLED) && __has_include() 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | 22 | static void InitializeFlipper(UIApplication *application) { 23 | FlipperClient *client = [FlipperClient sharedClient]; 24 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 25 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 26 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 27 | [client addPlugin:[FlipperKitReactPlugin new]]; 28 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 29 | [client start]; 30 | } 31 | #endif 32 | 33 | @interface AppDelegate () 34 | 35 | @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; 36 | @property (nonatomic, strong) NSDictionary *launchOptions; 37 | 38 | @end 39 | 40 | @implementation AppDelegate 41 | 42 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 43 | { 44 | #if defined(FB_SONARKIT_ENABLED) && __has_include() 45 | InitializeFlipper(application); 46 | #endif 47 | 48 | self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; 49 | self.launchOptions = launchOptions; 50 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 51 | #ifdef DEBUG 52 | [self initializeReactNativeApp]; 53 | #else 54 | EXUpdatesAppController *controller = [EXUpdatesAppController sharedInstance]; 55 | controller.delegate = self; 56 | [controller startAndShowLaunchScreen:self.window]; 57 | #endif 58 | 59 | [super application:application didFinishLaunchingWithOptions:launchOptions]; 60 | 61 | return YES; 62 | } 63 | 64 | - (RCTBridge *)initializeReactNativeApp 65 | { 66 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:self.launchOptions]; 67 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil]; 68 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 69 | 70 | UIViewController *rootViewController = [UIViewController new]; 71 | rootViewController.view = rootView; 72 | self.window.rootViewController = rootViewController; 73 | [self.window makeKeyAndVisible]; 74 | 75 | return bridge; 76 | } 77 | 78 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge 79 | { 80 | NSArray> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge]; 81 | // If you'd like to export some custom RCTBridgeModules that are not Expo modules, add them here! 82 | return extraModules; 83 | } 84 | 85 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { 86 | #ifdef DEBUG 87 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 88 | #else 89 | return [[EXUpdatesAppController sharedInstance] launchAssetUrl]; 90 | #endif 91 | } 92 | 93 | - (void)appController:(EXUpdatesAppController *)appController didStartWithSuccess:(BOOL)success { 94 | appController.bridge = [self initializeReactNativeApp]; 95 | EXSplashScreenService *splashScreenService = (EXSplashScreenService *)[UMModuleRegistryProvider getSingletonModuleForClass:[EXSplashScreenService class]]; 96 | [splashScreenService showSplashScreenFor:self.window.rootViewController]; 97 | } 98 | 99 | // Linking API 100 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { 101 | return [RCTLinkingManager application:application openURL:url options:options]; 102 | } 103 | 104 | // Universal Links 105 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { 106 | return [RCTLinkingManager application:application 107 | continueUserActivity:userActivity 108 | restorationHandler:restorationHandler]; 109 | } 110 | 111 | @end 112 | -------------------------------------------------------------------------------- /ios/qBitRemote/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/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/qBitRemote/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "expo" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/qBitRemote/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 | } -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/SplashScreen.imageset/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/SplashScreen.imageset/image.png -------------------------------------------------------------------------------- /ios/qBitRemote/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 | } -------------------------------------------------------------------------------- /ios/qBitRemote/Images.xcassets/SplashScreenBackground.imageset/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jbcbro/qBitRemote-Public/e9f96158fcfe5abb5fe20ee8cfb7db62882e9690/ios/qBitRemote/Images.xcassets/SplashScreenBackground.imageset/image.png -------------------------------------------------------------------------------- /ios/qBitRemote/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | qBitRemote 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 19 | CFBundleShortVersionString 20 | 1.0.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleURLTypes 24 | 25 | 26 | CFBundleURLSchemes 27 | 28 | qbitremote 29 | com.jbcbros.qBitRemote 30 | 31 | 32 | 33 | CFBundleVersion 34 | 1 35 | LSRequiresIPhoneOS 36 | 37 | NSAppTransportSecurity 38 | 39 | NSAllowsArbitraryLoads 40 | 41 | NSExceptionDomains 42 | 43 | localhost 44 | 45 | NSExceptionAllowsInsecureHTTPLoads 46 | 47 | 48 | 49 | 50 | UILaunchStoryboardName 51 | SplashScreen 52 | UIRequiredDeviceCapabilities 53 | 54 | armv7 55 | 56 | UIRequiresFullScreen 57 | 58 | UIStatusBarStyle 59 | UIStatusBarStyleDefault 60 | UISupportedInterfaceOrientations 61 | 62 | UIInterfaceOrientationPortrait 63 | UIInterfaceOrientationPortraitUpsideDown 64 | 65 | UIViewControllerBasedStatusBarAppearance 66 | 67 | 68 | -------------------------------------------------------------------------------- /ios/qBitRemote/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 | -------------------------------------------------------------------------------- /ios/qBitRemote/Supporting/Expo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | EXUpdatesCheckOnLaunch 6 | ALWAYS 7 | EXUpdatesEnabled 8 | 9 | EXUpdatesLaunchWaitMs 10 | 0 11 | EXUpdatesSDKVersion 12 | 42.0.0 13 | EXUpdatesURL 14 | https://exp.host/@anonymous/qBitRemote 15 | 16 | -------------------------------------------------------------------------------- /ios/qBitRemote/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 | -------------------------------------------------------------------------------- /ios/qBitRemote/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 | -------------------------------------------------------------------------------- /ios/qBitRemote/qBitRemote-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | -------------------------------------------------------------------------------- /ios/qBitRemote/qBitRemote.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /navigation/BottomTabNavigator.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Learn more about createBottomTabNavigator: 3 | * https://reactnavigation.org/docs/bottom-tab-navigator 4 | */ 5 | 6 | import { Ionicons } from '@expo/vector-icons'; 7 | import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; 8 | import { createStackNavigator } from '@react-navigation/stack'; 9 | 10 | import { useNavigation } from '@react-navigation/native'; 11 | import React, { useState, useEffect, useContext } from 'react'; 12 | import AppContext from '../global/AppContext' 13 | 14 | 15 | import { Text, View } from '../components/Themed'; 16 | 17 | import Colors from '../constants/Colors'; 18 | import useColorScheme from '../hooks/useColorScheme'; 19 | import NotFoundScreen from '../screens/NotFoundScreen'; 20 | import TabOneScreen from '../screens/TabOneScreen'; 21 | import InfoScreen from '../screens/InfoScreen'; 22 | import HostScreen from '../screens/HostScreen'; 23 | 24 | import UploadScreen from '../screens/UploadScreen'; 25 | import TabTwoScreen from '../screens/TabTwoScreen'; 26 | import { BottomTabParamList, TabOneParamList, TabTwoParamList } from '../types'; 27 | 28 | const BottomTab = createBottomTabNavigator(); 29 | 30 | export default function BottomTabNavigator() { 31 | 32 | const colorScheme = useColorScheme(); 33 | 34 | return ( 35 | 38 | , 43 | }} 44 | /> 45 | , 50 | }} 51 | /> 52 | 53 | ); 54 | } 55 | 56 | // You can explore the built-in icon families and icons on the web at: 57 | // https://icons.expo.fyi/ 58 | function TabBarIcon(props: { name: React.ComponentProps['name']; color: string }) { 59 | return ; 60 | } 61 | 62 | // Each tab has its own navigation stack, you can read more about this pattern here: 63 | // https://reactnavigation.org/docs/tab-based-navigation#a-stack-navigator-for-each-tab 64 | const TabOneStack = createStackNavigator(); 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | function TabOneNavigator() { 73 | 74 | const userSettings:any = useContext(AppContext); 75 | 76 | 77 | const navigation = useNavigation(); 78 | return ( 79 | 80 | 85 | 92 | 99 | 100 | ); 101 | } 102 | 103 | const TabTwoStack = createStackNavigator(); 104 | 105 | function TabTwoNavigator() { 106 | return ( 107 | 108 | 113 | 118 | 119 | ); 120 | } 121 | -------------------------------------------------------------------------------- /navigation/LinkingConfiguration.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Learn more about deep linking with React Navigation 3 | * https://reactnavigation.org/docs/deep-linking 4 | * https://reactnavigation.org/docs/configuring-links 5 | */ 6 | 7 | import * as Linking from 'expo-linking'; 8 | 9 | export default { 10 | prefixes: [Linking.makeUrl('/')], 11 | config: { 12 | screens: { 13 | Root: { 14 | screens: { 15 | TabOne: { 16 | screens: { 17 | TabOneScreen: 'one', 18 | }, 19 | }, 20 | TabTwo: { 21 | screens: { 22 | TabTwoScreen: 'two', 23 | }, 24 | }, 25 | }, 26 | }, 27 | NotFound: '*', 28 | }, 29 | }, 30 | }; 31 | -------------------------------------------------------------------------------- /navigation/SideNavigator.tsx: -------------------------------------------------------------------------------- 1 | import { 2 | createDrawerNavigator, 3 | DrawerContent, 4 | DrawerContentComponentProps, 5 | DrawerScreenProps, 6 | } from '@react-navigation/drawer'; 7 | import { 8 | ParamListBase, 9 | useNavigation, 10 | useTheme, 11 | } from '@react-navigation/native'; 12 | import type { StackScreenProps } from '@react-navigation/stack'; 13 | import * as React from 'react'; 14 | import { Dimensions, ScaledSize } from 'react-native'; 15 | import { Appbar } from 'react-native-paper'; 16 | 17 | import TabOneScreen from '../screens/TabOneScreen'; 18 | import InfoScreen from '../screens/InfoScreen'; 19 | import HostScreen from '../screens/HostScreen'; 20 | import TabTwoScreen from '../screens/TabTwoScreen'; 21 | 22 | type DrawerParams = { 23 | TabOneScreen: any; 24 | InfoScreen: any; 25 | HostScreen: any; 26 | }; 27 | 28 | const useIsLargeScreen = () => { 29 | const [dimensions, setDimensions] = React.useState(Dimensions.get('window')); 30 | 31 | React.useEffect(() => { 32 | const onDimensionsChange = ({ window }: { window: ScaledSize }) => { 33 | setDimensions(window); 34 | }; 35 | 36 | Dimensions.addEventListener('change', onDimensionsChange); 37 | 38 | return () => Dimensions.removeEventListener('change', onDimensionsChange); 39 | }, []); 40 | 41 | return dimensions.width > 414; 42 | }; 43 | 44 | const Header = ({ 45 | onGoBack, 46 | title, 47 | }: { 48 | onGoBack: () => void; 49 | title: string; 50 | }) => { 51 | const { colors } = useTheme(); 52 | const isLargeScreen = useIsLargeScreen(); 53 | 54 | return ( 55 | 56 | {isLargeScreen ? null : } 57 | 58 | 59 | ); 60 | }; 61 | 62 | const ArticleScreen = ({ 63 | navigation, 64 | }: DrawerScreenProps) => { 65 | return ( 66 | <> 67 |

navigation.toggleDrawer()} /> 68 | 69 | 70 | ); 71 | }; 72 | 73 | const NewsFeedScreen = ({ 74 | navigation, 75 | }: DrawerScreenProps) => { 76 | return ( 77 | <> 78 |
navigation.toggleDrawer()} /> 79 | 80 | 81 | ); 82 | }; 83 | 84 | const AlbumsScreen = ({ 85 | navigation, 86 | }: DrawerScreenProps) => { 87 | return ( 88 | <> 89 |
navigation.toggleDrawer()} /> 90 | 91 | 92 | ); 93 | }; 94 | 95 | const CustomDrawerContent = (props: DrawerContentComponentProps) => { 96 | const { colors } = useTheme(); 97 | const navigation = useNavigation(); 98 | 99 | return ( 100 | <> 101 | 102 | navigation.goBack()} /> 103 | 104 | 105 | 106 | 107 | ); 108 | }; 109 | 110 | const Drawer = createDrawerNavigator(); 111 | 112 | type Props = Partial> & 113 | StackScreenProps; 114 | 115 | export default function DrawerScreen({ navigation, ...rest }: Props) { 116 | React.useLayoutEffect(() => { 117 | navigation.setOptions({ 118 | headerShown: false, 119 | gestureEnabled: true, 120 | }); 121 | }, [navigation]); 122 | 123 | const isLargeScreen = useIsLargeScreen(); 124 | 125 | return ( 126 | } 130 | screenOptions={{ 131 | headerShown: false, 132 | drawerType: isLargeScreen ? 'permanent' : 'back', 133 | drawerStyle: isLargeScreen ? null : { width: '100%' }, 134 | drawerContentContainerStyle: { paddingTop: 4 }, 135 | overlayColor: 'transparent', 136 | }} 137 | {...rest} 138 | > 139 | 140 | 141 | 146 | 147 | ); 148 | } 149 | -------------------------------------------------------------------------------- /navigation/index.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * If you are not familiar with React Navigation, check out the "Fundamentals" guide: 3 | * https://reactnavigation.org/docs/getting-started 4 | * 5 | */ 6 | import { NavigationContainer, DefaultTheme, DarkTheme } from '@react-navigation/native'; 7 | import { createStackNavigator } from '@react-navigation/stack'; 8 | import * as React from 'react'; 9 | import { ColorSchemeName } from 'react-native'; 10 | 11 | import NotFoundScreen from '../screens/NotFoundScreen'; 12 | import { RootStackParamList } from '../types'; 13 | import BottomTabNavigator from './BottomTabNavigator'; 14 | import DrawerScreen from './SideNavigator' 15 | import LinkingConfiguration from './LinkingConfiguration'; 16 | 17 | export default function Navigation({ colorScheme }: { colorScheme: ColorSchemeName }) { 18 | return ( 19 | 22 | 23 | 24 | ); 25 | } 26 | 27 | // A root stack navigator is often used for displaying modals on top of all other content 28 | // Read more here: https://reactnavigation.org/docs/modal 29 | const Stack = createStackNavigator(); 30 | 31 | function RootNavigator() { 32 | return ( 33 | 34 | 35 | 36 | 37 | ); 38 | } 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "start": "react-native start", 4 | "android": "react-native run-android", 5 | "ios": "react-native run-ios", 6 | "web": "expo start --web", 7 | "eject": "expo eject", 8 | "test": "jest --watchAll" 9 | }, 10 | "jest": { 11 | "preset": "jest-expo" 12 | }, 13 | "dependencies": { 14 | "@expo/vector-icons": "^12.0.0", 15 | "@react-native-community/masked-view": "0.1.10", 16 | "@react-native-picker/picker": "2.2.1", 17 | "@react-navigation/bottom-tabs": "~5.11.2", 18 | "@react-navigation/drawer": "~6.1.7", 19 | "@react-navigation/native": "~5.8.10", 20 | "@react-navigation/stack": "~5.12.8", 21 | "expo": "^44.0.0", 22 | "expo-asset": "~8.4.6", 23 | "expo-constants": "~13.0.1", 24 | "expo-document-picker": "~10.1.3", 25 | "expo-font": "~10.0.4", 26 | "expo-linking": "~3.0.0", 27 | "expo-secure-store": "~11.1.0", 28 | "expo-splash-screen": "~0.14.1", 29 | "expo-status-bar": "~1.2.0", 30 | "expo-updates": "~0.11.7", 31 | "expo-web-browser": "~10.1.0", 32 | "react": "17.0.1", 33 | "react-dom": "17.0.1", 34 | "react-native": "0.64.3", 35 | "react-native-gesture-handler": "~2.1.0", 36 | "react-native-paper": "~4.9.2", 37 | "react-native-reanimated": "~2.3.1", 38 | "react-native-safe-area-context": "3.3.2", 39 | "react-native-screens": "~3.10.1", 40 | "react-native-unimodules": "~0.15.0", 41 | "react-native-web": "0.17.1" 42 | }, 43 | "devDependencies": { 44 | "@babel/core": "^7.12.9", 45 | "@types/react": "~17.0.21", 46 | "@types/react-native": "~0.64.12", 47 | "jest-expo": "^44.0.0", 48 | "typescript": "~4.3.5" 49 | }, 50 | "private": true, 51 | "name": "qRemote", 52 | "version": "1.0.0" 53 | } 54 | -------------------------------------------------------------------------------- /screens/HostScreen.tsx: -------------------------------------------------------------------------------- 1 | import React, { useState, useContext } from 'react'; 2 | import { StyleSheet, Image, TextInput, KeyboardAvoidingView, Button, ScrollView, Switch } from 'react-native'; 3 | import AppContext from '../global/AppContext' 4 | 5 | 6 | import EditScreenInfo from '../components/EditScreenInfo'; 7 | import { Text, View } from '../components/Themed'; 8 | import * as SecureStore from 'expo-secure-store'; 9 | 10 | 11 | async function save(key, value) { 12 | await SecureStore.setItemAsync(key, value); 13 | } 14 | 15 | 16 | async function getValueFor(key) { 17 | let result = await SecureStore.getItemAsync(key); 18 | if (result) { 19 | alert("🔐 Here's your value 🔐 \n" + result); 20 | } else { 21 | alert('No values stored under that key.'); 22 | } 23 | } 24 | 25 | 26 | export default function HostScreen() { 27 | 28 | const userSettings:any = useContext(AppContext); 29 | 30 | const [key, onChangeKey] = React.useState(''); 31 | const [value, onChangeValue] = React.useState(''); 32 | const [host, setHost] = React.useState(userSettings.host); 33 | const [port, setPort] = React.useState(userSettings.port); 34 | const [ssl, setSsl] = React.useState(); 35 | const [username, setUsername] = React.useState(userSettings.username); 36 | const [password, setPassword] = React.useState(userSettings.password); 37 | const [test, setTest] = React.useState(''); 38 | const [isSwitchOn, setIsSwitchOn] = React.useState(userSettings.ssl == 'true' ? true : false); 39 | const onToggleSwitch = () => { 40 | setIsSwitchOn(!isSwitchOn) 41 | 42 | } 43 | 44 | 45 | const testLogin = () => { 46 | 47 | save('ssl', isSwitchOn.toString()); 48 | userSettings.setSsl(isSwitchOn.toString()); 49 | 50 | var data = new FormData(); 51 | data.append("username", username); 52 | data.append("password", password); 53 | 54 | var xhr = new XMLHttpRequest(); 55 | xhr.withCredentials = true; 56 | 57 | xhr.addEventListener("readystatechange", function() { 58 | if(this.readyState === 4) { 59 | console.log(this.responseText); 60 | if(this.responseText == "Ok.") { 61 | save('host', host); 62 | save('port', port); 63 | save('username', username); 64 | save('passwordRes', password); 65 | save('ssl', isSwitchOn.toString()); 66 | 67 | 68 | userSettings.setHost(host); 69 | userSettings.setPort(port); 70 | userSettings.setUsername(username); 71 | userSettings.setPassword(password); 72 | userSettings.setSsl(isSwitchOn.toString()); 73 | 74 | alert('Settings saved') 75 | } else { 76 | alert('Could not auth with server.') 77 | } 78 | } 79 | }); 80 | console.log((isSwitchOn ? 'https://':'http://')+host+":"+port+"/api/v2/auth/login") 81 | xhr.open("POST",(isSwitchOn ? 'https://':'http://')+host+":"+port+"/api/v2/auth/login"); 82 | xhr.send(data); 83 | 84 | console.log(isSwitchOn) 85 | 86 | } 87 | 88 | return ( 89 | 90 | NAME 91 | 92 | 93 | 94 | 95 | 96 | Nick name 97 | 98 | 99 | 100 | 101 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | qBitTorrent CREDENTIALS 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | Host 125 | 126 | 127 | 128 | 129 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | Port 147 | 148 | 149 | 150 | 151 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | SSL Enabled 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | Username 173 | 174 | 175 | 176 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | Password 194 | 195 | 196 | 197 | 198 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | Reguest are sent as "SSL+HOST+':'+PORT"/ 215 | For relative path add after port without '/' at end 216 | 217 | 218 |