Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
7e621e9
Release 1.9.0
jgonet 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…
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
Aug 11, 2022
1eebd5b
Add React Native Reanimated 0.69 hermes binary
Aug 11, 2022
c9175c8
Generate tarball
Aug 11, 2022
8e4b343
Update tarball
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
Oct 10, 2022
edab86e
Merge pull request #18 from wordpress-mobile/wp-fork-2.9.1
Oct 11, 2022
c1e7a1b
Merge pull request #17 from wordpress-mobile/upstream-2.9.1
Oct 11, 2022
353392d
Merge branch 'trunk' into wp-fork
fluiddot Oct 11, 2022
8f6aa5a
Update tarball
Oct 11, 2022
7cc8603
Merge pull request #20 from wordpress-mobile/wp-fork-2.9.1-update-tar…
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…
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
Jan 25, 2023
d1e7674
Merge pull request #23 from wordpress-mobile/wp-fork-add-jest-28-support
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 19 additions & 114 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,61 +1,32 @@
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
plugins {
id "com.android.library"
id "maven-publish"
}

buildscript {
// The Android Gradle plugin is only required when opening the android folder stand-alone.
// This avoids unnecessary downloads and potential conflicts when the library is included as a
// module dependency in an application project.
repositories {
google()
jcenter()
}
dependencies {
//noinspection GradleDependency
classpath rootProject.ext.has('gradleBuildTools') ? rootProject.ext.get('gradleBuildTools') : 'com.android.tools.build:gradle:3.3.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'com.github.dcendents.android-maven'

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

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 28)
versionCode 1
versionName "1.0"
minSdkVersion 21
targetSdkVersion 30
}
lintOptions {
abortOnError false
}
}

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

dependencies {
Expand All @@ -69,80 +40,14 @@ dependencies {
implementation "androidx.transition:transition:1.1.0"
}

def configureReactNativePom(def pom) {
def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)

pom.project {
name packageJson.title
artifactId packageJson.name
version = packageJson.version
group = "com.swmansion.reanimated"
description packageJson.description
url packageJson.repository.baseUrl

licenses {
license {
name packageJson.license
url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename
distribution 'repo'
}
}

developers {
developer {
id packageJson.author.username
name packageJson.author.name
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.wordpress-mobile'
artifactId = 'react-native-reanimated'
}
}
}
}

afterEvaluate { project ->

task androidJavadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += files(android.bootClasspath)
classpath += files(project.getConfigurations().getByName('compile').asList())
include '**/*.java'
}

task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
classifier = 'javadoc'
from androidJavadoc.destinationDir
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
include '**/*.java'
}

android.libraryVariants.all { variant ->
def compileTask
if (variant.hasProperty('javaCompileProvider')){
compileTask = variant.javaCompileProvider.get()
}else{
compileTask = variant.javaCompile
}

def name = variant.name.capitalize()
task "jar${name}"(type: Jar, dependsOn: compileTask) {
from compileTask.destinationDir
}
}

artifacts {
archives androidSourcesJar
archives androidJavadocJar
}

task installArchives(type: Upload) {
configuration = configurations.archives
repositories.mavenDeployer {
// Deploy to react-native-event-bridge/maven, ready to publish to npm
repository url: "file://${projectDir}/../android/maven"

configureReactNativePom pom
}
}
}
24 changes: 5 additions & 19 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,21 +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-8

# 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
android.enableJetifier=true
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Thu Jul 16 13:24:34 CEST 2020
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
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
18 changes: 17 additions & 1 deletion android/gradlew
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion android/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion android/settings.gradle

This file was deleted.

9 changes: 9 additions & 0 deletions android/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()
}
}
8 changes: 0 additions & 8 deletions jitpack.yml

This file was deleted.