├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitignore ├── LICENSE ├── README.md ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── trackplayerdemo │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── index.android.js ├── index.ios.js ├── index.windows.js ├── ios ├── TrackPlayerDemo-tvOS │ └── Info.plist ├── TrackPlayerDemo-tvOSTests │ └── Info.plist ├── TrackPlayerDemo.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── TrackPlayerDemo-tvOS.xcscheme │ │ └── TrackPlayerDemo.xcscheme ├── TrackPlayerDemo │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── TrackPlayerDemoTests │ ├── Info.plist │ └── TrackPlayerDemoTests.m ├── package.json ├── screenshots ├── android.png └── windows.png ├── src ├── App.js ├── components │ ├── Header.js │ ├── ImageButton.js │ ├── MiniPlayer.js │ ├── ProgressBar.js │ ├── Track.js │ └── TrackList.js ├── icons │ ├── arrow.png │ ├── next.png │ ├── pause.png │ ├── play.png │ └── previous.png ├── index.js ├── logic │ ├── actions.js │ ├── event-handler.js │ ├── reducers.js │ └── utils.js └── screens │ ├── LibraryScreen.js │ ├── Navigation.js │ └── NowPlayingScreen.js ├── track-player.json └── windows ├── .gitignore ├── TrackPlayerDemo.sln └── TrackPlayerDemo ├── App.xaml ├── App.xaml.cs ├── Assets ├── LockScreenLogo.scale-200.png ├── SplashScreen.scale-200.png ├── Square150x150Logo.scale-200.png ├── Square44x44Logo.scale-200.png ├── Square44x44Logo.targetsize-24_altform-unplated.png ├── StoreLogo.png └── Wide310x150Logo.scale-200.png ├── MainPage.cs ├── Package.appxmanifest ├── Properties ├── AssemblyInfo.cs └── Default.rd.xml ├── ReactAssets └── .gitignore ├── TrackPlayerDemo.csproj ├── TrackPlayerDemo_TemporaryKey.pfx └── project.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | emoji=true 26 | 27 | module.system=haste 28 | 29 | munge_underscores=true 30 | 31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 32 | 33 | suppress_type=$FlowIssue 34 | suppress_type=$FlowFixMe 35 | suppress_type=$FixMe 36 | 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 41 | 42 | unsafe.enable_getters_and_setters=true 43 | 44 | [version] 45 | ^0.49.1 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | 3 | .DS_Store 4 | 5 | # Xcode 6 | 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | keystores/ 33 | 34 | # node.js 35 | 36 | node_modules/ 37 | npm-debug.log 38 | yarn-error.log 39 | 40 | # BUCK 41 | buck-out/ 42 | \.buckd/ 43 | *.keystore 44 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-track-player-demo 2 | 3 | This is a demo and testing app for the [react-native-track-player](https://github.com/react-native-kit/react-native-track-player) module. 4 | 5 | ## Screenshots 6 | ![Android](screenshots/android.png) 7 | 8 | ![Windows (PC)](screenshots/windows.png) 9 | -------------------------------------------------------------------------------- /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 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 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 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.trackplayerdemo", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.trackplayerdemo", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | apply from: "../../node_modules/react-native/react.gradle" 76 | 77 | /** 78 | * Set this to true to create two separate APKs instead of one: 79 | * - An APK that only works on ARM devices 80 | * - An APK that only works on x86 devices 81 | * The advantage is the size of the APK is reduced by about 4MB. 82 | * Upload all the APKs to the Play Store and people will download 83 | * the correct one based on the CPU architecture of their device. 84 | */ 85 | def enableSeparateBuildPerCPUArchitecture = false 86 | 87 | /** 88 | * Run Proguard to shrink the Java bytecode in release builds. 89 | */ 90 | def enableProguardInReleaseBuilds = false 91 | 92 | android { 93 | compileSdkVersion 25 94 | buildToolsVersion "25.0.3" 95 | 96 | defaultConfig { 97 | applicationId "com.trackplayerdemo" 98 | minSdkVersion 16 99 | targetSdkVersion 22 100 | versionCode 1 101 | versionName "1.0" 102 | ndk { 103 | abiFilters "armeabi-v7a", "x86" 104 | } 105 | } 106 | splits { 107 | abi { 108 | reset() 109 | enable enableSeparateBuildPerCPUArchitecture 110 | universalApk false // If true, also generate a universal APK 111 | include "armeabi-v7a", "x86" 112 | } 113 | } 114 | buildTypes { 115 | release { 116 | minifyEnabled enableProguardInReleaseBuilds 117 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 118 | } 119 | } 120 | // applicationVariants are e.g. debug, release 121 | applicationVariants.all { variant -> 122 | variant.outputs.each { output -> 123 | // For each separate APK per architecture, set a unique version code as described here: 124 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 125 | def versionCodes = ["armeabi-v7a":1, "x86":2] 126 | def abi = output.getFilter(OutputFile.ABI) 127 | if (abi != null) { // null for the universal-debug, universal-release variants 128 | output.versionCodeOverride = 129 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 130 | } 131 | } 132 | } 133 | } 134 | 135 | dependencies { 136 | compile project(':react-native-track-player') 137 | compile fileTree(dir: "libs", include: ["*.jar"]) 138 | compile "com.android.support:appcompat-v7:25.3.1" 139 | compile "com.facebook.react:react-native:+" // From node_modules 140 | } 141 | 142 | // Run this once to be able to run the application with BUCK 143 | // puts all compile dependencies into folder libs for BUCK to use 144 | task copyDownloadableDepsToLibs(type: Copy) { 145 | from configurations.compile 146 | into 'libs' 147 | } 148 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/trackplayerdemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.trackplayerdemo; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "TrackPlayerDemo"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/trackplayerdemo/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.trackplayerdemo; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import guichaguri.trackplayer.TrackPlayer; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new TrackPlayer() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TrackPlayerDemo 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TrackPlayerDemo' 2 | include ':react-native-track-player' 3 | project(':react-native-track-player').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-track-player/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TrackPlayerDemo", 3 | "displayName": "TrackPlayerDemo" 4 | } -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import './src/index'; 2 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import './src/index'; 2 | -------------------------------------------------------------------------------- /index.windows.js: -------------------------------------------------------------------------------- 1 | import './src/index'; 2 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | /* Begin PBXBuildFile section */ 9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 14 | 00E356F31AD99517003FC87E /* TrackPlayerDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TrackPlayerDemoTests.m */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 34 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 35 | 2DCD954D1E0B4F2C00145EB5 /* TrackPlayerDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TrackPlayerDemoTests.m */; }; 36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 37 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 38 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 39 | F03CF612006A4D838FB8E4CC /* libRNTrackPlayer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 461166FC0EA54522BECABCF5 /* libRNTrackPlayer.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = TrackPlayerDemo; 84 | }; 85 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 90 | remoteInfo = RCTSettings; 91 | }; 92 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 97 | remoteInfo = RCTWebSocket; 98 | }; 99 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 104 | remoteInfo = React; 105 | }; 106 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 109 | proxyType = 1; 110 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 111 | remoteInfo = "TrackPlayerDemo-tvOS"; 112 | }; 113 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 118 | remoteInfo = "RCTImage-tvOS"; 119 | }; 120 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 125 | remoteInfo = "RCTLinking-tvOS"; 126 | }; 127 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 132 | remoteInfo = "RCTNetwork-tvOS"; 133 | }; 134 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 139 | remoteInfo = "RCTSettings-tvOS"; 140 | }; 141 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 146 | remoteInfo = "RCTText-tvOS"; 147 | }; 148 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 153 | remoteInfo = "RCTWebSocket-tvOS"; 154 | }; 155 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 160 | remoteInfo = "React-tvOS"; 161 | }; 162 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 167 | remoteInfo = yoga; 168 | }; 169 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 174 | remoteInfo = "yoga-tvOS"; 175 | }; 176 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 181 | remoteInfo = cxxreact; 182 | }; 183 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 188 | remoteInfo = "cxxreact-tvOS"; 189 | }; 190 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 193 | proxyType = 2; 194 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 195 | remoteInfo = jschelpers; 196 | }; 197 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 202 | remoteInfo = "jschelpers-tvOS"; 203 | }; 204 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 209 | remoteInfo = RCTAnimation; 210 | }; 211 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 216 | remoteInfo = "RCTAnimation-tvOS"; 217 | }; 218 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 223 | remoteInfo = RCTLinking; 224 | }; 225 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 230 | remoteInfo = RCTText; 231 | }; 232 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 237 | remoteInfo = RCTBlob; 238 | }; 239 | /* End PBXContainerItemProxy section */ 240 | 241 | /* Begin PBXFileReference section */ 242 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 243 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 244 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 245 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 246 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 247 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 248 | 00E356EE1AD99517003FC87E /* TrackPlayerDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TrackPlayerDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 249 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 250 | 00E356F21AD99517003FC87E /* TrackPlayerDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TrackPlayerDemoTests.m; sourceTree = ""; }; 251 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 252 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 253 | 13B07F961A680F5B00A75B9A /* TrackPlayerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TrackPlayerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 254 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = TrackPlayerDemo/AppDelegate.h; sourceTree = ""; }; 255 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = TrackPlayerDemo/AppDelegate.m; sourceTree = ""; }; 256 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 257 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = TrackPlayerDemo/Images.xcassets; sourceTree = ""; }; 258 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = TrackPlayerDemo/Info.plist; sourceTree = ""; }; 259 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = TrackPlayerDemo/main.m; sourceTree = ""; }; 260 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 261 | 2D02E47B1E0B4A5D006451C7 /* TrackPlayerDemo-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TrackPlayerDemo-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 262 | 2D02E4901E0B4A5D006451C7 /* TrackPlayerDemo-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "TrackPlayerDemo-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 263 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 264 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 265 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 266 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 267 | 7B8962ED3C9D409593DC733B /* RNTrackPlayer.xcodeproj */ = {isa = PBXFileReference; name = "RNTrackPlayer.xcodeproj"; path = "../node_modules/react-native-track-player/ios/RNTrackPlayer.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 268 | 461166FC0EA54522BECABCF5 /* libRNTrackPlayer.a */ = {isa = PBXFileReference; name = "libRNTrackPlayer.a"; path = "libRNTrackPlayer.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; 269 | /* End PBXFileReference section */ 270 | 271 | /* Begin PBXFrameworksBuildPhase section */ 272 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 273 | isa = PBXFrameworksBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 281 | isa = PBXFrameworksBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 285 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 286 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 287 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 288 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 289 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 290 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 291 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 292 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 293 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 294 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 295 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 296 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 297 | F03CF612006A4D838FB8E4CC /* libRNTrackPlayer.a in Frameworks */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 302 | isa = PBXFrameworksBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 306 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 307 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 308 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 309 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 310 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 311 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 312 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | }; 316 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 317 | isa = PBXFrameworksBuildPhase; 318 | buildActionMask = 2147483647; 319 | files = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | }; 323 | /* End PBXFrameworksBuildPhase section */ 324 | 325 | /* Begin PBXGroup section */ 326 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 327 | isa = PBXGroup; 328 | children = ( 329 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 330 | ); 331 | name = Products; 332 | sourceTree = ""; 333 | }; 334 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 338 | ); 339 | name = Products; 340 | sourceTree = ""; 341 | }; 342 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 343 | isa = PBXGroup; 344 | children = ( 345 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 346 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 347 | ); 348 | name = Products; 349 | sourceTree = ""; 350 | }; 351 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 352 | isa = PBXGroup; 353 | children = ( 354 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 355 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 356 | ); 357 | name = Products; 358 | sourceTree = ""; 359 | }; 360 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 361 | isa = PBXGroup; 362 | children = ( 363 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 364 | ); 365 | name = Products; 366 | sourceTree = ""; 367 | }; 368 | 00E356EF1AD99517003FC87E /* TrackPlayerDemoTests */ = { 369 | isa = PBXGroup; 370 | children = ( 371 | 00E356F21AD99517003FC87E /* TrackPlayerDemoTests.m */, 372 | 00E356F01AD99517003FC87E /* Supporting Files */, 373 | ); 374 | path = TrackPlayerDemoTests; 375 | sourceTree = ""; 376 | }; 377 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 378 | isa = PBXGroup; 379 | children = ( 380 | 00E356F11AD99517003FC87E /* Info.plist */, 381 | ); 382 | name = "Supporting Files"; 383 | sourceTree = ""; 384 | }; 385 | 139105B71AF99BAD00B5F7CC /* Products */ = { 386 | isa = PBXGroup; 387 | children = ( 388 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 389 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 390 | ); 391 | name = Products; 392 | sourceTree = ""; 393 | }; 394 | 139FDEE71B06529A00C62182 /* Products */ = { 395 | isa = PBXGroup; 396 | children = ( 397 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 398 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 399 | ); 400 | name = Products; 401 | sourceTree = ""; 402 | }; 403 | 13B07FAE1A68108700A75B9A /* TrackPlayerDemo */ = { 404 | isa = PBXGroup; 405 | children = ( 406 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 407 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 408 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 409 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 410 | 13B07FB61A68108700A75B9A /* Info.plist */, 411 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 412 | 13B07FB71A68108700A75B9A /* main.m */, 413 | ); 414 | name = TrackPlayerDemo; 415 | sourceTree = ""; 416 | }; 417 | 146834001AC3E56700842450 /* Products */ = { 418 | isa = PBXGroup; 419 | children = ( 420 | 146834041AC3E56700842450 /* libReact.a */, 421 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 422 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 423 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 424 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 425 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 426 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 427 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 428 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */, 429 | ); 430 | name = Products; 431 | sourceTree = ""; 432 | }; 433 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 434 | isa = PBXGroup; 435 | children = ( 436 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 437 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 438 | ); 439 | name = Products; 440 | sourceTree = ""; 441 | }; 442 | 78C398B11ACF4ADC00677621 /* Products */ = { 443 | isa = PBXGroup; 444 | children = ( 445 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 446 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 447 | ); 448 | name = Products; 449 | sourceTree = ""; 450 | }; 451 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 452 | isa = PBXGroup; 453 | children = ( 454 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 455 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 456 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 457 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 458 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 459 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 460 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 461 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 462 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 463 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 464 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 465 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 466 | 7B8962ED3C9D409593DC733B /* RNTrackPlayer.xcodeproj */, 467 | ); 468 | name = Libraries; 469 | sourceTree = ""; 470 | }; 471 | 832341B11AAA6A8300B99B32 /* Products */ = { 472 | isa = PBXGroup; 473 | children = ( 474 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 475 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 476 | ); 477 | name = Products; 478 | sourceTree = ""; 479 | }; 480 | 83CBB9F61A601CBA00E9B192 = { 481 | isa = PBXGroup; 482 | children = ( 483 | 13B07FAE1A68108700A75B9A /* TrackPlayerDemo */, 484 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 485 | 00E356EF1AD99517003FC87E /* TrackPlayerDemoTests */, 486 | 83CBBA001A601CBA00E9B192 /* Products */, 487 | A7B8E57B622441FD85556CB9 /* Resources */, 488 | ); 489 | indentWidth = 2; 490 | sourceTree = ""; 491 | tabWidth = 2; 492 | usesTabs = 0; 493 | }; 494 | 83CBBA001A601CBA00E9B192 /* Products */ = { 495 | isa = PBXGroup; 496 | children = ( 497 | 13B07F961A680F5B00A75B9A /* TrackPlayerDemo.app */, 498 | 00E356EE1AD99517003FC87E /* TrackPlayerDemoTests.xctest */, 499 | 2D02E47B1E0B4A5D006451C7 /* TrackPlayerDemo-tvOS.app */, 500 | 2D02E4901E0B4A5D006451C7 /* TrackPlayerDemo-tvOSTests.xctest */, 501 | ); 502 | name = Products; 503 | sourceTree = ""; 504 | }; 505 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 506 | isa = PBXGroup; 507 | children = ( 508 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 509 | ); 510 | name = Products; 511 | sourceTree = ""; 512 | }; 513 | A7B8E57B622441FD85556CB9 /* Resources */ = { 514 | isa = "PBXGroup"; 515 | children = ( 516 | ); 517 | name = Resources; 518 | sourceTree = ""; 519 | path = ""; 520 | }; 521 | /* End PBXGroup section */ 522 | 523 | /* Begin PBXNativeTarget section */ 524 | 00E356ED1AD99517003FC87E /* TrackPlayerDemoTests */ = { 525 | isa = PBXNativeTarget; 526 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TrackPlayerDemoTests" */; 527 | buildPhases = ( 528 | 00E356EA1AD99517003FC87E /* Sources */, 529 | 00E356EB1AD99517003FC87E /* Frameworks */, 530 | 00E356EC1AD99517003FC87E /* Resources */, 531 | ); 532 | buildRules = ( 533 | ); 534 | dependencies = ( 535 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 536 | ); 537 | name = TrackPlayerDemoTests; 538 | productName = TrackPlayerDemoTests; 539 | productReference = 00E356EE1AD99517003FC87E /* TrackPlayerDemoTests.xctest */; 540 | productType = "com.apple.product-type.bundle.unit-test"; 541 | }; 542 | 13B07F861A680F5B00A75B9A /* TrackPlayerDemo */ = { 543 | isa = PBXNativeTarget; 544 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TrackPlayerDemo" */; 545 | buildPhases = ( 546 | 13B07F871A680F5B00A75B9A /* Sources */, 547 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 548 | 13B07F8E1A680F5B00A75B9A /* Resources */, 549 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 550 | ); 551 | buildRules = ( 552 | ); 553 | dependencies = ( 554 | ); 555 | name = TrackPlayerDemo; 556 | productName = "Hello World"; 557 | productReference = 13B07F961A680F5B00A75B9A /* TrackPlayerDemo.app */; 558 | productType = "com.apple.product-type.application"; 559 | }; 560 | 2D02E47A1E0B4A5D006451C7 /* TrackPlayerDemo-tvOS */ = { 561 | isa = PBXNativeTarget; 562 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "TrackPlayerDemo-tvOS" */; 563 | buildPhases = ( 564 | 2D02E4771E0B4A5D006451C7 /* Sources */, 565 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 566 | 2D02E4791E0B4A5D006451C7 /* Resources */, 567 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 568 | ); 569 | buildRules = ( 570 | ); 571 | dependencies = ( 572 | ); 573 | name = "TrackPlayerDemo-tvOS"; 574 | productName = "TrackPlayerDemo-tvOS"; 575 | productReference = 2D02E47B1E0B4A5D006451C7 /* TrackPlayerDemo-tvOS.app */; 576 | productType = "com.apple.product-type.application"; 577 | }; 578 | 2D02E48F1E0B4A5D006451C7 /* TrackPlayerDemo-tvOSTests */ = { 579 | isa = PBXNativeTarget; 580 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "TrackPlayerDemo-tvOSTests" */; 581 | buildPhases = ( 582 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 583 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 584 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 585 | ); 586 | buildRules = ( 587 | ); 588 | dependencies = ( 589 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 590 | ); 591 | name = "TrackPlayerDemo-tvOSTests"; 592 | productName = "TrackPlayerDemo-tvOSTests"; 593 | productReference = 2D02E4901E0B4A5D006451C7 /* TrackPlayerDemo-tvOSTests.xctest */; 594 | productType = "com.apple.product-type.bundle.unit-test"; 595 | }; 596 | /* End PBXNativeTarget section */ 597 | 598 | /* Begin PBXProject section */ 599 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 600 | isa = PBXProject; 601 | attributes = { 602 | LastUpgradeCheck = 610; 603 | ORGANIZATIONNAME = Facebook; 604 | TargetAttributes = { 605 | 00E356ED1AD99517003FC87E = { 606 | CreatedOnToolsVersion = 6.2; 607 | TestTargetID = 13B07F861A680F5B00A75B9A; 608 | }; 609 | 2D02E47A1E0B4A5D006451C7 = { 610 | CreatedOnToolsVersion = 8.2.1; 611 | ProvisioningStyle = Automatic; 612 | }; 613 | 2D02E48F1E0B4A5D006451C7 = { 614 | CreatedOnToolsVersion = 8.2.1; 615 | ProvisioningStyle = Automatic; 616 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 617 | }; 618 | }; 619 | }; 620 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TrackPlayerDemo" */; 621 | compatibilityVersion = "Xcode 3.2"; 622 | developmentRegion = English; 623 | hasScannedForEncodings = 0; 624 | knownRegions = ( 625 | en, 626 | Base, 627 | ); 628 | mainGroup = 83CBB9F61A601CBA00E9B192; 629 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 630 | projectDirPath = ""; 631 | projectReferences = ( 632 | { 633 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 634 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 635 | }, 636 | { 637 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 638 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 639 | }, 640 | { 641 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 642 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 643 | }, 644 | { 645 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 646 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 647 | }, 648 | { 649 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 650 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 651 | }, 652 | { 653 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 654 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 655 | }, 656 | { 657 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 658 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 659 | }, 660 | { 661 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 662 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 663 | }, 664 | { 665 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 666 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 667 | }, 668 | { 669 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 670 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 671 | }, 672 | { 673 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 674 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 675 | }, 676 | { 677 | ProductGroup = 146834001AC3E56700842450 /* Products */; 678 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 679 | }, 680 | ); 681 | projectRoot = ""; 682 | targets = ( 683 | 13B07F861A680F5B00A75B9A /* TrackPlayerDemo */, 684 | 00E356ED1AD99517003FC87E /* TrackPlayerDemoTests */, 685 | 2D02E47A1E0B4A5D006451C7 /* TrackPlayerDemo-tvOS */, 686 | 2D02E48F1E0B4A5D006451C7 /* TrackPlayerDemo-tvOSTests */, 687 | ); 688 | }; 689 | /* End PBXProject section */ 690 | 691 | /* Begin PBXReferenceProxy section */ 692 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 693 | isa = PBXReferenceProxy; 694 | fileType = archive.ar; 695 | path = libRCTActionSheet.a; 696 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 697 | sourceTree = BUILT_PRODUCTS_DIR; 698 | }; 699 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 700 | isa = PBXReferenceProxy; 701 | fileType = archive.ar; 702 | path = libRCTGeolocation.a; 703 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 704 | sourceTree = BUILT_PRODUCTS_DIR; 705 | }; 706 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 707 | isa = PBXReferenceProxy; 708 | fileType = archive.ar; 709 | path = libRCTImage.a; 710 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 711 | sourceTree = BUILT_PRODUCTS_DIR; 712 | }; 713 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 714 | isa = PBXReferenceProxy; 715 | fileType = archive.ar; 716 | path = libRCTNetwork.a; 717 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 718 | sourceTree = BUILT_PRODUCTS_DIR; 719 | }; 720 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 721 | isa = PBXReferenceProxy; 722 | fileType = archive.ar; 723 | path = libRCTVibration.a; 724 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 725 | sourceTree = BUILT_PRODUCTS_DIR; 726 | }; 727 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 728 | isa = PBXReferenceProxy; 729 | fileType = archive.ar; 730 | path = libRCTSettings.a; 731 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 732 | sourceTree = BUILT_PRODUCTS_DIR; 733 | }; 734 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 735 | isa = PBXReferenceProxy; 736 | fileType = archive.ar; 737 | path = libRCTWebSocket.a; 738 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 739 | sourceTree = BUILT_PRODUCTS_DIR; 740 | }; 741 | 146834041AC3E56700842450 /* libReact.a */ = { 742 | isa = PBXReferenceProxy; 743 | fileType = archive.ar; 744 | path = libReact.a; 745 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 746 | sourceTree = BUILT_PRODUCTS_DIR; 747 | }; 748 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 749 | isa = PBXReferenceProxy; 750 | fileType = archive.ar; 751 | path = "libRCTImage-tvOS.a"; 752 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 753 | sourceTree = BUILT_PRODUCTS_DIR; 754 | }; 755 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 756 | isa = PBXReferenceProxy; 757 | fileType = archive.ar; 758 | path = "libRCTLinking-tvOS.a"; 759 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 760 | sourceTree = BUILT_PRODUCTS_DIR; 761 | }; 762 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 763 | isa = PBXReferenceProxy; 764 | fileType = archive.ar; 765 | path = "libRCTNetwork-tvOS.a"; 766 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 767 | sourceTree = BUILT_PRODUCTS_DIR; 768 | }; 769 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 770 | isa = PBXReferenceProxy; 771 | fileType = archive.ar; 772 | path = "libRCTSettings-tvOS.a"; 773 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 774 | sourceTree = BUILT_PRODUCTS_DIR; 775 | }; 776 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 777 | isa = PBXReferenceProxy; 778 | fileType = archive.ar; 779 | path = "libRCTText-tvOS.a"; 780 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 781 | sourceTree = BUILT_PRODUCTS_DIR; 782 | }; 783 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 784 | isa = PBXReferenceProxy; 785 | fileType = archive.ar; 786 | path = "libRCTWebSocket-tvOS.a"; 787 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 788 | sourceTree = BUILT_PRODUCTS_DIR; 789 | }; 790 | 3DAD3EA31DF850E9000B6D8A /* libReact-tvOS.a */ = { 791 | isa = PBXReferenceProxy; 792 | fileType = archive.ar; 793 | path = "libReact-tvOS.a"; 794 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 795 | sourceTree = BUILT_PRODUCTS_DIR; 796 | }; 797 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 798 | isa = PBXReferenceProxy; 799 | fileType = archive.ar; 800 | path = libyoga.a; 801 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 802 | sourceTree = BUILT_PRODUCTS_DIR; 803 | }; 804 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 805 | isa = PBXReferenceProxy; 806 | fileType = archive.ar; 807 | path = libyoga.a; 808 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 809 | sourceTree = BUILT_PRODUCTS_DIR; 810 | }; 811 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 812 | isa = PBXReferenceProxy; 813 | fileType = archive.ar; 814 | path = libcxxreact.a; 815 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 816 | sourceTree = BUILT_PRODUCTS_DIR; 817 | }; 818 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 819 | isa = PBXReferenceProxy; 820 | fileType = archive.ar; 821 | path = libcxxreact.a; 822 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 823 | sourceTree = BUILT_PRODUCTS_DIR; 824 | }; 825 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 826 | isa = PBXReferenceProxy; 827 | fileType = archive.ar; 828 | path = libjschelpers.a; 829 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 830 | sourceTree = BUILT_PRODUCTS_DIR; 831 | }; 832 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 833 | isa = PBXReferenceProxy; 834 | fileType = archive.ar; 835 | path = libjschelpers.a; 836 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 837 | sourceTree = BUILT_PRODUCTS_DIR; 838 | }; 839 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 840 | isa = PBXReferenceProxy; 841 | fileType = archive.ar; 842 | path = libRCTAnimation.a; 843 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 844 | sourceTree = BUILT_PRODUCTS_DIR; 845 | }; 846 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 847 | isa = PBXReferenceProxy; 848 | fileType = archive.ar; 849 | path = "libRCTAnimation-tvOS.a"; 850 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 851 | sourceTree = BUILT_PRODUCTS_DIR; 852 | }; 853 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 854 | isa = PBXReferenceProxy; 855 | fileType = archive.ar; 856 | path = libRCTLinking.a; 857 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 858 | sourceTree = BUILT_PRODUCTS_DIR; 859 | }; 860 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 861 | isa = PBXReferenceProxy; 862 | fileType = archive.ar; 863 | path = libRCTText.a; 864 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 865 | sourceTree = BUILT_PRODUCTS_DIR; 866 | }; 867 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 868 | isa = PBXReferenceProxy; 869 | fileType = archive.ar; 870 | path = libRCTBlob.a; 871 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 872 | sourceTree = BUILT_PRODUCTS_DIR; 873 | }; 874 | /* End PBXReferenceProxy section */ 875 | 876 | /* Begin PBXResourcesBuildPhase section */ 877 | 00E356EC1AD99517003FC87E /* Resources */ = { 878 | isa = PBXResourcesBuildPhase; 879 | buildActionMask = 2147483647; 880 | files = ( 881 | ); 882 | runOnlyForDeploymentPostprocessing = 0; 883 | }; 884 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 885 | isa = PBXResourcesBuildPhase; 886 | buildActionMask = 2147483647; 887 | files = ( 888 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 889 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 890 | ); 891 | runOnlyForDeploymentPostprocessing = 0; 892 | }; 893 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 894 | isa = PBXResourcesBuildPhase; 895 | buildActionMask = 2147483647; 896 | files = ( 897 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 898 | ); 899 | runOnlyForDeploymentPostprocessing = 0; 900 | }; 901 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 902 | isa = PBXResourcesBuildPhase; 903 | buildActionMask = 2147483647; 904 | files = ( 905 | ); 906 | runOnlyForDeploymentPostprocessing = 0; 907 | }; 908 | /* End PBXResourcesBuildPhase section */ 909 | 910 | /* Begin PBXShellScriptBuildPhase section */ 911 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 912 | isa = PBXShellScriptBuildPhase; 913 | buildActionMask = 2147483647; 914 | files = ( 915 | ); 916 | inputPaths = ( 917 | ); 918 | name = "Bundle React Native code and images"; 919 | outputPaths = ( 920 | ); 921 | runOnlyForDeploymentPostprocessing = 0; 922 | shellPath = /bin/sh; 923 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 924 | }; 925 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 926 | isa = PBXShellScriptBuildPhase; 927 | buildActionMask = 2147483647; 928 | files = ( 929 | ); 930 | inputPaths = ( 931 | ); 932 | name = "Bundle React Native Code And Images"; 933 | outputPaths = ( 934 | ); 935 | runOnlyForDeploymentPostprocessing = 0; 936 | shellPath = /bin/sh; 937 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 938 | }; 939 | /* End PBXShellScriptBuildPhase section */ 940 | 941 | /* Begin PBXSourcesBuildPhase section */ 942 | 00E356EA1AD99517003FC87E /* Sources */ = { 943 | isa = PBXSourcesBuildPhase; 944 | buildActionMask = 2147483647; 945 | files = ( 946 | 00E356F31AD99517003FC87E /* TrackPlayerDemoTests.m in Sources */, 947 | ); 948 | runOnlyForDeploymentPostprocessing = 0; 949 | }; 950 | 13B07F871A680F5B00A75B9A /* Sources */ = { 951 | isa = PBXSourcesBuildPhase; 952 | buildActionMask = 2147483647; 953 | files = ( 954 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 955 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 956 | ); 957 | runOnlyForDeploymentPostprocessing = 0; 958 | }; 959 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 960 | isa = PBXSourcesBuildPhase; 961 | buildActionMask = 2147483647; 962 | files = ( 963 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 964 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 965 | ); 966 | runOnlyForDeploymentPostprocessing = 0; 967 | }; 968 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 969 | isa = PBXSourcesBuildPhase; 970 | buildActionMask = 2147483647; 971 | files = ( 972 | 2DCD954D1E0B4F2C00145EB5 /* TrackPlayerDemoTests.m in Sources */, 973 | ); 974 | runOnlyForDeploymentPostprocessing = 0; 975 | }; 976 | /* End PBXSourcesBuildPhase section */ 977 | 978 | /* Begin PBXTargetDependency section */ 979 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 980 | isa = PBXTargetDependency; 981 | target = 13B07F861A680F5B00A75B9A /* TrackPlayerDemo */; 982 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 983 | }; 984 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 985 | isa = PBXTargetDependency; 986 | target = 2D02E47A1E0B4A5D006451C7 /* TrackPlayerDemo-tvOS */; 987 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 988 | }; 989 | /* End PBXTargetDependency section */ 990 | 991 | /* Begin PBXVariantGroup section */ 992 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 993 | isa = PBXVariantGroup; 994 | children = ( 995 | 13B07FB21A68108700A75B9A /* Base */, 996 | ); 997 | name = LaunchScreen.xib; 998 | path = TrackPlayerDemo; 999 | sourceTree = ""; 1000 | }; 1001 | /* End PBXVariantGroup section */ 1002 | 1003 | /* Begin XCBuildConfiguration section */ 1004 | 00E356F61AD99517003FC87E /* Debug */ = { 1005 | isa = XCBuildConfiguration; 1006 | buildSettings = { 1007 | BUNDLE_LOADER = "$(TEST_HOST)"; 1008 | GCC_PREPROCESSOR_DEFINITIONS = ( 1009 | "DEBUG=1", 1010 | "$(inherited)", 1011 | ); 1012 | INFOPLIST_FILE = TrackPlayerDemoTests/Info.plist; 1013 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1014 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1015 | OTHER_LDFLAGS = ( 1016 | "-ObjC", 1017 | "-lc++", 1018 | ); 1019 | PRODUCT_NAME = "$(TARGET_NAME)"; 1020 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrackPlayerDemo.app/TrackPlayerDemo"; 1021 | LIBRARY_SEARCH_PATHS = ( 1022 | "$(inherited)", 1023 | ); 1024 | HEADER_SEARCH_PATHS = ( 1025 | "$(inherited)", 1026 | "$(SRCROOT)\..\node_modules\react-native-track-player\ios\RNTrackPlayer/**", 1027 | ); 1028 | }; 1029 | name = Debug; 1030 | }; 1031 | 00E356F71AD99517003FC87E /* Release */ = { 1032 | isa = XCBuildConfiguration; 1033 | buildSettings = { 1034 | BUNDLE_LOADER = "$(TEST_HOST)"; 1035 | COPY_PHASE_STRIP = NO; 1036 | INFOPLIST_FILE = TrackPlayerDemoTests/Info.plist; 1037 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1038 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1039 | OTHER_LDFLAGS = ( 1040 | "-ObjC", 1041 | "-lc++", 1042 | ); 1043 | PRODUCT_NAME = "$(TARGET_NAME)"; 1044 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrackPlayerDemo.app/TrackPlayerDemo"; 1045 | LIBRARY_SEARCH_PATHS = ( 1046 | "$(inherited)", 1047 | ); 1048 | HEADER_SEARCH_PATHS = ( 1049 | "$(inherited)", 1050 | "$(SRCROOT)\..\node_modules\react-native-track-player\ios\RNTrackPlayer/**", 1051 | ); 1052 | }; 1053 | name = Release; 1054 | }; 1055 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1056 | isa = XCBuildConfiguration; 1057 | buildSettings = { 1058 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1059 | CURRENT_PROJECT_VERSION = 1; 1060 | DEAD_CODE_STRIPPING = NO; 1061 | INFOPLIST_FILE = TrackPlayerDemo/Info.plist; 1062 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1063 | OTHER_LDFLAGS = ( 1064 | "$(inherited)", 1065 | "-ObjC", 1066 | "-lc++", 1067 | ); 1068 | PRODUCT_NAME = TrackPlayerDemo; 1069 | VERSIONING_SYSTEM = "apple-generic"; 1070 | HEADER_SEARCH_PATHS = ( 1071 | "$(inherited)", 1072 | "$(SRCROOT)\..\node_modules\react-native-track-player\ios\RNTrackPlayer/**", 1073 | ); 1074 | }; 1075 | name = Debug; 1076 | }; 1077 | 13B07F951A680F5B00A75B9A /* Release */ = { 1078 | isa = XCBuildConfiguration; 1079 | buildSettings = { 1080 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1081 | CURRENT_PROJECT_VERSION = 1; 1082 | INFOPLIST_FILE = TrackPlayerDemo/Info.plist; 1083 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1084 | OTHER_LDFLAGS = ( 1085 | "$(inherited)", 1086 | "-ObjC", 1087 | "-lc++", 1088 | ); 1089 | PRODUCT_NAME = TrackPlayerDemo; 1090 | VERSIONING_SYSTEM = "apple-generic"; 1091 | HEADER_SEARCH_PATHS = ( 1092 | "$(inherited)", 1093 | "$(SRCROOT)\..\node_modules\react-native-track-player\ios\RNTrackPlayer/**", 1094 | ); 1095 | }; 1096 | name = Release; 1097 | }; 1098 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1099 | isa = XCBuildConfiguration; 1100 | buildSettings = { 1101 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1102 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1103 | CLANG_ANALYZER_NONNULL = YES; 1104 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1105 | CLANG_WARN_INFINITE_RECURSION = YES; 1106 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1107 | DEBUG_INFORMATION_FORMAT = dwarf; 1108 | ENABLE_TESTABILITY = YES; 1109 | GCC_NO_COMMON_BLOCKS = YES; 1110 | INFOPLIST_FILE = "TrackPlayerDemo-tvOS/Info.plist"; 1111 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1112 | OTHER_LDFLAGS = ( 1113 | "-ObjC", 1114 | "-lc++", 1115 | ); 1116 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.TrackPlayerDemo-tvOS"; 1117 | PRODUCT_NAME = "$(TARGET_NAME)"; 1118 | SDKROOT = appletvos; 1119 | TARGETED_DEVICE_FAMILY = 3; 1120 | TVOS_DEPLOYMENT_TARGET = 9.2; 1121 | LIBRARY_SEARCH_PATHS = ( 1122 | "$(inherited)", 1123 | ); 1124 | HEADER_SEARCH_PATHS = ( 1125 | "$(inherited)", 1126 | "$(SRCROOT)\..\node_modules\react-native-track-player\ios\RNTrackPlayer/**", 1127 | ); 1128 | }; 1129 | name = Debug; 1130 | }; 1131 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1132 | isa = XCBuildConfiguration; 1133 | buildSettings = { 1134 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1135 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1136 | CLANG_ANALYZER_NONNULL = YES; 1137 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1138 | CLANG_WARN_INFINITE_RECURSION = YES; 1139 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1140 | COPY_PHASE_STRIP = NO; 1141 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1142 | GCC_NO_COMMON_BLOCKS = YES; 1143 | INFOPLIST_FILE = "TrackPlayerDemo-tvOS/Info.plist"; 1144 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1145 | OTHER_LDFLAGS = ( 1146 | "-ObjC", 1147 | "-lc++", 1148 | ); 1149 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.TrackPlayerDemo-tvOS"; 1150 | PRODUCT_NAME = "$(TARGET_NAME)"; 1151 | SDKROOT = appletvos; 1152 | TARGETED_DEVICE_FAMILY = 3; 1153 | TVOS_DEPLOYMENT_TARGET = 9.2; 1154 | LIBRARY_SEARCH_PATHS = ( 1155 | "$(inherited)", 1156 | ); 1157 | HEADER_SEARCH_PATHS = ( 1158 | "$(inherited)", 1159 | "$(SRCROOT)\..\node_modules\react-native-track-player\ios\RNTrackPlayer/**", 1160 | ); 1161 | }; 1162 | name = Release; 1163 | }; 1164 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1165 | isa = XCBuildConfiguration; 1166 | buildSettings = { 1167 | BUNDLE_LOADER = "$(TEST_HOST)"; 1168 | CLANG_ANALYZER_NONNULL = YES; 1169 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1170 | CLANG_WARN_INFINITE_RECURSION = YES; 1171 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1172 | DEBUG_INFORMATION_FORMAT = dwarf; 1173 | ENABLE_TESTABILITY = YES; 1174 | GCC_NO_COMMON_BLOCKS = YES; 1175 | INFOPLIST_FILE = "TrackPlayerDemo-tvOSTests/Info.plist"; 1176 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1177 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.TrackPlayerDemo-tvOSTests"; 1178 | PRODUCT_NAME = "$(TARGET_NAME)"; 1179 | SDKROOT = appletvos; 1180 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrackPlayerDemo-tvOS.app/TrackPlayerDemo-tvOS"; 1181 | TVOS_DEPLOYMENT_TARGET = 10.1; 1182 | LIBRARY_SEARCH_PATHS = ( 1183 | "$(inherited)", 1184 | ); 1185 | }; 1186 | name = Debug; 1187 | }; 1188 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1189 | isa = XCBuildConfiguration; 1190 | buildSettings = { 1191 | BUNDLE_LOADER = "$(TEST_HOST)"; 1192 | CLANG_ANALYZER_NONNULL = YES; 1193 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1194 | CLANG_WARN_INFINITE_RECURSION = YES; 1195 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1196 | COPY_PHASE_STRIP = NO; 1197 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1198 | GCC_NO_COMMON_BLOCKS = YES; 1199 | INFOPLIST_FILE = "TrackPlayerDemo-tvOSTests/Info.plist"; 1200 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1201 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.TrackPlayerDemo-tvOSTests"; 1202 | PRODUCT_NAME = "$(TARGET_NAME)"; 1203 | SDKROOT = appletvos; 1204 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrackPlayerDemo-tvOS.app/TrackPlayerDemo-tvOS"; 1205 | TVOS_DEPLOYMENT_TARGET = 10.1; 1206 | LIBRARY_SEARCH_PATHS = ( 1207 | "$(inherited)", 1208 | ); 1209 | }; 1210 | name = Release; 1211 | }; 1212 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1213 | isa = XCBuildConfiguration; 1214 | buildSettings = { 1215 | ALWAYS_SEARCH_USER_PATHS = NO; 1216 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1217 | CLANG_CXX_LIBRARY = "libc++"; 1218 | CLANG_ENABLE_MODULES = YES; 1219 | CLANG_ENABLE_OBJC_ARC = YES; 1220 | CLANG_WARN_BOOL_CONVERSION = YES; 1221 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1222 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1223 | CLANG_WARN_EMPTY_BODY = YES; 1224 | CLANG_WARN_ENUM_CONVERSION = YES; 1225 | CLANG_WARN_INT_CONVERSION = YES; 1226 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1227 | CLANG_WARN_UNREACHABLE_CODE = YES; 1228 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1229 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1230 | COPY_PHASE_STRIP = NO; 1231 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1232 | GCC_C_LANGUAGE_STANDARD = gnu99; 1233 | GCC_DYNAMIC_NO_PIC = NO; 1234 | GCC_OPTIMIZATION_LEVEL = 0; 1235 | GCC_PREPROCESSOR_DEFINITIONS = ( 1236 | "DEBUG=1", 1237 | "$(inherited)", 1238 | ); 1239 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1240 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1241 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1242 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1243 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1244 | GCC_WARN_UNUSED_FUNCTION = YES; 1245 | GCC_WARN_UNUSED_VARIABLE = YES; 1246 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1247 | MTL_ENABLE_DEBUG_INFO = YES; 1248 | ONLY_ACTIVE_ARCH = YES; 1249 | SDKROOT = iphoneos; 1250 | }; 1251 | name = Debug; 1252 | }; 1253 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1254 | isa = XCBuildConfiguration; 1255 | buildSettings = { 1256 | ALWAYS_SEARCH_USER_PATHS = NO; 1257 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1258 | CLANG_CXX_LIBRARY = "libc++"; 1259 | CLANG_ENABLE_MODULES = YES; 1260 | CLANG_ENABLE_OBJC_ARC = YES; 1261 | CLANG_WARN_BOOL_CONVERSION = YES; 1262 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1263 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1264 | CLANG_WARN_EMPTY_BODY = YES; 1265 | CLANG_WARN_ENUM_CONVERSION = YES; 1266 | CLANG_WARN_INT_CONVERSION = YES; 1267 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1268 | CLANG_WARN_UNREACHABLE_CODE = YES; 1269 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1270 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1271 | COPY_PHASE_STRIP = YES; 1272 | ENABLE_NS_ASSERTIONS = NO; 1273 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1274 | GCC_C_LANGUAGE_STANDARD = gnu99; 1275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1277 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1279 | GCC_WARN_UNUSED_FUNCTION = YES; 1280 | GCC_WARN_UNUSED_VARIABLE = YES; 1281 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1282 | MTL_ENABLE_DEBUG_INFO = NO; 1283 | SDKROOT = iphoneos; 1284 | VALIDATE_PRODUCT = YES; 1285 | }; 1286 | name = Release; 1287 | }; 1288 | /* End XCBuildConfiguration section */ 1289 | 1290 | /* Begin XCConfigurationList section */ 1291 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "TrackPlayerDemoTests" */ = { 1292 | isa = XCConfigurationList; 1293 | buildConfigurations = ( 1294 | 00E356F61AD99517003FC87E /* Debug */, 1295 | 00E356F71AD99517003FC87E /* Release */, 1296 | ); 1297 | defaultConfigurationIsVisible = 0; 1298 | defaultConfigurationName = Release; 1299 | }; 1300 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "TrackPlayerDemo" */ = { 1301 | isa = XCConfigurationList; 1302 | buildConfigurations = ( 1303 | 13B07F941A680F5B00A75B9A /* Debug */, 1304 | 13B07F951A680F5B00A75B9A /* Release */, 1305 | ); 1306 | defaultConfigurationIsVisible = 0; 1307 | defaultConfigurationName = Release; 1308 | }; 1309 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "TrackPlayerDemo-tvOS" */ = { 1310 | isa = XCConfigurationList; 1311 | buildConfigurations = ( 1312 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1313 | 2D02E4981E0B4A5E006451C7 /* Release */, 1314 | ); 1315 | defaultConfigurationIsVisible = 0; 1316 | defaultConfigurationName = Release; 1317 | }; 1318 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "TrackPlayerDemo-tvOSTests" */ = { 1319 | isa = XCConfigurationList; 1320 | buildConfigurations = ( 1321 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1322 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1323 | ); 1324 | defaultConfigurationIsVisible = 0; 1325 | defaultConfigurationName = Release; 1326 | }; 1327 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "TrackPlayerDemo" */ = { 1328 | isa = XCConfigurationList; 1329 | buildConfigurations = ( 1330 | 83CBBA201A601CBA00E9B192 /* Debug */, 1331 | 83CBBA211A601CBA00E9B192 /* Release */, 1332 | ); 1333 | defaultConfigurationIsVisible = 0; 1334 | defaultConfigurationName = Release; 1335 | }; 1336 | /* End XCConfigurationList section */ 1337 | }; 1338 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1339 | } 1340 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo.xcodeproj/xcshareddata/xcschemes/TrackPlayerDemo-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo.xcodeproj/xcshareddata/xcschemes/TrackPlayerDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"TrackPlayerDemo" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo/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/TrackPlayerDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/TrackPlayerDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | TrackPlayerDemo 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | NSExceptionDomains 46 | 47 | localhost 48 | 49 | NSExceptionAllowsInsecureHTTPLoads 50 | 51 | 52 | 53 | 54 | UIAppFonts 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemo/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/TrackPlayerDemoTests/TrackPlayerDemoTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface TrackPlayerDemoTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation TrackPlayerDemoTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TrackPlayerDemo", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.0.0-alpha.12", 11 | "react-native": "0.48.4", 12 | "react-native-track-player": "github:react-native-kit/react-native-track-player#dev", 13 | "react-native-windows": "^0.48.0-rc.9", 14 | "react-redux": "^5.0.6", 15 | "redux": "^3.7.2", 16 | "redux-thunk": "^2.2.0" 17 | }, 18 | "devDependencies": { 19 | "babel-jest": "21.2.0", 20 | "babel-preset-react-native": "4.0.0", 21 | "jest": "21.2.1", 22 | "react-test-renderer": "16.0.0-alpha.12", 23 | "rnpm-plugin-windows": "^0.2.8" 24 | }, 25 | "jest": { 26 | "preset": "react-native" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /screenshots/android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/screenshots/android.png -------------------------------------------------------------------------------- /screenshots/windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/screenshots/windows.png -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { PureComponent } from 'react'; 2 | import { AppState } from 'react-native'; 3 | import { Provider } from 'react-redux'; 4 | import TrackPlayer from 'react-native-track-player'; // TODO remove temp code 5 | 6 | import { updatePlayback } from './logic/actions'; 7 | import Navigation from './screens/Navigation'; 8 | 9 | class App extends PureComponent { 10 | static store = null; 11 | 12 | async componentDidMount() { 13 | AppState.addEventListener('change', this._handleStateChange); 14 | 15 | // TODO remove temp code 16 | await TrackPlayer.setupPlayer({}); 17 | TrackPlayer.updateOptions({ 18 | capabilities: [ 19 | TrackPlayer.CAPABILITY_PLAY, 20 | TrackPlayer.CAPABILITY_PAUSE, 21 | TrackPlayer.CAPABILITY_SEEK_TO, 22 | TrackPlayer.CAPABILITY_SKIP_TO_NEXT, 23 | TrackPlayer.CAPABILITY_SKIP_TO_PREVIOUS 24 | ] 25 | }); 26 | } 27 | 28 | componentWillUnmount() { 29 | AppState.removeEventListener('change', this._handleStateChange); 30 | } 31 | 32 | _handleStateChange(appState) { 33 | if(appState == 'active') { 34 | // Updates the playback information when the app is back from background mode 35 | App.store.dispatch(updatePlayback()); 36 | } 37 | } 38 | 39 | render() { 40 | return ( 41 | 42 | 43 | 44 | ); 45 | } 46 | 47 | } 48 | 49 | module.exports = function(store) { 50 | App.store = store; 51 | return App; 52 | }; 53 | -------------------------------------------------------------------------------- /src/components/Header.js: -------------------------------------------------------------------------------- 1 | import React, { PureComponent } from 'react'; 2 | import { View, Text, StyleSheet, StatusBar, Platform } from 'react-native'; 3 | import { CastButton } from 'react-native-track-player'; 4 | 5 | class Header extends PureComponent { 6 | 7 | render() { 8 | return ( 9 | 10 | 14 | Demo App 15 | 16 | 17 | ); 18 | } 19 | 20 | } 21 | 22 | const styles = StyleSheet.create({ 23 | bar: { 24 | flexDirection: 'row', 25 | justifyContent: 'flex-start', 26 | alignItems: 'center', 27 | backgroundColor: '#03A9F4', 28 | height: 56, 29 | elevation: 5, 30 | borderTopWidth: Platform.OS == 'ios' ? 20 : 0, 31 | borderTopColor: '#0288D1' 32 | }, 33 | title: { 34 | flex: 1, 35 | fontSize: 20, 36 | fontWeight: '500', 37 | color: '#ffffff', 38 | paddingLeft: 16, 39 | paddingRight: 16 40 | } 41 | }); 42 | 43 | module.exports = Header; 44 | -------------------------------------------------------------------------------- /src/components/ImageButton.js: -------------------------------------------------------------------------------- 1 | import React, { PureComponent, PropTypes } from 'react'; 2 | import { TouchableOpacity, Image } from 'react-native'; 3 | 4 | class ImageButton extends PureComponent { 5 | 6 | render() { 7 | const {onPress, style, imageStyle, ...props} = this.props; 8 | 9 | return ( 10 | 11 | 12 | 13 | ); 14 | } 15 | 16 | } 17 | 18 | module.exports = ImageButton; 19 | -------------------------------------------------------------------------------- /src/components/MiniPlayer.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { TouchableOpacity, View, Text, Image, StyleSheet } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | import TrackPlayer, { ProgressComponent } from 'react-native-track-player'; 5 | 6 | import { navigateTo } from '../logic/actions'; 7 | 8 | import iconPlay from '../icons/play.png'; 9 | import iconPause from '../icons/pause.png'; 10 | 11 | class MiniPlayer extends ProgressComponent { 12 | 13 | _openNowPlaying() { 14 | this.props.dispatch(navigateTo('now-playing')); 15 | } 16 | 17 | _togglePlayPause() { 18 | if(this.props.state == TrackPlayer.STATE_PAUSED) { 19 | TrackPlayer.play(); 20 | } else { 21 | TrackPlayer.pause(); 22 | } 23 | } 24 | 25 | render() { 26 | if(!this.props.track || this.props.state == TrackPlayer.STATE_NONE || this.props.state == TrackPlayer.STATE_STOPPED) { 27 | return ; 28 | } 29 | 30 | return ( 31 | 32 | 33 | 34 | 35 | 39 | 40 | {this.props.track.title} 41 | {this.props.track.artist} 42 | 43 | 44 | 45 | 46 | 50 | 51 | 52 | 58 | 59 | ); 60 | } 61 | 62 | } 63 | 64 | const styles = StyleSheet.create({ 65 | player: { 66 | elevation: 5, 67 | backgroundColor: '#424141' 68 | }, 69 | content: { 70 | flexDirection: 'row', 71 | alignItems: 'center', 72 | }, 73 | bar: { 74 | height: 2, 75 | backgroundColor: '#03A9F4' 76 | }, 77 | wide: { 78 | flex: 1 79 | }, 80 | metadata: { 81 | flexDirection: 'row', 82 | alignItems: 'center' 83 | }, 84 | artwork: { 85 | width: 50, 86 | height: 50, 87 | margin: 10 88 | }, 89 | info: { 90 | paddingLeft: 5, 91 | paddingRight: 5 92 | }, 93 | title: { 94 | color: '#e6e6e6', 95 | fontSize: 16, 96 | fontWeight: '500' 97 | }, 98 | artist: { 99 | color: '#9a9a9a', 100 | fontSize: 14, 101 | fontWeight: '300' 102 | }, 103 | icon: { 104 | height: 50, 105 | width: 50, 106 | margin: 10 107 | } 108 | }); 109 | 110 | MiniPlayer.propTypes = { 111 | state: PropTypes.number, 112 | track: PropTypes.object 113 | }; 114 | 115 | function mapStateToProps(state) { 116 | const currentTrack = state.playback.currentTrack; 117 | const tracks = state.library.tracks; 118 | 119 | return { 120 | state: state.playback.state, 121 | track: tracks ? tracks.find((track) => track.id == currentTrack) : null 122 | }; 123 | } 124 | 125 | module.exports = connect(mapStateToProps)(MiniPlayer); 126 | -------------------------------------------------------------------------------- /src/components/ProgressBar.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { View, Text, StyleSheet, TouchableWithoutFeedback } from 'react-native'; 3 | import TrackPlayer, { ProgressComponent } from 'react-native-track-player'; 4 | 5 | import { formatTime } from '../logic/utils'; 6 | 7 | class ProgressBar extends ProgressComponent { 8 | 9 | render() { 10 | const position = formatTime(Math.floor(this.state.position)); 11 | const duration = formatTime(Math.floor(this.state.duration)); 12 | const info = position + ' / ' + duration; 13 | 14 | let progress = this.getProgress() * 100; 15 | let buffered = this.getBufferedProgress() * 100; 16 | buffered -= progress; 17 | if(buffered < 0) buffered = 0; 18 | 19 | return ( 20 | 21 | {info} 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | ); 30 | } 31 | 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | view: { 36 | flexDirection: 'column', 37 | alignItems: 'center', 38 | flex: 1, 39 | width: '100%' 40 | }, 41 | info: { 42 | color: '#c0c0c0', 43 | fontSize: 16, 44 | fontWeight: '300', 45 | margin: 10 46 | }, 47 | bar: { 48 | backgroundColor: '#575757', 49 | height: 5, 50 | width: '100%', 51 | margin: 10, 52 | flexDirection: 'row', 53 | alignItems: 'flex-start' 54 | }, 55 | played: { 56 | backgroundColor: '#03A9F4', 57 | height: 5 58 | }, 59 | buffered: { 60 | backgroundColor: '#797979', 61 | height: 5 62 | } 63 | }); 64 | 65 | module.exports = ProgressBar; 66 | -------------------------------------------------------------------------------- /src/components/Track.js: -------------------------------------------------------------------------------- 1 | import React, { PureComponent, PropTypes } from 'react'; 2 | import { TouchableOpacity, View, Text, Image, StyleSheet } from 'react-native'; 3 | 4 | class Track extends PureComponent { 5 | 6 | render() { 7 | return ( 8 | 9 | 10 | 14 | 15 | {this.props.track.title} 16 | {this.props.track.artist} 17 | 18 | 19 | 20 | ); 21 | } 22 | 23 | } 24 | 25 | Track.propTypes = { 26 | track: PropTypes.object.isRequired, 27 | onPress: PropTypes.func.isRequired 28 | }; 29 | 30 | const styles = StyleSheet.create({ 31 | track: { 32 | flexDirection: 'row', 33 | alignItems: 'center', 34 | padding: 10 35 | }, 36 | artwork: { 37 | width: 50, 38 | height: 50 39 | }, 40 | info: { 41 | paddingLeft: 10, 42 | paddingRight: 10 43 | }, 44 | title: { 45 | color: '#e6e6e6', 46 | fontSize: 16, 47 | fontWeight: '500' 48 | }, 49 | artist: { 50 | color: '#9a9a9a', 51 | fontSize: 14, 52 | fontWeight: '300' 53 | } 54 | }); 55 | 56 | module.exports = Track; 57 | -------------------------------------------------------------------------------- /src/components/TrackList.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { View, FlatList, ActivityIndicator, Text } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | 5 | import Track from './Track'; 6 | import { fetchLibrary } from '../logic/actions'; 7 | 8 | import TrackPlayer from 'react-native-track-player'; 9 | 10 | class TrackList extends Component { 11 | 12 | componentDidMount() { 13 | this.props.dispatch(fetchLibrary()); 14 | } 15 | 16 | _keyExtractor(item) { 17 | return item.id; 18 | } 19 | 20 | _renderItem({item}) { 21 | return ( 22 | { 25 | // TODO sort out 26 | console.log(item); 27 | await TrackPlayer.setupPlayer({}); 28 | await TrackPlayer.add({ ...item }); 29 | TrackPlayer.play(); 30 | }} 31 | /> 32 | ); 33 | } 34 | 35 | render() { 36 | if(this.props.fetching) { 37 | return ( 38 | 43 | ); 44 | } 45 | 46 | return ( 47 | 52 | ); 53 | } 54 | 55 | } 56 | 57 | TrackList.propTypes = { 58 | tracks: PropTypes.array, 59 | fetching: PropTypes.bool, 60 | error: PropTypes.string, 61 | dispatch: PropTypes.func.isRequired 62 | }; 63 | 64 | function mapStateToProps(state) { 65 | return { 66 | tracks: state.library.tracks, 67 | fetching: state.library.fetching, 68 | error: state.library.error 69 | }; 70 | } 71 | 72 | module.exports = connect(mapStateToProps)(TrackList); 73 | -------------------------------------------------------------------------------- /src/icons/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/src/icons/arrow.png -------------------------------------------------------------------------------- /src/icons/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/src/icons/next.png -------------------------------------------------------------------------------- /src/icons/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/src/icons/pause.png -------------------------------------------------------------------------------- /src/icons/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/src/icons/play.png -------------------------------------------------------------------------------- /src/icons/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/src/icons/previous.png -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import TrackPlayer from 'react-native-track-player'; 3 | 4 | import { createStore, applyMiddleware } from 'redux'; 5 | import thunkMiddleware from 'redux-thunk'; 6 | 7 | import createApp from './App'; 8 | import createEventHandler from './logic/event-handler'; 9 | 10 | import reducers from './logic/reducers'; 11 | 12 | const store = createStore(reducers, applyMiddleware(thunkMiddleware)); 13 | 14 | AppRegistry.registerComponent('TrackPlayerDemo', () => createApp(store)); 15 | TrackPlayer.registerEventHandler(createEventHandler(store)); 16 | -------------------------------------------------------------------------------- /src/logic/actions.js: -------------------------------------------------------------------------------- 1 | import TrackPlayer from 'react-native-track-player'; 2 | import { loadTracks } from './utils'; 3 | 4 | export const UPDATE_LIBRARY = 'UPDATE_LIBRARY'; 5 | export const LIBRARY_STATUS = 'LIBRARY_STATUS'; 6 | 7 | export const PLAYBACK_INIT = 'PLAYBACK_INIT'; 8 | export const PLAYBACK_STATE = 'PLAYBACK_STATE'; 9 | export const PLAYBACK_TRACK = 'PLAYBACK_TRACK'; 10 | 11 | export const NAVIGATE_TO = 'NAVIGATE_TO'; 12 | 13 | function libraryStatus(fetching, error) { 14 | return { 15 | type: LIBRARY_STATUS, 16 | fetching: fetching, 17 | error: error 18 | }; 19 | } 20 | 21 | export function fetchLibrary() { 22 | return (dispatch, getState) => { 23 | 24 | let state = getState(); 25 | if(state.library && (state.library.fetching || state.library.tracks)) { 26 | // Already fetching or fetched 27 | return; 28 | } 29 | 30 | dispatch(libraryStatus(true)); 31 | 32 | loadTracks().then((data) => { 33 | dispatch({ 34 | type: UPDATE_LIBRARY, 35 | tracks: data 36 | }); 37 | }, (error) => { 38 | dispatch(libraryStatus(false, error)); 39 | }); 40 | 41 | }; 42 | } 43 | 44 | export function initializePlayback() {//TODO 45 | return async (dispatch, getState) => { 46 | await TrackPlayer.setupPlayer({ 47 | maxCacheSize: 1024 * 5 // 5 mb 48 | }); 49 | dispatch({ 50 | type: PLAYBACK_INIT 51 | }); 52 | }; 53 | } 54 | 55 | export function playbackState(state) { 56 | return { 57 | type: PLAYBACK_STATE, 58 | state: state 59 | }; 60 | } 61 | 62 | export function playbackTrack(track) { 63 | return { 64 | type: PLAYBACK_TRACK, 65 | track: track 66 | }; 67 | } 68 | 69 | export function updatePlayback() { 70 | return async (dispatch, getState) => { 71 | try { 72 | dispatch(playbackState(await TrackPlayer.getState())); 73 | dispatch(playbackTrack(await TrackPlayer.getCurrentTrack())); 74 | } catch(e) { 75 | // The player is probably not yet initialized 76 | // which means we don't have to update anything 77 | } 78 | }; 79 | } 80 | 81 | export function navigateTo(screenName) { 82 | return { 83 | type: NAVIGATE_TO, 84 | currentScreen: screenName 85 | }; 86 | } 87 | -------------------------------------------------------------------------------- /src/logic/event-handler.js: -------------------------------------------------------------------------------- 1 | import { Alert } from 'react-native'; 2 | import TrackPlayer from 'react-native-track-player'; 3 | 4 | import { playbackState, playbackTrack } from './actions'; 5 | 6 | async function eventHandler(store, data) { 7 | switch(data.type) { 8 | 9 | // Forward remote events to the player 10 | case 'remote-play': 11 | TrackPlayer.play(); 12 | break; 13 | case 'remote-pause': 14 | TrackPlayer.pause(); 15 | break; 16 | case 'remote-stop': 17 | TrackPlayer.stop(); 18 | break; 19 | case 'remote-next': 20 | TrackPlayer.skipToNext(); 21 | break; 22 | case 'remote-previous': 23 | TrackPlayer.skipToPrevious(); 24 | break; 25 | case 'remote-seek': 26 | TrackPlayer.seekTo(data.position); 27 | break; 28 | 29 | // You can make ducking smoother by adding a fade in/out 30 | case 'remote-duck': 31 | TrackPlayer.setVolume(data.ducking ? 0.5 : 1); 32 | break; 33 | 34 | // Playback updates 35 | case 'playback-state': 36 | store.dispatch(playbackState(data.state)); 37 | break; 38 | case 'playback-track-changed': 39 | store.dispatch(playbackTrack(data.nextTrack)); 40 | break; 41 | case 'playback-error': 42 | Alert.alert('An error ocurred', data.error); 43 | break; 44 | } 45 | }; 46 | 47 | module.exports = function(store) { 48 | return eventHandler.bind(null, store); 49 | }; 50 | -------------------------------------------------------------------------------- /src/logic/reducers.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | import { 3 | UPDATE_LIBRARY, 4 | LIBRARY_STATUS, 5 | PLAYBACK_INIT, 6 | PLAYBACK_STATE, 7 | PLAYBACK_TRACK, 8 | NAVIGATE_TO 9 | } from './actions'; 10 | 11 | function libraryReducer(state = {}, action) { 12 | switch(action.type) { 13 | case UPDATE_LIBRARY: 14 | return { 15 | ...state, 16 | tracks: action.tracks, 17 | fetching: false, 18 | error: null 19 | }; 20 | case LIBRARY_STATUS: 21 | return { 22 | ...state, 23 | fetching: action.fetching, 24 | error: action.error 25 | }; 26 | default: 27 | return state; 28 | } 29 | } 30 | 31 | function playbackReducer(state = {}, action) { 32 | switch(action.type) { 33 | case PLAYBACK_INIT: 34 | return { 35 | ...state, 36 | init: true 37 | }; 38 | case PLAYBACK_STATE: 39 | return { 40 | ...state, 41 | state: action.state 42 | }; 43 | case PLAYBACK_TRACK: 44 | return { 45 | ...state, 46 | currentTrack: action.track 47 | }; 48 | default: 49 | return state; 50 | } 51 | } 52 | 53 | function screenReducer(state = 'library', action) { 54 | switch(action.type) { 55 | case NAVIGATE_TO: 56 | return action.currentScreen; 57 | default: 58 | return state; 59 | } 60 | } 61 | 62 | module.exports = combineReducers({ 63 | library: libraryReducer, 64 | playback: playbackReducer, 65 | currentScreen: screenReducer 66 | }); 67 | -------------------------------------------------------------------------------- /src/logic/utils.js: -------------------------------------------------------------------------------- 1 | // This provider is from Google's UniversalMusicPlayer demo for Android 2 | const base = 'http://storage.googleapis.com/automotive-media/'; 3 | const catalog = 'music.json'; 4 | 5 | /** 6 | * Load tracks from Google's demo provider 7 | */ 8 | export async function loadTracks() { 9 | let response = await fetch(base + catalog); 10 | let json = await response.json(); 11 | let data = []; 12 | 13 | for(let i = 0; i < json.music.length; i++) { 14 | let track = json.music[i]; 15 | // Parse the JSON into Track Structures 16 | // https://github.com/react-native-kit/react-native-track-player/wiki/Documentation#track-structure 17 | data.push({ 18 | id: track.source, 19 | url: base + track.source, 20 | artwork: base + track.image, 21 | duration: track.duration, 22 | 23 | title: track.title, 24 | artist: track.artist, 25 | album: track.album, 26 | genre: track.genre 27 | }); 28 | } 29 | 30 | return data; 31 | } 32 | 33 | function formatTwoDigits(n) { 34 | return n < 10 ? '0' + n : n; 35 | } 36 | 37 | /** 38 | * Format time to "HH:mm:ss" or "mm:ss" 39 | */ 40 | export function formatTime(seconds) { 41 | const ss = Math.floor(seconds) % 60; 42 | const mm = Math.floor(seconds / 60) % 60; 43 | const hh = Math.floor(seconds / 3600); 44 | 45 | if(hh > 0) { 46 | return hh + ':' + formatTwoDigits(mm) + ':' + formatTwoDigits(ss); 47 | } else { 48 | return mm + ':' + formatTwoDigits(ss); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/screens/LibraryScreen.js: -------------------------------------------------------------------------------- 1 | import React, { PureComponent, PropTypes } from 'react'; 2 | import { View, StyleSheet } from 'react-native'; 3 | 4 | import Header from '../components/Header'; 5 | import TrackList from '../components/TrackList'; 6 | import MiniPlayer from '../components/MiniPlayer'; 7 | 8 | /** 9 | * A screen that displays the track list and a mini player 10 | */ 11 | class LibraryScreen extends PureComponent { 12 | 13 | render() { 14 | return ( 15 | 16 |
17 | 18 | 19 | 20 | ); 21 | } 22 | 23 | } 24 | 25 | const styles = StyleSheet.create({ 26 | view: { 27 | flex: 1, 28 | flexDirection: 'column', 29 | justifyContent: 'space-between', 30 | backgroundColor: '#333333' 31 | }, 32 | list: { 33 | flex: 1 34 | } 35 | }); 36 | 37 | module.exports = LibraryScreen; 38 | -------------------------------------------------------------------------------- /src/screens/Navigation.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { BackHandler } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | 5 | import { navigateTo } from '../logic/actions'; 6 | import LibraryScreen from './LibraryScreen'; 7 | import NowPlayingScreen from './NowPlayingScreen'; 8 | 9 | /** 10 | * A really simple navigation component 11 | * This can be definitely improved 12 | */ 13 | class Navigation extends Component { 14 | 15 | componentDidMount() { 16 | BackHandler.addEventListener('hardwareBackPress', this._onBackPress.bind(this)); 17 | } 18 | 19 | componentWillUnmount() { 20 | BackHandler.removeEventListener('hardwareBackPress', this._onBackPress.bind(this)); 21 | } 22 | 23 | _onBackPress() { 24 | if(this.props.currentScreen != 'library') { 25 | this.props.dispatch(navigateTo('library')); 26 | return true; 27 | } else { 28 | return false; 29 | } 30 | } 31 | 32 | render() { 33 | if(this.props.currentScreen == 'now-playing') { 34 | return ; 35 | } else { 36 | return ; 37 | } 38 | } 39 | 40 | } 41 | 42 | Navigation.propTypes = { 43 | currentScreen: PropTypes.string 44 | }; 45 | 46 | function mapStateToProps(state) { 47 | return { 48 | currentScreen: state.currentScreen 49 | }; 50 | } 51 | 52 | module.exports = connect(mapStateToProps)(Navigation); 53 | -------------------------------------------------------------------------------- /src/screens/NowPlayingScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component, PropTypes } from 'react'; 2 | import { 3 | View, Text, Image, ImageBackground, TouchableOpacity, 4 | StyleSheet, StatusBar, Dimensions, Platform 5 | } from 'react-native'; 6 | import { connect } from 'react-redux'; 7 | import TrackPlayer from 'react-native-track-player'; 8 | 9 | import ImageButton from '../components/ImageButton'; 10 | import ProgressBar from '../components/ProgressBar'; 11 | 12 | import { navigateTo } from '../logic/actions'; 13 | 14 | import iconArrow from '../icons/arrow.png'; 15 | import iconPlay from '../icons/play.png'; 16 | import iconPause from '../icons/pause.png'; 17 | import iconPrevious from '../icons/previous.png'; 18 | import iconNext from '../icons/next.png'; 19 | 20 | /** 21 | * A screen dedicated to show what is playing 22 | */ 23 | class NowPlayingScreen extends Component { 24 | 25 | _goBack() { 26 | this.props.dispatch(navigateTo('library')); 27 | } 28 | 29 | _playPause() { 30 | if(this.props.state == TrackPlayer.STATE_PAUSED) { 31 | TrackPlayer.play(); 32 | } else { 33 | TrackPlayer.pause(); 34 | } 35 | } 36 | 37 | async _previous() { 38 | // TODO add tracks to the queue 39 | } 40 | 41 | _next() { 42 | // TODO add tracks to the queue 43 | } 44 | 45 | render() { 46 | if(!this.props.track) { 47 | return ( 48 | 49 | Unknown track 54 | 55 | ); 56 | } 57 | 58 | let {height, width} = Dimensions.get('window'); 59 | let artworkHeight = height / 2; 60 | if(artworkHeight > width) artworkHeight = width; 61 | 62 | return ( 63 | 64 | 68 | 73 | 74 | 79 | Now Playing 80 | 81 | 82 | 83 | {this.props.track.title} 84 | {this.props.track.artist} 85 | 86 | 87 | 88 | 93 | 99 | 104 | 105 | 106 | ); 107 | } 108 | 109 | } 110 | 111 | const styles = StyleSheet.create({ 112 | view: { 113 | flex: 1, 114 | flexDirection: 'column', 115 | alignItems: 'center', 116 | justifyContent: 'space-between', 117 | backgroundColor: '#2b2b2b' 118 | }, 119 | artwork: { 120 | width: '100%', 121 | height: 200 122 | }, 123 | artworkLandscape: { 124 | //TODO 125 | }, 126 | header: { 127 | marginTop: Platform.OS == 'ios' ? 20 : 24, 128 | padding: 1, 129 | height: 56, 130 | flexDirection: 'row', 131 | alignItems: 'center' 132 | }, 133 | headerIcon: { 134 | width: 24, 135 | height: 24, 136 | margin: 15 137 | }, 138 | headerTitle: { 139 | fontSize: 20, 140 | fontWeight: '400', 141 | color: '#ffffff', 142 | marginHorizontal: 16 143 | }, 144 | info: { 145 | flexDirection: 'column', 146 | alignItems: 'center', 147 | margin: 20 148 | }, 149 | title: { 150 | color: '#e6e6e6', 151 | fontSize: 19, 152 | fontWeight: '500' 153 | }, 154 | artist: { 155 | color: '#9a9a9a', 156 | fontSize: 16, 157 | fontWeight: '400' 158 | }, 159 | controls: { 160 | flexDirection: 'row', 161 | alignItems: 'center', 162 | justifyContent: 'space-around', 163 | padding: 25 164 | }, 165 | controlIcon: { 166 | width: 40, 167 | height: 40 168 | }, 169 | playPause: { 170 | borderRadius: 50, 171 | borderWidth: 2, 172 | borderColor: '#ffffff', 173 | padding: 10, 174 | marginHorizontal: 15 175 | } 176 | }); 177 | 178 | NowPlayingScreen.propTypes = { 179 | state: PropTypes.number, 180 | track: PropTypes.object 181 | }; 182 | 183 | function mapStateToProps(state) { 184 | const currentTrack = state.playback.currentTrack; 185 | const tracks = state.library.tracks; 186 | 187 | return { 188 | state: state.playback.state, 189 | track: tracks ? tracks.find((track) => track.id == currentTrack) : null 190 | }; 191 | } 192 | 193 | module.exports = connect(mapStateToProps)(NowPlayingScreen); 194 | -------------------------------------------------------------------------------- /track-player.json: -------------------------------------------------------------------------------- 1 | { 2 | "exoplayer": true 3 | } 4 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | *AppPackages* 2 | *BundleArtifacts* 3 | 4 | #OS junk files 5 | [Tt]humbs.db 6 | *.DS_Store 7 | 8 | #Visual Studio files 9 | *.[Oo]bj 10 | *.user 11 | *.aps 12 | *.pch 13 | *.vspscc 14 | *.vssscc 15 | *_i.c 16 | *_p.c 17 | *.ncb 18 | *.suo 19 | *.tlb 20 | *.tlh 21 | *.bak 22 | *.[Cc]ache 23 | *.ilk 24 | *.log 25 | *.lib 26 | *.sbr 27 | *.sdf 28 | *.opensdf 29 | *.opendb 30 | *.unsuccessfulbuild 31 | ipch/ 32 | [Oo]bj/ 33 | [Bb]in 34 | [Dd]ebug*/ 35 | [Rr]elease*/ 36 | Ankh.NoLoad 37 | 38 | # Visual C++ cache files 39 | ipch/ 40 | *.aps 41 | *.ncb 42 | *.opendb 43 | *.opensdf 44 | *.sdf 45 | *.cachefile 46 | *.VC.db 47 | *.VC.VC.opendb 48 | 49 | #MonoDevelop 50 | *.pidb 51 | *.userprefs 52 | 53 | #Tooling 54 | _ReSharper*/ 55 | *.resharper 56 | [Tt]est[Rr]esult* 57 | *.sass-cache 58 | 59 | #Project files 60 | [Bb]uild/ 61 | 62 | #Subversion files 63 | .svn 64 | 65 | # Office Temp Files 66 | ~$* 67 | 68 | # vim Temp Files 69 | *~ 70 | 71 | #NuGet 72 | packages/ 73 | *.nupkg 74 | 75 | #ncrunch 76 | *ncrunch* 77 | *crunch*.local.xml 78 | 79 | # visual studio database projects 80 | *.dbmdl 81 | 82 | #Test files 83 | *.testsettings 84 | 85 | #Other files 86 | *.DotSettings 87 | .vs/ 88 | *project.lock.json 89 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 15 3 | VisualStudioVersion = 15.0.26730.16 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrackPlayerDemo", "TrackPlayerDemo\TrackPlayerDemo.csproj", "{2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}" 6 | EndProject 7 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}" 8 | EndProject 9 | Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ReactNative.Shared", "..\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\ReactNative.Shared.shproj", "{EEA8B852-4D07-48E1-8294-A21AB5909FE5}" 10 | EndProject 11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ChakraBridge", "..\node_modules\react-native-windows\ReactWindows\ChakraBridge\ChakraBridge.vcxproj", "{4B72C796-16D5-4E3A-81C0-3E36F531E578}" 12 | EndProject 13 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNativeWebViewBridge", "..\node_modules\react-native-windows\ReactWindows\ReactNativeWebViewBridge\ReactNativeWebViewBridge.csproj", "{7596216B-669C-41F8-86DA-F3637F6545C0}" 14 | EndProject 15 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNTrackPlayer", "..\node_modules\react-native-track-player\windows\RNTrackPlayer\RNTrackPlayer.csproj", "{E292F490-9FB8-11E7-B023-0F938699DB28}" 16 | EndProject 17 | Global 18 | GlobalSection(SharedMSBuildProjectFiles) = preSolution 19 | ..\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\ReactNative.Shared.projitems*{c7673ad5-e3aa-468c-a5fd-fa38154e205c}*SharedItemsImports = 4 20 | ..\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\ReactNative.Shared.projitems*{eea8b852-4d07-48e1-8294-a21ab5909fe5}*SharedItemsImports = 13 21 | EndGlobalSection 22 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 23 | Debug|ARM = Debug|ARM 24 | Debug|x64 = Debug|x64 25 | Debug|x86 = Debug|x86 26 | DebugBundle|ARM = DebugBundle|ARM 27 | DebugBundle|x64 = DebugBundle|x64 28 | DebugBundle|x86 = DebugBundle|x86 29 | Release|ARM = Release|ARM 30 | Release|x64 = Release|x64 31 | Release|x86 = Release|x86 32 | ReleaseBundle|ARM = ReleaseBundle|ARM 33 | ReleaseBundle|x64 = ReleaseBundle|x64 34 | ReleaseBundle|x86 = ReleaseBundle|x86 35 | EndGlobalSection 36 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 37 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|ARM.ActiveCfg = Debug|ARM 38 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|ARM.Build.0 = Debug|ARM 39 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|ARM.Deploy.0 = Debug|ARM 40 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|x64.ActiveCfg = Debug|x64 41 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|x64.Build.0 = Debug|x64 42 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|x64.Deploy.0 = Debug|x64 43 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|x86.ActiveCfg = Debug|x86 44 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|x86.Build.0 = Debug|x86 45 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Debug|x86.Deploy.0 = Debug|x86 46 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|ARM.ActiveCfg = DebugBundle|ARM 47 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|ARM.Build.0 = DebugBundle|ARM 48 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|ARM.Deploy.0 = DebugBundle|ARM 49 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|x64.ActiveCfg = DebugBundle|x64 50 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|x64.Build.0 = DebugBundle|x64 51 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|x64.Deploy.0 = DebugBundle|x64 52 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|x86.ActiveCfg = DebugBundle|x86 53 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|x86.Build.0 = DebugBundle|x86 54 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.DebugBundle|x86.Deploy.0 = DebugBundle|x86 55 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|ARM.ActiveCfg = Release|ARM 56 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|ARM.Build.0 = Release|ARM 57 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|ARM.Deploy.0 = Release|ARM 58 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|x64.ActiveCfg = Release|x64 59 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|x64.Build.0 = Release|x64 60 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|x64.Deploy.0 = Release|x64 61 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|x86.ActiveCfg = Release|x86 62 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|x86.Build.0 = Release|x86 63 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.Release|x86.Deploy.0 = Release|x86 64 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|ARM.ActiveCfg = ReleaseBundle|ARM 65 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|ARM.Build.0 = ReleaseBundle|ARM 66 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|ARM.Deploy.0 = ReleaseBundle|ARM 67 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|x64.ActiveCfg = ReleaseBundle|x64 68 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|x64.Build.0 = ReleaseBundle|x64 69 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|x64.Deploy.0 = ReleaseBundle|x64 70 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|x86.ActiveCfg = ReleaseBundle|x86 71 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|x86.Build.0 = ReleaseBundle|x86 72 | {2EAAD0C4-48BE-40EA-B4FC-5A6F6CCA6D80}.ReleaseBundle|x86.Deploy.0 = ReleaseBundle|x86 73 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM 74 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM 75 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64 76 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64 77 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86 78 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86 79 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|ARM.ActiveCfg = Debug|ARM 80 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|ARM.Build.0 = Debug|ARM 81 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x64.ActiveCfg = Debug|x64 82 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x64.Build.0 = Debug|x64 83 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x86.ActiveCfg = Debug|x86 84 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x86.Build.0 = Debug|x86 85 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM 86 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM 87 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64 88 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64 89 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86 90 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86 91 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|ARM.ActiveCfg = Release|ARM 92 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|ARM.Build.0 = Release|ARM 93 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x64.ActiveCfg = Release|x64 94 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x64.Build.0 = Release|x64 95 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x86.ActiveCfg = Release|x86 96 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x86.Build.0 = Release|x86 97 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.ActiveCfg = Debug|ARM 98 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.Build.0 = Debug|ARM 99 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.ActiveCfg = Debug|x64 100 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.Build.0 = Debug|x64 101 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.ActiveCfg = Debug|Win32 102 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.Build.0 = Debug|Win32 103 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|ARM.ActiveCfg = Debug|ARM 104 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|ARM.Build.0 = Debug|ARM 105 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x64.ActiveCfg = Debug|x64 106 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x64.Build.0 = Debug|x64 107 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x86.ActiveCfg = Debug|Win32 108 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x86.Build.0 = Debug|Win32 109 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.ActiveCfg = Release|ARM 110 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.Build.0 = Release|ARM 111 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.ActiveCfg = Release|x64 112 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.Build.0 = Release|x64 113 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.ActiveCfg = Release|Win32 114 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.Build.0 = Release|Win32 115 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|ARM.ActiveCfg = Release|ARM 116 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|ARM.Build.0 = Release|ARM 117 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x64.ActiveCfg = Release|x64 118 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x64.Build.0 = Release|x64 119 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x86.ActiveCfg = Release|Win32 120 | {4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x86.Build.0 = Release|Win32 121 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Debug|ARM.ActiveCfg = Debug|ARM 122 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Debug|ARM.Build.0 = Debug|ARM 123 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Debug|x64.ActiveCfg = Debug|x64 124 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Debug|x64.Build.0 = Debug|x64 125 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Debug|x86.ActiveCfg = Debug|x86 126 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Debug|x86.Build.0 = Debug|x86 127 | {7596216B-669C-41F8-86DA-F3637F6545C0}.DebugBundle|ARM.ActiveCfg = Debug|ARM 128 | {7596216B-669C-41F8-86DA-F3637F6545C0}.DebugBundle|ARM.Build.0 = Debug|ARM 129 | {7596216B-669C-41F8-86DA-F3637F6545C0}.DebugBundle|x64.ActiveCfg = Debug|x64 130 | {7596216B-669C-41F8-86DA-F3637F6545C0}.DebugBundle|x64.Build.0 = Debug|x64 131 | {7596216B-669C-41F8-86DA-F3637F6545C0}.DebugBundle|x86.ActiveCfg = Debug|x86 132 | {7596216B-669C-41F8-86DA-F3637F6545C0}.DebugBundle|x86.Build.0 = Debug|x86 133 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Release|ARM.ActiveCfg = Release|ARM 134 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Release|ARM.Build.0 = Release|ARM 135 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Release|x64.ActiveCfg = Release|x64 136 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Release|x64.Build.0 = Release|x64 137 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Release|x86.ActiveCfg = Release|x86 138 | {7596216B-669C-41F8-86DA-F3637F6545C0}.Release|x86.Build.0 = Release|x86 139 | {7596216B-669C-41F8-86DA-F3637F6545C0}.ReleaseBundle|ARM.ActiveCfg = Release|ARM 140 | {7596216B-669C-41F8-86DA-F3637F6545C0}.ReleaseBundle|ARM.Build.0 = Release|ARM 141 | {7596216B-669C-41F8-86DA-F3637F6545C0}.ReleaseBundle|x64.ActiveCfg = Release|x64 142 | {7596216B-669C-41F8-86DA-F3637F6545C0}.ReleaseBundle|x64.Build.0 = Release|x64 143 | {7596216B-669C-41F8-86DA-F3637F6545C0}.ReleaseBundle|x86.ActiveCfg = Release|x86 144 | {7596216B-669C-41F8-86DA-F3637F6545C0}.ReleaseBundle|x86.Build.0 = Release|x86 145 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Debug|ARM.ActiveCfg = Debug|ARM 146 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Debug|ARM.Build.0 = Debug|ARM 147 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Debug|x64.ActiveCfg = Debug|x64 148 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Debug|x64.Build.0 = Debug|x64 149 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Debug|x86.ActiveCfg = Debug|x86 150 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Debug|x86.Build.0 = Debug|x86 151 | {E292F490-9FB8-11E7-B023-0F938699DB28}.DebugBundle|ARM.ActiveCfg = Debug|ARM 152 | {E292F490-9FB8-11E7-B023-0F938699DB28}.DebugBundle|ARM.Build.0 = Debug|ARM 153 | {E292F490-9FB8-11E7-B023-0F938699DB28}.DebugBundle|x64.ActiveCfg = Debug|x64 154 | {E292F490-9FB8-11E7-B023-0F938699DB28}.DebugBundle|x64.Build.0 = Debug|x64 155 | {E292F490-9FB8-11E7-B023-0F938699DB28}.DebugBundle|x86.ActiveCfg = Debug|x86 156 | {E292F490-9FB8-11E7-B023-0F938699DB28}.DebugBundle|x86.Build.0 = Debug|x86 157 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Release|ARM.ActiveCfg = Release|ARM 158 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Release|ARM.Build.0 = Release|ARM 159 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Release|x64.ActiveCfg = Release|x64 160 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Release|x64.Build.0 = Release|x64 161 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Release|x86.ActiveCfg = Release|x86 162 | {E292F490-9FB8-11E7-B023-0F938699DB28}.Release|x86.Build.0 = Release|x86 163 | {E292F490-9FB8-11E7-B023-0F938699DB28}.ReleaseBundle|ARM.ActiveCfg = Release|ARM 164 | {E292F490-9FB8-11E7-B023-0F938699DB28}.ReleaseBundle|ARM.Build.0 = Release|ARM 165 | {E292F490-9FB8-11E7-B023-0F938699DB28}.ReleaseBundle|x64.ActiveCfg = Release|x64 166 | {E292F490-9FB8-11E7-B023-0F938699DB28}.ReleaseBundle|x64.Build.0 = Release|x64 167 | {E292F490-9FB8-11E7-B023-0F938699DB28}.ReleaseBundle|x86.ActiveCfg = Release|x86 168 | {E292F490-9FB8-11E7-B023-0F938699DB28}.ReleaseBundle|x86.Build.0 = Release|x86 169 | EndGlobalSection 170 | GlobalSection(SolutionProperties) = preSolution 171 | HideSolutionNode = FALSE 172 | EndGlobalSection 173 | GlobalSection(ExtensibilityGlobals) = postSolution 174 | SolutionGuid = {49C9D295-E6A5-4518-BB80-857EA308AF22} 175 | EndGlobalSection 176 | EndGlobal 177 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using ReactNative; 2 | using ReactNative.Modules.Launch; 3 | using System; 4 | using Windows.ApplicationModel; 5 | using Windows.ApplicationModel.Activation; 6 | using Windows.UI.Core; 7 | using Windows.UI.Xaml; 8 | using Windows.UI.Xaml.Controls; 9 | using Windows.UI.Xaml.Navigation; 10 | 11 | namespace TrackPlayerDemo 12 | { 13 | /// 14 | /// Provides application-specific behavior to supplement the default Application class. 15 | /// 16 | sealed partial class App : Application 17 | { 18 | private readonly ReactPage _reactPage; 19 | 20 | /// 21 | /// Initializes the singleton application object. This is the first line of authored code 22 | /// executed, and as such is the logical equivalent of main() or WinMain(). 23 | /// 24 | public App() 25 | { 26 | this.InitializeComponent(); 27 | this.Suspending += OnSuspending; 28 | this.Resuming += OnResuming; 29 | 30 | _reactPage = new MainPage(); 31 | } 32 | 33 | /// 34 | /// Invoked when the application is launched normally by the end user. Other entry points 35 | /// will be used such as when the application is launched to open a specific file. 36 | /// 37 | /// Details about the launch request and process. 38 | protected override void OnLaunched(LaunchActivatedEventArgs e) 39 | { 40 | base.OnLaunched(e); 41 | OnCreate(e.Arguments); 42 | } 43 | 44 | /// 45 | /// Invoked when the application is activated. 46 | /// 47 | /// The activated event arguments. 48 | protected override void OnActivated(IActivatedEventArgs args) 49 | { 50 | base.OnActivated(args); 51 | 52 | switch (args.Kind) 53 | { 54 | case ActivationKind.Protocol: 55 | case ActivationKind.ProtocolForResults: 56 | var protocolArgs = (IProtocolActivatedEventArgs)args; 57 | LauncherModule.SetActivatedUrl(protocolArgs.Uri.AbsoluteUri); 58 | break; 59 | } 60 | 61 | if (args.PreviousExecutionState != ApplicationExecutionState.Running && 62 | args.PreviousExecutionState != ApplicationExecutionState.Suspended) 63 | { 64 | OnCreate(null); 65 | } 66 | } 67 | 68 | /// 69 | /// Called whenever the app is opened to initia 70 | /// 71 | /// 72 | private void OnCreate(string arguments) 73 | { 74 | _reactPage.OnResume(Exit); 75 | 76 | #if DEBUG 77 | if (System.Diagnostics.Debugger.IsAttached) 78 | { 79 | this.DebugSettings.EnableFrameRateCounter = true; 80 | } 81 | 82 | SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = 83 | AppViewBackButtonVisibility.Visible; 84 | #endif 85 | 86 | Frame rootFrame = Window.Current.Content as Frame; 87 | 88 | // Do not repeat app initialization when the Window already has content, 89 | // just ensure that the window is active 90 | if (rootFrame == null) 91 | { 92 | _reactPage.OnCreate(arguments); 93 | 94 | // Create a Frame to act as the navigation context and navigate to the first page 95 | rootFrame = new Frame(); 96 | 97 | rootFrame.NavigationFailed += OnNavigationFailed; 98 | 99 | // Place the frame in the current Window 100 | Window.Current.Content = rootFrame; 101 | } 102 | 103 | if (rootFrame.Content == null) 104 | { 105 | // When the navigation stack isn't restored navigate to the first page, 106 | // configuring the new page by passing required information as a navigation 107 | // parameter 108 | rootFrame.Content = _reactPage; 109 | } 110 | 111 | // Ensure the current window is active 112 | Window.Current.Activate(); 113 | } 114 | 115 | /// 116 | /// Invoked when Navigation to a certain page fails 117 | /// 118 | /// The Frame which failed navigation 119 | /// Details about the navigation failure 120 | private void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 121 | { 122 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 123 | } 124 | 125 | /// 126 | /// Invoked when application execution is being suspended. Application state is saved 127 | /// without knowing whether the application will be terminated or resumed with the contents 128 | /// of memory still intact. 129 | /// 130 | /// The source of the suspend request. 131 | /// Details about the suspend request. 132 | private void OnSuspending(object sender, SuspendingEventArgs e) 133 | { 134 | _reactPage.OnSuspend(); 135 | } 136 | 137 | /// 138 | /// Invoked when application execution is being resumed. 139 | /// 140 | /// The source of the resume request. 141 | /// Details about the resume request. 142 | private void OnResuming(object sender, object e) 143 | { 144 | _reactPage.OnResume(Exit); 145 | } 146 | } 147 | } 148 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/StoreLogo.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/MainPage.cs: -------------------------------------------------------------------------------- 1 | using ReactNative; 2 | using ReactNative.Modules.Core; 3 | using TrackPlayer; 4 | using ReactNative.Shell; 5 | using System.Collections.Generic; 6 | 7 | namespace TrackPlayerDemo 8 | { 9 | class MainPage : ReactPage 10 | { 11 | public override string MainComponentName 12 | { 13 | get 14 | { 15 | return "TrackPlayerDemo"; 16 | } 17 | } 18 | 19 | #if BUNDLE 20 | public override string JavaScriptBundleFile 21 | { 22 | get 23 | { 24 | return "ms-appx:///ReactAssets/index.windows.bundle"; 25 | } 26 | } 27 | #endif 28 | 29 | public override List Packages 30 | { 31 | get 32 | { 33 | return new List 34 | { 35 | new MainReactPackage(), 36 | new TrackPlayerPackage(), 37 | }; 38 | } 39 | } 40 | 41 | public override bool UseDeveloperSupport 42 | { 43 | get 44 | { 45 | #if !BUNDLE || DEBUG 46 | return true; 47 | #else 48 | return false; 49 | #endif 50 | } 51 | } 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | TrackPlayerDemo 19 | React Native for UWP 20 | Assets\StoreLogo.png 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 35 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("TrackPlayerDemo")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("TrackPlayerDemo")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/ReactAssets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/TrackPlayerDemo.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | x86 7 | {2eaad0c4-48be-40ea-b4fc-5a6f6cca6d80} 8 | AppContainerExe 9 | Properties 10 | TrackPlayerDemo 11 | TrackPlayerDemo 12 | en-US 13 | UAP 14 | 10.0.10586.0 15 | 10.0.10240.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | TrackPlayerDemo_TemporaryKey.pfx 20 | D6C520E00E4DBCDA6B0F638B59B71DEB1EBB3825 21 | 22 | 23 | true 24 | bin\x86\Debug\ 25 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 26 | ;2008 27 | full 28 | x86 29 | false 30 | prompt 31 | true 32 | 33 | 34 | true 35 | bin\x86\DebugBundle\ 36 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS;BUNDLE 37 | ;2008 38 | true 39 | full 40 | x86 41 | false 42 | prompt 43 | MinimumRecommendedRules.ruleset 44 | true 45 | 46 | 47 | bin\x86\Release\ 48 | TRACE;NETFX_CORE;WINDOWS_UWP 49 | true 50 | ;2008 51 | pdbonly 52 | x86 53 | false 54 | prompt 55 | true 56 | true 57 | 58 | 59 | bin\x86\ReleaseBundle\ 60 | TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS;BUNDLE 61 | true 62 | ;2008 63 | true 64 | pdbonly 65 | x86 66 | false 67 | prompt 68 | MinimumRecommendedRules.ruleset 69 | true 70 | true 71 | 72 | 73 | true 74 | bin\ARM\Debug\ 75 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 76 | ;2008 77 | full 78 | ARM 79 | false 80 | prompt 81 | true 82 | 83 | 84 | true 85 | bin\ARM\DebugBundle\ 86 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS;BUNDLE 87 | ;2008 88 | true 89 | full 90 | ARM 91 | false 92 | prompt 93 | MinimumRecommendedRules.ruleset 94 | true 95 | 96 | 97 | bin\ARM\Release\ 98 | TRACE;NETFX_CORE;WINDOWS_UWP 99 | true 100 | ;2008 101 | pdbonly 102 | ARM 103 | false 104 | prompt 105 | true 106 | true 107 | 108 | 109 | bin\ARM\ReleaseBundle\ 110 | TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS;BUNDLE 111 | true 112 | ;2008 113 | true 114 | pdbonly 115 | ARM 116 | false 117 | prompt 118 | MinimumRecommendedRules.ruleset 119 | true 120 | true 121 | 122 | 123 | true 124 | bin\x64\Debug\ 125 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 126 | ;2008 127 | full 128 | x64 129 | false 130 | prompt 131 | true 132 | 133 | 134 | true 135 | bin\x64\DebugBundle\ 136 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS;BUNDLE 137 | ;2008 138 | true 139 | full 140 | x64 141 | false 142 | prompt 143 | MinimumRecommendedRules.ruleset 144 | true 145 | 146 | 147 | bin\x64\Release\ 148 | TRACE;NETFX_CORE;WINDOWS_UWP 149 | true 150 | ;2008 151 | pdbonly 152 | x64 153 | false 154 | prompt 155 | true 156 | true 157 | 158 | 159 | bin\x64\ReleaseBundle\ 160 | TRACE;NETFX_CORE;WINDOWS_UWP;CODE_ANALYSIS;BUNDLE 161 | true 162 | ;2008 163 | true 164 | pdbonly 165 | x64 166 | false 167 | prompt 168 | MinimumRecommendedRules.ruleset 169 | true 170 | true 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | App.xaml 179 | 180 | 181 | 182 | 183 | 184 | 185 | Designer 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | MSBuild:Compile 202 | Designer 203 | 204 | 205 | 206 | 207 | {ea617100-ace9-a70e-1e19-07715c87b72d} 208 | C:\BackupHD\Projetos\localweb\react-native-track-player-demo\node_modules\react-native-track-player\windows\RNTrackPlayer\RNTrackPlayer 209 | 210 | 211 | {c7673ad5-e3aa-468c-a5fd-fa38154e205c} 212 | ReactNative 213 | 214 | 215 | 216 | 217 | PreserveNewest 218 | 219 | 220 | 221 | 14.0 222 | 223 | 224 | 231 | 232 | -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/TrackPlayerDemo_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-kit/react-native-track-player-demo/16e6efbaad19a9e85120c33a258ce41206e83fa3/windows/TrackPlayerDemo/TrackPlayerDemo_TemporaryKey.pfx -------------------------------------------------------------------------------- /windows/TrackPlayerDemo/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2" 4 | }, 5 | "frameworks": { 6 | "uap10.0": {} 7 | }, 8 | "runtimes": { 9 | "win10-arm": {}, 10 | "win10-arm-aot": {}, 11 | "win10-x86": {}, 12 | "win10-x86-aot": {}, 13 | "win10-x64": {}, 14 | "win10-x64-aot": {} 15 | } 16 | } 17 | --------------------------------------------------------------------------------