Loading Examples/VideoPlayer/.flowconfig +16 −14 Changes for Examples/VideoPlayer/.flowconfig: 16 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -14,17 +14,19 @@ # Ignore react and fbjs where there are overlaps, but don't ignore # anything that react-native relies on .*/node_modules/fbjs-haste/.*/__tests__/.* .*/node_modules/fbjs-haste/__forks__/Map.js .*/node_modules/fbjs-haste/__forks__/Promise.js .*/node_modules/fbjs-haste/__forks__/fetch.js .*/node_modules/fbjs-haste/core/ExecutionEnvironment.js .*/node_modules/fbjs-haste/core/isEmpty.js .*/node_modules/fbjs-haste/crypto/crc32.js .*/node_modules/fbjs-haste/stubs/ErrorUtils.js .*/node_modules/react-haste/React.js .*/node_modules/react-haste/renderers/dom/ReactDOM.js .*/node_modules/react-haste/renderers/shared/event/eventPlugins/ResponderEventPlugin.js .*/node_modules/fbjs/lib/Map.js .*/node_modules/fbjs/lib/Promise.js .*/node_modules/fbjs/lib/fetch.js .*/node_modules/fbjs/lib/ExecutionEnvironment.js .*/node_modules/fbjs/lib/isEmpty.js .*/node_modules/fbjs/lib/crc32.js .*/node_modules/fbjs/lib/ErrorUtils.js # Flow has a built-in definition for the 'react' module which we prefer to use # over the currently-untyped source .*/node_modules/react/react.js .*/node_modules/react/lib/React.js .*/node_modules/react/lib/ReactDOM.js # Ignore commoner tests .*/node_modules/commoner/test/.* Loading Loading @@ -55,9 +57,9 @@ suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy [version] 0.18.1 0.20.1 Examples/VideoPlayer/.gitignore +35 −1 Changes for Examples/VideoPlayer/.gitignore: 35 added lines, 1 removed line. Original line number Diff line number Diff line node_modules/**/* VideoPlayer.xcodeproj/project.xcworkspace/**/* VideoPlayer.xcodeproj/xcuserdata/**/* # OSX # .DS_Store # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate project.xcworkspace # Android/IJ # .idea .gradle local.properties # node.js # node_modules/ npm-debug.log Examples/VideoPlayer/android/app/build.gradle +42 −3 Changes for Examples/VideoPlayer/android/app/build.gradle: 42 added lines, 3 removed lines. Original line number Diff line number Diff line apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. * These basically call `react-native bundle` with the correct arguments during the Android build Loading Loading @@ -49,6 +51,22 @@ apply plugin: "com.android.application" apply from: "react.gradle" /** * Set this to true to create three separate APKs instead of one: * - A universal APK that works on all devices * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false android { compileSdkVersion 23 buildToolsVersion "23.0.1" Loading @@ -63,17 +81,38 @@ android { abiFilters "armeabi-v7a", "x86" } } splits { abi { enable enableSeparateBuildPerCPUArchitecture universalApk true reset() include "armeabi-v7a", "x86" } } buildTypes { release { minifyEnabled false // Set this to true to enable Proguard minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits def versionCodes = ["armeabi-v7a":1, "x86":2] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } } dependencies { compile project(':react-native-video') compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:0.16.+" compile project(':RCTVideo') compile "com.facebook.react:react-native:0.19.+" } Examples/VideoPlayer/android/app/proguard-rules.pro +7 −0 Changes for Examples/VideoPlayer/android/app/proguard-rules.pro: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -40,10 +40,13 @@ -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } -keep class * extends com.facebook.react.bridge.NativeModule { *; } -keepclassmembers,includedescriptorclasses class * { native <methods>; } -keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; } -keepclassmembers class * { @com.facebook.react.uimanager.ReactProp <methods>; } -keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup <methods>; } -dontwarn com.facebook.react.** # okhttp -keepattributes Signature Loading @@ -58,3 +61,7 @@ -dontwarn java.nio.file.* -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement -dontwarn okio.** # stetho -dontwarn com.facebook.stetho.** Examples/VideoPlayer/android/app/react.gradle +21 −2 Changes for Examples/VideoPlayer/android/app/react.gradle: 21 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -74,14 +74,33 @@ task bundleReleaseJsAndAssets(type: Exec) { enabled config.bundleInRelease ?: true } void runBefore(String dependentTaskName, Task task) { Task dependentTask = tasks.findByPath(dependentTaskName); if (dependentTask != null) { dependentTask.dependsOn task } } gradle.projectsEvaluated { // hook bundleDebugJsAndAssets into the android build process bundleDebugJsAndAssets.dependsOn mergeDebugResources bundleDebugJsAndAssets.dependsOn mergeDebugAssets processDebugResources.dependsOn bundleDebugJsAndAssets runBefore('processArmeabi-v7aDebugResources', bundleDebugJsAndAssets) runBefore('processX86DebugResources', bundleDebugJsAndAssets) runBefore('processUniversalDebugResources', bundleDebugJsAndAssets) runBefore('processDebugResources', bundleDebugJsAndAssets) // hook bundleReleaseJsAndAssets into the android build process bundleReleaseJsAndAssets.dependsOn mergeReleaseResources bundleReleaseJsAndAssets.dependsOn mergeReleaseAssets processReleaseResources.dependsOn bundleReleaseJsAndAssets runBefore('processArmeabi-v7aReleaseResources', bundleReleaseJsAndAssets) runBefore('processX86ReleaseResources', bundleReleaseJsAndAssets) runBefore('processUniversalReleaseResources', bundleReleaseJsAndAssets) runBefore('processReleaseResources', bundleReleaseJsAndAssets) } Loading
Examples/VideoPlayer/.flowconfig +16 −14 Changes for Examples/VideoPlayer/.flowconfig: 16 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -14,17 +14,19 @@ # Ignore react and fbjs where there are overlaps, but don't ignore # anything that react-native relies on .*/node_modules/fbjs-haste/.*/__tests__/.* .*/node_modules/fbjs-haste/__forks__/Map.js .*/node_modules/fbjs-haste/__forks__/Promise.js .*/node_modules/fbjs-haste/__forks__/fetch.js .*/node_modules/fbjs-haste/core/ExecutionEnvironment.js .*/node_modules/fbjs-haste/core/isEmpty.js .*/node_modules/fbjs-haste/crypto/crc32.js .*/node_modules/fbjs-haste/stubs/ErrorUtils.js .*/node_modules/react-haste/React.js .*/node_modules/react-haste/renderers/dom/ReactDOM.js .*/node_modules/react-haste/renderers/shared/event/eventPlugins/ResponderEventPlugin.js .*/node_modules/fbjs/lib/Map.js .*/node_modules/fbjs/lib/Promise.js .*/node_modules/fbjs/lib/fetch.js .*/node_modules/fbjs/lib/ExecutionEnvironment.js .*/node_modules/fbjs/lib/isEmpty.js .*/node_modules/fbjs/lib/crc32.js .*/node_modules/fbjs/lib/ErrorUtils.js # Flow has a built-in definition for the 'react' module which we prefer to use # over the currently-untyped source .*/node_modules/react/react.js .*/node_modules/react/lib/React.js .*/node_modules/react/lib/ReactDOM.js # Ignore commoner tests .*/node_modules/commoner/test/.* Loading Loading @@ -55,9 +57,9 @@ suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy [version] 0.18.1 0.20.1
Examples/VideoPlayer/.gitignore +35 −1 Changes for Examples/VideoPlayer/.gitignore: 35 added lines, 1 removed line. Original line number Diff line number Diff line node_modules/**/* VideoPlayer.xcodeproj/project.xcworkspace/**/* VideoPlayer.xcodeproj/xcuserdata/**/* # OSX # .DS_Store # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate project.xcworkspace # Android/IJ # .idea .gradle local.properties # node.js # node_modules/ npm-debug.log
Examples/VideoPlayer/android/app/build.gradle +42 −3 Changes for Examples/VideoPlayer/android/app/build.gradle: 42 added lines, 3 removed lines. Original line number Diff line number Diff line apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. * These basically call `react-native bundle` with the correct arguments during the Android build Loading Loading @@ -49,6 +51,22 @@ apply plugin: "com.android.application" apply from: "react.gradle" /** * Set this to true to create three separate APKs instead of one: * - A universal APK that works on all devices * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false android { compileSdkVersion 23 buildToolsVersion "23.0.1" Loading @@ -63,17 +81,38 @@ android { abiFilters "armeabi-v7a", "x86" } } splits { abi { enable enableSeparateBuildPerCPUArchitecture universalApk true reset() include "armeabi-v7a", "x86" } } buildTypes { release { minifyEnabled false // Set this to true to enable Proguard minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits def versionCodes = ["armeabi-v7a":1, "x86":2] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } } dependencies { compile project(':react-native-video') compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:0.16.+" compile project(':RCTVideo') compile "com.facebook.react:react-native:0.19.+" }
Examples/VideoPlayer/android/app/proguard-rules.pro +7 −0 Changes for Examples/VideoPlayer/android/app/proguard-rules.pro: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -40,10 +40,13 @@ -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } -keep class * extends com.facebook.react.bridge.NativeModule { *; } -keepclassmembers,includedescriptorclasses class * { native <methods>; } -keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; } -keepclassmembers class * { @com.facebook.react.uimanager.ReactProp <methods>; } -keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup <methods>; } -dontwarn com.facebook.react.** # okhttp -keepattributes Signature Loading @@ -58,3 +61,7 @@ -dontwarn java.nio.file.* -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement -dontwarn okio.** # stetho -dontwarn com.facebook.stetho.**
Examples/VideoPlayer/android/app/react.gradle +21 −2 Changes for Examples/VideoPlayer/android/app/react.gradle: 21 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -74,14 +74,33 @@ task bundleReleaseJsAndAssets(type: Exec) { enabled config.bundleInRelease ?: true } void runBefore(String dependentTaskName, Task task) { Task dependentTask = tasks.findByPath(dependentTaskName); if (dependentTask != null) { dependentTask.dependsOn task } } gradle.projectsEvaluated { // hook bundleDebugJsAndAssets into the android build process bundleDebugJsAndAssets.dependsOn mergeDebugResources bundleDebugJsAndAssets.dependsOn mergeDebugAssets processDebugResources.dependsOn bundleDebugJsAndAssets runBefore('processArmeabi-v7aDebugResources', bundleDebugJsAndAssets) runBefore('processX86DebugResources', bundleDebugJsAndAssets) runBefore('processUniversalDebugResources', bundleDebugJsAndAssets) runBefore('processDebugResources', bundleDebugJsAndAssets) // hook bundleReleaseJsAndAssets into the android build process bundleReleaseJsAndAssets.dependsOn mergeReleaseResources bundleReleaseJsAndAssets.dependsOn mergeReleaseAssets processReleaseResources.dependsOn bundleReleaseJsAndAssets runBefore('processArmeabi-v7aReleaseResources', bundleReleaseJsAndAssets) runBefore('processX86ReleaseResources', bundleReleaseJsAndAssets) runBefore('processUniversalReleaseResources', bundleReleaseJsAndAssets) runBefore('processReleaseResources', bundleReleaseJsAndAssets) }