Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff between wp-fork branch and main repo's default branch #11

Draft
wants to merge 87 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
7ab293b
Make build.gradle to be standalone
marecar3 Apr 18, 2019
4dc15d1
replace compileOnly with implementation
marecar3 Apr 18, 2019
7d5905c
android x migration
marecar3 Jun 10, 2019
5b131a7
Add gradle files for android-exoplayer
marecar3 Jun 10, 2019
3b7db2c
Removed supportLibVersion dependency
marecar3 Jun 10, 2019
a591a71
Fixed react-native dependency when there isn't a root project
marecar3 Jun 10, 2019
57ad4e8
Fixed build gradle files
marecar3 Jun 10, 2019
5a68a00
Add maven gradle plugin
hypest Jun 11, 2019
f7383da
Upgrade to exoplayer v2.10.1 with AndroidX support
hypest Jun 12, 2019
3a0e2fa
Revert "Upgrade to exoplayer v2.10.1 with AndroidX support"
hypest Jun 12, 2019
32317be
Fix compatibility with RN 0.60.0
jtreanor Jul 3, 2019
6223b62
Merge pull request #1 from wordpress-mobile/fix/0.60.0-patch
jtreanor Jul 4, 2019
99b012b
Revert "Merge pull request #1 from wordpress-mobile/fix/0.60.0-patch"
jtreanor Jul 5, 2019
367031b
5.0.2
Sep 8, 2019
c85e060
Merge tag '5.0.1' into experiment/android_x_migration-upstream5.0.2
hypest Dec 20, 2019
a0bb36a
Maven repo is in node_modules when building as an npm dep
hypest Dec 20, 2019
6c75579
Merge pull request #2 from wordpress-mobile/fix/local-maven-repo-when…
hypest Dec 20, 2019
a243cfd
Merge branch 'experiment/android_x_migration' into experiment/android…
hypest Dec 20, 2019
93abb39
Same RN version as gb-mobile
hypest Jan 10, 2020
ad64098
Specific RN version regardless of standalone build or not
hypest Jan 10, 2020
acd40d6
Merge branch 'fork-for-gutenberg-mobile' into try/changes-for-gb-mobi…
hypest Jan 22, 2020
c43bdf6
Merge pull request #4 from wordpress-mobile/try/changes-for-gb-mobile…
SergioEstevao Jan 24, 2020
da7b380
Update react native version in build gradle
marecar3 Jan 29, 2020
5a7b297
Update exoplayer RN version
marecar3 Jan 29, 2020
388999b
Update rn to rc.5
marecar3 Mar 25, 2020
2dd7320
Bump rn version to 0.62.0
marecar3 Mar 26, 2020
46f4150
Bump rn to 0.62.1
marecar3 Apr 4, 2020
148b617
Remove keymirror dependency
maxme Feb 6, 2020
5c6697a
Remove shaka-player dependency
maxme Feb 6, 2020
3d12179
Bump to rn 0.62.2
marecar3 Apr 9, 2020
6cdaddd
Merge pull request #6 from wordpress-mobile/issue/remove-apache2-depe…
ceyhun Apr 22, 2020
6aa11f4
Merge branch 'fork-for-gutenberg-mobile' into upgrade-to-rn-0.62
marecar3 Apr 22, 2020
5f9ecd2
Merge branch 'release_5.0.2' into update_fork_to_5.0.2_take2
SergioEstevao Apr 30, 2020
1b964b1
Merge pull request #8 from wordpress-mobile/update_fork_to_5.0.2_take2
SergioEstevao May 6, 2020
8134ebe
Merge branch 'fork-for-gutenberg-mobile' into upgrade-to-rn-0.62
marecar3 May 13, 2020
9bcb723
Bump to rn 0.63.2
ceyhun Aug 24, 2020
e5d5275
update to 0.64.0-rc.3
dratwas Feb 19, 2021
97792c7
update to 0.64.0 stable
cameronvoell Apr 12, 2021
e74bb90
Update react-native mirror location from bintray to S3
cameronvoell May 21, 2021
1d95bb8
Merge pull request #10 from wordpress-mobile/upgrade-to-rn-0.64
ceyhun Jun 21, 2021
2434a2e
Point podspec source to fork repo
ceyhun Jun 21, 2021
c12d84e
Add -wp to version number
ceyhun Jun 21, 2021
4eecbfe
Upgrade Gradle to 7.1.1
oguzkocer Aug 10, 2021
8278bdd
Use plugin DSL
oguzkocer Aug 10, 2021
4fc9892
Simplify android extension
oguzkocer Aug 10, 2021
1c9c018
Update repositories & dependencies
oguzkocer Aug 10, 2021
f806441
Adds maven-publish plugin
oguzkocer Aug 10, 2021
eddce07
Adds jitpack.yml
oguzkocer Aug 10, 2021
8a286f6
Merge pull request #12 from wordpress-mobile/upgrade-to-gradle-7.1.1
oguzkocer Aug 16, 2021
b43f5bf
Use correct version number in package.json
ceyhun Sep 16, 2021
c7c2981
Add tarball file
ceyhun Sep 16, 2021
67b5961
Merge pull request #13 from wordpress-mobile/try/tarball
fluiddot Sep 24, 2021
1486d49
Update to RN 0.66.2
dcalhoun Nov 22, 2021
084e229
Bump version
dcalhoun Nov 23, 2021
873d7c6
Generate new tarball
dcalhoun Nov 23, 2021
63a02f4
Merge pull request #14 from wordpress-mobile/chore/upgrade-to-react-n…
dcalhoun Nov 30, 2021
8643938
Merge branch 'trunk' into wp-fork-upstream-5.2.0-rn-0.64
hypest Dec 9, 2021
2e22a9c
Add the npm pack generated tarball
hypest Dec 9, 2021
cd20a85
Merge remote-tracking branch 'origin/wp-fork' into wp-fork-upstream-5…
mchowning Jan 20, 2022
31ebacf
Bump exoplayer to 2.13.3
mchowning Feb 1, 2022
424c45d
Merge pull request #16 from wordpress-mobile/wp-fork-upstream-5.2.0+e…
mchowning Feb 2, 2022
faecf40
Fix merge-conflict mistake
mchowning Feb 3, 2022
3d80825
Update version and pack tarball
mchowning Feb 4, 2022
ca1052c
Merge pull request #15 from wordpress-mobile/wp-fork-upstream-5.2.0
mchowning Feb 9, 2022
f6665f0
Bump package.json version
mchowning Feb 9, 2022
d742dc8
Update tarball
mchowning Feb 9, 2022
c2e2e38
Remove previous tarball
mchowning Feb 9, 2022
9a98442
Merge pull request #17 from wordpress-mobile/update-to_5.2.0-wp-2
mchowning Feb 10, 2022
767305f
Use prop types from deprecated-react-native-prop-types
renchap Mar 30, 2022
b583e1c
Update Video.js
Aug 1, 2022
42bcbe4
Replace Image.propTypes with ImagePropTypes.
Aug 1, 2022
e0dacdb
Upgrade to React Native 0.69.4 and update tarball
Aug 1, 2022
c2a3687
Upgrade compile and target sdk version to API 31
fluiddot Oct 4, 2022
b3cdbc1
Bump version to wp-3
fluiddot Oct 4, 2022
a8cdd48
Remove previous version tarball
Oct 10, 2022
55cc934
Merge pull request #19 from wordpress-mobile/update-for-0.69
Oct 11, 2022
26ff651
Bump version to wp-4
fluiddot Oct 13, 2022
797e50f
Merge branch 'wp-fork' into update/android-12
fluiddot Oct 13, 2022
167f4b6
Bump version to wp-5
fluiddot Oct 13, 2022
1c90dff
Merge pull request #20 from wordpress-mobile/update/android-12
fluiddot Oct 13, 2022
a3695a6
Upgrade compile and target sdk version to API 33
fluiddot May 18, 2023
ab17412
Upgrade minimum sdk version to API 24
fluiddot May 18, 2023
324b5fc
Bump version to wp-6
fluiddot May 18, 2023
197c644
Merge pull request #22 from wordpress-mobile/update/android-13
fluiddot May 22, 2023
ce397fd
Upgrade compile and target sdk version to API 34
fluiddot Jan 17, 2024
a88afc4
Bump version to wp-7
fluiddot Jan 17, 2024
02c9f27
Merge pull request #23 from wordpress-mobile/update/android-14
May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Video.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, requireNativeComponent, NativeModules, View, ViewPropTypes, Image, Platform, findNodeHandle } from 'react-native';
import { StyleSheet, requireNativeComponent, NativeModules, View, Image, Platform, findNodeHandle } from 'react-native';
import { ViewPropTypes, ImagePropTypes } from 'deprecated-react-native-prop-types';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
import TextTrackType from './TextTrackType';
import FilterType from './FilterType';
Expand Down Expand Up @@ -415,7 +416,7 @@ Video.propTypes = {
maxBitRate: PropTypes.number,
resizeMode: PropTypes.string,
poster: PropTypes.string,
posterResizeMode: Image.propTypes.resizeMode,
posterResizeMode: ImagePropTypes.resizeMode,
repeat: PropTypes.bool,
automaticallyWaitsToMinimizeStalling: PropTypes.bool,
allowsExternalPlayback: PropTypes.bool,
Expand Down
12 changes: 5 additions & 7 deletions VideoResizeMode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import keyMirror from 'keymirror';

export default keyMirror({
contain: null,
cover: null,
stretch: null,
});
export default {
contain: "contain",
cover: "cover",
stretch: "stretch",
};
58 changes: 42 additions & 16 deletions android-exoplayer/build.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
apply plugin: 'com.android.library'

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
plugins {
id "com.android.library"
id "maven-publish"
}

android {
compileSdkVersion safeExtGet('compileSdkVersion', 28)
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
compileSdkVersion 34

compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 28)
versionCode 1
versionName "1.0"
minSdkVersion 24
targetSdkVersion 34
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
repositories {
if (project == rootProject) {
maven { url "https://a8c-libs.s3.amazonaws.com/android/react-native-mirror" }
} else {
// When building as a dep, the RN's maven repo is locally in the node_modules folder
def nodeModulesPath = "${project.buildDir}/../../node_modules/"
maven { url "${nodeModulesPath}/react-native/android" }
}

google()
mavenCentral()
jcenter()
}

dependencies {
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
implementation('com.google.android.exoplayer:exoplayer:2.13.2') {
if (project == rootProject) {
// If this is the root project (e.g. Jitpack), specify a version
implementation 'com.facebook.react:react-native:0.69.4'
} else {
//noinspection GradleDynamicVersion
api "com.facebook.react:react-native:+"
}

implementation('com.google.android.exoplayer:exoplayer:2.13.3') {
exclude group: 'com.android.support'
}

Expand All @@ -37,9 +52,20 @@ dependencies {
implementation "androidx.core:core:1.1.0"
implementation "androidx.media:media:1.1.0"

implementation('com.google.android.exoplayer:extension-okhttp:2.13.2') {
implementation('com.google.android.exoplayer:extension-okhttp:2.13.3') {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
implementation 'com.squareup.okhttp3:okhttp:${OKHTTP_VERSION}'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.wordpress-mobile'
artifactId = 'react-native-video'
}
}
}
}
7 changes: 7 additions & 0 deletions android-exoplayer/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
org.gradle.jvmargs=-Xmx1536m -XX:+HeapDumpOnOutOfMemoryError
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true

android.useAndroidX=true
android.enableJetifier=true
Binary file not shown.
5 changes: 5 additions & 0 deletions android-exoplayer/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
172 changes: 172 additions & 0 deletions android-exoplayer/gradlew
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
#!/usr/bin/env sh

##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn () {
echo "$*"
}

die () {
echo
echo "$*"
echo
exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option

if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
84 changes: 84 additions & 0 deletions android-exoplayer/gradlew.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
9 changes: 9 additions & 0 deletions android-exoplayer/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pluginManagement {
plugins {
id("com.android.library") version "4.2.2"
}
repositories {
gradlePluginPortal()
google()
}
}
Loading