Loading Examples/VideoPlayer/.buckconfig 0 → 100644 +6 −0 Changes for Examples/VideoPlayer/.buckconfig: 6 added lines, 0 removed lines. Original line number Diff line number Diff line [android] target = Google Inc.:Google APIs:23 [maven_repositories] central = https://repo1.maven.org/maven2 Examples/VideoPlayer/.flowconfig +23 −54 Changes for Examples/VideoPlayer/.flowconfig: 23 added lines, 54 removed lines. Original line number Diff line number Diff line [ignore] # We fork some components by platform. .*/*.web.js .*/*.android.js # Some modules have their own node_modules with overlap .*/node_modules/node-haste/.* # Ignore templates with `@flow` in header .*/local-cli/generator.* # Ugh .*/node_modules/babel.* .*/node_modules/babylon.* .*/node_modules/invariant.* # Ignore react and fbjs where there are overlaps, but don't ignore # anything that react-native relies on .*/node_modules/fbjs/lib/Map.js .*/node_modules/fbjs/lib/fetch.js .*/node_modules/fbjs/lib/ExecutionEnvironment.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 .*/__mocks__/.* .*/__tests__/.* .*/commoner/test/source/widget/share.js # Ignore commoner tests .*/node_modules/commoner/test/.* # Ignore malformed json .*/node_modules/y18n/test/.*\.json # See https://github.com/facebook/flow/issues/442 .*/react-tools/node_modules/commoner/lib/reader.js # Ignore the website subdir <PROJECT_ROOT>/website/.* # Ignore jest .*/node_modules/jest-cli/.* # Ignore BUCK generated dirs <PROJECT_ROOT>/\.buckd/ # Ignore Website .*/website/.* # Ignore unexpected extra @providesModule .*/node_modules/commoner/test/source/widget/share.js .*/node_modules/is-my-json-valid/test/.*\.json .*/node_modules/iconv-lite/encodings/tables/.*\.json .*/node_modules/y18n/test/.*\.json .*/node_modules/spdx-license-ids/spdx-license-ids.json .*/node_modules/spdx-exceptions/index.json .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json .*/node_modules/resolve/lib/core.json .*/node_modules/jsonparse/samplejson/.*\.json .*/node_modules/json5/test/.*\.json .*/node_modules/ua-parser-js/test/.*\.json .*/node_modules/builtin-modules/builtin-modules.json .*/node_modules/binary-extensions/binary-extensions.json .*/node_modules/url-regex/tlds.json .*/node_modules/joi/.*\.json .*/node_modules/isemail/.*\.json .*/node_modules/tr46/.*\.json # Ignore duplicate module providers # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root .*/Libraries/react-native/React.js .*/Libraries/react-native/ReactNative.js .*/node_modules/jest-runtime/build/__tests__/.* [include] Loading @@ -72,18 +37,22 @@ module.system=haste esproposal.class_static_fields=enable esproposal.class_instance_fields=enable experimental.strict_type_args=true munge_underscores=true module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 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\)$' -> 'RelativeImageStub' 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' suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-2]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-2]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy unsafe.enable_getters_and_setters=true [version] 0.22.0 ^0.30.0 Examples/VideoPlayer/.gitignore +7 −3 Changes for Examples/VideoPlayer/.gitignore: 7 added lines, 3 removed lines. Original line number Diff line number Diff line VideoPlayer.xcodeproj/project.xcworkspace/**/* VideoPlayer.xcodeproj/xcuserdata/**/* # OSX # .DS_Store Loading @@ -27,6 +24,7 @@ project.xcworkspace # Android/IJ # *.iml .idea .gradle local.properties Loading @@ -35,3 +33,9 @@ local.properties # node_modules/ npm-debug.log # BUCK buck-out/ \.buckd/ android/app/libs android/keystores/debug.keystore Examples/VideoPlayer/android/app/BUCK 0 → 100644 +66 −0 Changes for Examples/VideoPlayer/android/app/BUCK: 66 added lines, 0 removed lines. Original line number Diff line number Diff line import re # To learn about Buck see [Docs](https://buckbuild.com/). # To run your application with Buck: # - install Buck # - `npm start` - to start the packager # - `cd android` # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck # - `buck install -r android/app` - compile, install and run application # lib_deps = [] for jarfile in glob(['libs/*.jar']): name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) lib_deps.append(':' + name) prebuilt_jar( name = name, binary_jar = jarfile, ) for aarfile in glob(['libs/*.aar']): name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) lib_deps.append(':' + name) android_prebuilt_aar( name = name, aar = aarfile, ) android_library( name = 'all-libs', exported_deps = lib_deps ) android_library( name = 'app-code', srcs = glob([ 'src/main/java/**/*.java', ]), deps = [ ':all-libs', ':build_config', ':res', ], ) android_build_config( name = 'build_config', package = 'com.videoplayer', ) android_resource( name = 'res', res = 'src/main/res', package = 'com.videoplayer', ) android_binary( name = 'app', package_type = 'debug', manifest = 'src/main/AndroidManifest.xml', keystore = '//android/keystores:debug', deps = [ ':app-code', ], ) Examples/VideoPlayer/android/app/build.gradle +31 −9 Changes for Examples/VideoPlayer/android/app/build.gradle: 31 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -3,12 +3,13 @@ apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "react.gradle"` line. * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle Loading @@ -23,6 +24,15 @@ import com.android.build.OutputFile * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // the root of your project, i.e. where "package.json" lives * root: "../../", * Loading @@ -45,15 +55,20 @@ import com.android.build.OutputFile * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"] * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"] * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ apply from: "react.gradle" apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create three separate APKs instead of one: * - A universal APK that works on all devices * Set this to true to create two separate APKs instead of one: * - 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. Loading Loading @@ -83,9 +98,9 @@ android { } splits { abi { enable enableSeparateBuildPerCPUArchitecture universalApk true reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86" } } Loading Loading @@ -114,5 +129,12 @@ 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.20.+" compile "com.facebook.react:react-native:+" // From node_modules } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } Loading
Examples/VideoPlayer/.buckconfig 0 → 100644 +6 −0 Changes for Examples/VideoPlayer/.buckconfig: 6 added lines, 0 removed lines. Original line number Diff line number Diff line [android] target = Google Inc.:Google APIs:23 [maven_repositories] central = https://repo1.maven.org/maven2
Examples/VideoPlayer/.flowconfig +23 −54 Changes for Examples/VideoPlayer/.flowconfig: 23 added lines, 54 removed lines. Original line number Diff line number Diff line [ignore] # We fork some components by platform. .*/*.web.js .*/*.android.js # Some modules have their own node_modules with overlap .*/node_modules/node-haste/.* # Ignore templates with `@flow` in header .*/local-cli/generator.* # Ugh .*/node_modules/babel.* .*/node_modules/babylon.* .*/node_modules/invariant.* # Ignore react and fbjs where there are overlaps, but don't ignore # anything that react-native relies on .*/node_modules/fbjs/lib/Map.js .*/node_modules/fbjs/lib/fetch.js .*/node_modules/fbjs/lib/ExecutionEnvironment.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 .*/__mocks__/.* .*/__tests__/.* .*/commoner/test/source/widget/share.js # Ignore commoner tests .*/node_modules/commoner/test/.* # Ignore malformed json .*/node_modules/y18n/test/.*\.json # See https://github.com/facebook/flow/issues/442 .*/react-tools/node_modules/commoner/lib/reader.js # Ignore the website subdir <PROJECT_ROOT>/website/.* # Ignore jest .*/node_modules/jest-cli/.* # Ignore BUCK generated dirs <PROJECT_ROOT>/\.buckd/ # Ignore Website .*/website/.* # Ignore unexpected extra @providesModule .*/node_modules/commoner/test/source/widget/share.js .*/node_modules/is-my-json-valid/test/.*\.json .*/node_modules/iconv-lite/encodings/tables/.*\.json .*/node_modules/y18n/test/.*\.json .*/node_modules/spdx-license-ids/spdx-license-ids.json .*/node_modules/spdx-exceptions/index.json .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json .*/node_modules/resolve/lib/core.json .*/node_modules/jsonparse/samplejson/.*\.json .*/node_modules/json5/test/.*\.json .*/node_modules/ua-parser-js/test/.*\.json .*/node_modules/builtin-modules/builtin-modules.json .*/node_modules/binary-extensions/binary-extensions.json .*/node_modules/url-regex/tlds.json .*/node_modules/joi/.*\.json .*/node_modules/isemail/.*\.json .*/node_modules/tr46/.*\.json # Ignore duplicate module providers # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root .*/Libraries/react-native/React.js .*/Libraries/react-native/ReactNative.js .*/node_modules/jest-runtime/build/__tests__/.* [include] Loading @@ -72,18 +37,22 @@ module.system=haste esproposal.class_static_fields=enable esproposal.class_instance_fields=enable experimental.strict_type_args=true munge_underscores=true module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 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\)$' -> 'RelativeImageStub' 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' suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FixMe suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-2]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-2]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy unsafe.enable_getters_and_setters=true [version] 0.22.0 ^0.30.0
Examples/VideoPlayer/.gitignore +7 −3 Changes for Examples/VideoPlayer/.gitignore: 7 added lines, 3 removed lines. Original line number Diff line number Diff line VideoPlayer.xcodeproj/project.xcworkspace/**/* VideoPlayer.xcodeproj/xcuserdata/**/* # OSX # .DS_Store Loading @@ -27,6 +24,7 @@ project.xcworkspace # Android/IJ # *.iml .idea .gradle local.properties Loading @@ -35,3 +33,9 @@ local.properties # node_modules/ npm-debug.log # BUCK buck-out/ \.buckd/ android/app/libs android/keystores/debug.keystore
Examples/VideoPlayer/android/app/BUCK 0 → 100644 +66 −0 Changes for Examples/VideoPlayer/android/app/BUCK: 66 added lines, 0 removed lines. Original line number Diff line number Diff line import re # To learn about Buck see [Docs](https://buckbuild.com/). # To run your application with Buck: # - install Buck # - `npm start` - to start the packager # - `cd android` # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck # - `buck install -r android/app` - compile, install and run application # lib_deps = [] for jarfile in glob(['libs/*.jar']): name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) lib_deps.append(':' + name) prebuilt_jar( name = name, binary_jar = jarfile, ) for aarfile in glob(['libs/*.aar']): name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) lib_deps.append(':' + name) android_prebuilt_aar( name = name, aar = aarfile, ) android_library( name = 'all-libs', exported_deps = lib_deps ) android_library( name = 'app-code', srcs = glob([ 'src/main/java/**/*.java', ]), deps = [ ':all-libs', ':build_config', ':res', ], ) android_build_config( name = 'build_config', package = 'com.videoplayer', ) android_resource( name = 'res', res = 'src/main/res', package = 'com.videoplayer', ) android_binary( name = 'app', package_type = 'debug', manifest = 'src/main/AndroidManifest.xml', keystore = '//android/keystores:debug', deps = [ ':app-code', ], )
Examples/VideoPlayer/android/app/build.gradle +31 −9 Changes for Examples/VideoPlayer/android/app/build.gradle: 31 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -3,12 +3,13 @@ apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "react.gradle"` line. * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle Loading @@ -23,6 +24,15 @@ import com.android.build.OutputFile * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // the root of your project, i.e. where "package.json" lives * root: "../../", * Loading @@ -45,15 +55,20 @@ import com.android.build.OutputFile * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"] * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"] * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ apply from: "react.gradle" apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create three separate APKs instead of one: * - A universal APK that works on all devices * Set this to true to create two separate APKs instead of one: * - 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. Loading Loading @@ -83,9 +98,9 @@ android { } splits { abi { enable enableSeparateBuildPerCPUArchitecture universalApk true reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86" } } Loading Loading @@ -114,5 +129,12 @@ 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.20.+" compile "com.facebook.react:react-native:+" // From node_modules } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' }