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 #3

Draft
wants to merge 105 commits into
base: trunk-2.9.1
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
7e621e9
Release 1.9.0
jakub-gonet May 22, 2020
0d88e03
add jitpack setup
dratwas Jul 16, 2020
ed48f51
fix repositories for local build
dratwas Jul 17, 2020
fff585a
Bintray is no more, use our S3 mirror
hypest Jun 9, 2021
047ae60
Bump RN binary to 0.64.0
hypest Jun 9, 2021
2811e99
Merge pull request #2 from wordpress-mobile/feat/upgrade-rn-binary-to…
ceyhun Jun 22, 2021
54ec21e
Point podspec source to fork repo
ceyhun Jun 22, 2021
1e482d8
Add -wp to version number
ceyhun Jun 22, 2021
e1072f2
Upgrade Gradle to 7.1.1
oguzkocer Aug 11, 2021
743da1b
Use plugin DSL
oguzkocer Aug 11, 2021
2af50a6
Simplify android extension
oguzkocer Aug 11, 2021
5a827f5
Update repositories & dependencies
oguzkocer Aug 11, 2021
2b720c4
Update gradle.properties
oguzkocer Aug 11, 2021
4006af9
Adds maven-publish plugin
oguzkocer Aug 11, 2021
5cfc32c
Remove jitpack.yml
oguzkocer Aug 11, 2021
4f4aa06
Merge pull request #4 from wordpress-mobile/upgrade-to-gradle-7.1.1
oguzkocer Aug 16, 2021
43df945
Added support for hermes on rn65
piaskowyk Sep 3, 2021
1334c80
Gradle update
piaskowyk Sep 3, 2021
c3bf525
Update iOS init
piaskowyk Sep 3, 2021
206c77c
Update cmake
piaskowyk Sep 3, 2021
4f4e01e
Add maven repo
piaskowyk Sep 3, 2021
023b341
Add maven repo v2
piaskowyk Sep 3, 2021
a34868d
Add gradle from master
piaskowyk Sep 3, 2021
866b76f
Update package.json
piaskowyk Sep 3, 2021
1848b3b
Changes for new Hermes
piaskowyk Sep 8, 2021
520f624
Remove jni refference for iOS
piaskowyk Sep 9, 2021
ccb8ab6
change to unque ptr
piaskowyk Sep 9, 2021
ed2c575
Fix problem with user store
piaskowyk Sep 9, 2021
560064d
Removed pickFirst
piaskowyk Sep 14, 2021
c8d0a99
Update packae.json
piaskowyk Sep 14, 2021
363d56e
Update package.json
piaskowyk Sep 14, 2021
aa6f837
Remove unused .so from package
piaskowyk Sep 14, 2021
12101be
Use correct version number in package.json
ceyhun Sep 16, 2021
9707403
Add tarball file
ceyhun Sep 16, 2021
1e8662d
Merge pull request #5 from wordpress-mobile/try/tarball
fluiddot Sep 24, 2021
8a947ce
Support for RN66
piaskowyk Oct 13, 2021
d4026e9
Release 2.2.4
piaskowyk Oct 29, 2021
902aba8
Update ersion in package.json
piaskowyk Oct 29, 2021
d9db520
Update to RN 0.66.2
dcalhoun Nov 22, 2021
90fe108
Bump version
dcalhoun Nov 23, 2021
22b84a2
Generate new tarball
dcalhoun Nov 23, 2021
e8ac7f2
Merge pull request #6 from wordpress-mobile/chore/upgrade-to-react-na…
dcalhoun Nov 30, 2021
c6458c7
Update CI branch from master to trunk
oguzkocer Dec 3, 2021
c3fee6b
Merge pull request #7 from wordpress-mobile/update/ci-branch
AliSoftware Dec 3, 2021
64bb89f
Merge branch 'upstream-2.2.4' into wp-fork-2.2.4
fluiddot Feb 25, 2022
11233e4
Add wp-1 suffix to package version
fluiddot Feb 25, 2022
bd880dd
Generate tarball
fluiddot Feb 25, 2022
2a8fca6
Update react-native version in package.json
fluiddot Feb 14, 2022
2c998a4
Add Android project for publishing binary
fluiddot Feb 24, 2022
b675a7e
Generate tarball
fluiddot Feb 25, 2022
a72b2d6
Update yarn.lock
fluiddot Feb 25, 2022
984cc98
create npm package only for a specific RN version
fluiddot Feb 25, 2022
49114ff
Simplify android-npm build configuration
fluiddot Feb 25, 2022
039e3c8
Generate AAR for RN version 0.66.2
fluiddot Feb 25, 2022
5326984
Generate tarball
fluiddot Feb 25, 2022
0e90c7a
Remove maven-publish project
fluiddot Feb 25, 2022
6f4e0a4
Specify react native version in podspec
fluiddot Feb 28, 2022
06051c0
Merge pull request #10 from wordpress-mobile/upstream-2.2.4
fluiddot Feb 28, 2022
2c4242f
Merge pull request #11 from wordpress-mobile/wp-fork-2.2.4
fluiddot Feb 28, 2022
f1cd9fd
Merge branch 'trunk' into wp-fork
fluiddot Feb 28, 2022
d8af169
Merge branch 'upstream-2.4.1' into update-version-2.4.1
fluiddot Mar 10, 2022
e3cffea
Fix merge conflicts
fluiddot Mar 10, 2022
c9eaeb6
Add reactInstanceManager getter (#2863)
wfolini Feb 11, 2022
3038a45
Update yarn.lock
fluiddot Mar 10, 2022
5d6e245
Generate AAR file
fluiddot Mar 10, 2022
d12d210
Generate tarball
fluiddot Mar 10, 2022
bc9354d
Merge pull request #13 from wordpress-mobile/update-version-2.4.1
fluiddot Mar 15, 2022
2f34f2b
Merge branch 'trunk' into upstream-2.4.1
fluiddot Mar 15, 2022
56b511a
Merge pull request #12 from wordpress-mobile/upstream-2.4.1
fluiddot Mar 15, 2022
f575b73
Merge branch 'trunk' into wp-fork
fluiddot Mar 15, 2022
6f900e0
fix: android layout reanimation null pointer exception (2959) (#3162)
jacobarvidsson Apr 11, 2022
22ef6a0
Update aar
fluiddot May 3, 2022
998fbb6
Bump version to wp-2
fluiddot May 4, 2022
9e63336
Update tarball
fluiddot May 4, 2022
e83e1f2
Merge pull request #15 from wordpress-mobile/fix-android-layout-reani…
fluiddot May 4, 2022
ba1cf8e
Invalidate display link instead of pausing it when invalidating the n…
geriux Jun 1, 2022
4f771ab
Bump package version
fluiddot Jun 1, 2022
f3a68eb
Generate tarball
fluiddot Jun 1, 2022
0f902a0
Merge pull request #16 from wordpress-mobile/fix/invalidation-display…
fluiddot Jun 1, 2022
f192704
Merge branch 'upstream-2.9.1' into wp-fork-2.9.1
geriux Aug 11, 2022
1eebd5b
Add React Native Reanimated 0.69 hermes binary
geriux Aug 11, 2022
c9175c8
Generate tarball
geriux Aug 11, 2022
8e4b343
Update tarball
geriux Aug 24, 2022
97a359d
Upgrade compile and target sdk version to API 31
fluiddot Oct 4, 2022
7b1512b
Bump version to wp-4
fluiddot Oct 4, 2022
2193fe1
Remove previous version tarball
geriux Oct 10, 2022
edab86e
Merge pull request #18 from wordpress-mobile/wp-fork-2.9.1
geriux Oct 11, 2022
c1e7a1b
Merge pull request #17 from wordpress-mobile/upstream-2.9.1
geriux Oct 11, 2022
353392d
Merge branch 'trunk' into wp-fork
fluiddot Oct 11, 2022
8f6aa5a
Update tarball
geriux Oct 11, 2022
7cc8603
Merge pull request #20 from wordpress-mobile/wp-fork-2.9.1-update-tar…
geriux Oct 11, 2022
4810d26
Merge pull request #19 from wordpress-mobile/update/android-12
fluiddot Oct 13, 2022
3c1f3fc
Merge branch 'wp-fork' into update-android-12-wp-fork
fluiddot Oct 17, 2022
ca442f7
Updates createNPMPackage.sh to fix an issue after merge, it removes u…
geriux Oct 18, 2022
98d9719
Merge pull request #22 from wordpress-mobile/fix/create-npm-package
fluiddot Oct 18, 2022
13348e1
Merge branch 'wp-fork' into update-android-12-wp-fork
fluiddot Oct 18, 2022
dfc2668
Bump version to wp-2
fluiddot Oct 18, 2022
2a8952c
Merge pull request #21 from wordpress-mobile/update-android-12-wp-fork
fluiddot Oct 18, 2022
d0009ba
Fix Jest 28+ `expect.extend is not a function` error (#3559)
yusufyildirim Nov 3, 2022
455061b
Bump version to 2.9.1-wp-3
geriux Jan 25, 2023
d1e7674
Merge pull request #23 from wordpress-mobile/wp-fork-add-jest-28-support
geriux Jan 30, 2023
f72ca56
Upgrade compile and target sdk version to API 33
fluiddot May 18, 2023
6984fe2
Upgrade minimum sdk version to API 24
fluiddot May 18, 2023
7c6ac39
Bump version to wp-5
fluiddot May 18, 2023
e328656
Merge pull request #24 from wordpress-mobile/update/android-13
fluiddot May 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to GitHub Pages
on:
push:
branches:
- main
- trunk

jobs:
publish:
Expand Down
36 changes: 2 additions & 34 deletions RNReanimated.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,9 @@ require "json"

package = JSON.parse(File.read(File.join(__dir__, "package.json")))

reactVersion = '0.0.0'
reactVersion = '0.69.4'
reactTargetTvOS = false

begin
# standard app
# /appName/node_modules/react-native-reanimated/RNReanimated.podspec
# /appName/node_modules/react-native/package.json
reactJson = JSON.parse(File.read(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json")))
reactVersion = reactJson["version"]
reactTargetTvOS = reactJson["name"] == "react-native-tvos"
rescue
begin
# monorepo
# /monorepo/packages/appName/node_modules/react-native-reanimated/RNReanimated.podspec
# /monorepo/node_modules/react-native/package.json
reactJson = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "node_modules", "react-native", "package.json")))
reactVersion = reactJson["version"]
reactTargetTvOS = reactJson["name"] == "react-native-tvos"
rescue
begin
# Example app in reanimated repo
# /react-native-reanimated/RNReanimated.podspec
# /react-native-reanimated/node_modules/react-native/package.json
reactJson = JSON.parse(File.read(File.join(__dir__, "node_modules", "react-native", "package.json")))
reactVersion = reactJson["version"]
reactTargetTvOS = ENV["ReanimatedTVOSExample"] == "1"
rescue
# should never happen
reactVersion = '0.68.0'
puts "[RNReanimated] Unable to recognized your `react-native` version! Default `react-native` version: " + reactVersion
end
end
end

rnVersion = reactVersion.split('.')[1]

folly_prefix = ""
Expand All @@ -61,7 +30,7 @@ Pod::Spec.new do |s|
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.author = { "author" => "author@domain.cn" }
s.platforms = { :ios => "9.0", :tvos => "9.0" }
s.source = { :git => "https://github.com/software-mansion/react-native-reanimated.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/wordpress-mobile/react-native-reanimated.git", :tag => "#{s.version}" }

s.source_files = [
"ios/**/*.{mm,h,m}",
Expand Down Expand Up @@ -122,4 +91,3 @@ Pod::Spec.new do |s|
s.dependency "#{folly_prefix}Folly"

end

32 changes: 32 additions & 0 deletions android-npm/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import groovy.json.JsonSlurper
import java.util.regex.Matcher
import java.util.regex.Pattern
configurations.maybeCreate("default")

apply plugin: 'maven-publish'

def reactNativeVersion = "0.69.4"
def engine = "hermes"

def (major, minor, patch) = reactNativeVersion.tokenize('.')
def minorCopy = Integer.parseInt(minor)
def aar = file("react-native-reanimated-${minorCopy}-${engine}.aar")

if (!aar.exists()) {
throw new GradleException('No aar for react-native-reanimated found.')
}

artifacts.add("default", aar)

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = 'com.github.wordpress-mobile'
artifactId = 'react-native-reanimated'
artifact(aar)

}
}
}
}
Binary file added android-npm/react-native-reanimated-66-hermes.aar
Binary file not shown.
Binary file added android-npm/react-native-reanimated-69-hermes.aar
Binary file not shown.
44 changes: 27 additions & 17 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ buildscript {
}
}
dependencies {
classpath "com.android.tools.build:gradle:7.1.1"
classpath "com.android.tools.build:gradle:7.2.1"
classpath "de.undercouch:gradle-download-task:5.0.1"
classpath "com.diffplug.spotless:spotless-plugin-gradle:5.15.0"
}
Expand All @@ -361,15 +361,15 @@ if (project == rootProject) {
apply from: "spotless.gradle"
}

apply plugin: "com.android.library"
apply plugin: "maven-publish"
apply plugin: "de.undercouch.download"
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'de.undercouch.download'

android {
compileSdkVersion safeExtGet("compileSdkVersion", 30)
compileSdkVersion 33
defaultConfig {
minSdkVersion safeExtGet("minSdkVersion", 16)
targetSdkVersion safeExtGet("targetSdkVersion", 30)
minSdkVersion 24
targetSdkVersion 33
versionCode 1
versionName "1.0"
externalNativeBuild {
Expand Down Expand Up @@ -650,20 +650,31 @@ task packageNdkLibs(type: Copy) {
}

repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$reactNative/android"
}
maven {
// Android JSC is installed from npm
url "$reactNative/../jsc-android/dist"
if (project == rootProject) {
maven { url "https://a8c-libs.s3.amazonaws.com/android/react-native-mirror" }
} else {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$reactNative/android"
}
maven {
// Android JSC is installed from npm
url "$reactNative/../jsc-android/dist"
}
}
mavenCentral()
google()
}

dependencies {
//noinspection GradleDynamicVersion
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:+"
}
// noinspection GradleDynamicVersion
implementation "com.facebook.yoga:proguard-annotations:1.19.0"
if (isDeveloperMode()) {
Expand All @@ -672,7 +683,6 @@ dependencies {
else {
implementation "com.facebook.fbjni:fbjni-java-only:" + FBJNI_VERSION
}
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "androidx.transition:transition:1.1.0"
extractHeaders("com.facebook.fbjni:fbjni:" + FBJNI_VERSION + ":headers")
extractSO("com.facebook.fbjni:fbjni:" + FBJNI_VERSION)
Expand Down
26 changes: 4 additions & 22 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8A --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
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 modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists