Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions bin/generate-podspecs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ EXTERNAL_PODSPECS=$(find "node_modules/react-native/third-party-podspecs" \
"node_modules/react-native-svg" \
"node_modules/react-native-keyboard-aware-scroll-view" \
"node_modules/react-native-safe-area" \
"node_modules/react-native-video" \
"node_modules/react-native-dark-mode" -type f -name "*.podspec" -print)

for podspec in $EXTERNAL_PODSPECS
Expand Down
2,555 changes: 1,292 additions & 1,263 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_bg.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_bo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ca.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_cs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_cy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_da.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_el.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_enau.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_enca.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_engb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ennz.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_enza.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_esar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_escl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_escr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_fa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_fr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_gl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_he.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_hr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_hu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_id.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_is.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_it.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ja.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ka.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ko.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_nb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_nl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_nlbe.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_pl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_pt.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ptbr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ro.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ru.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_sk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_sq.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_sr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_sv.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_th.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_tr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_uk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_ur.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_vi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_zhcn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_zhtw.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bundle/android/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_j_k_rowling" tools:ignore="UnusedResources">J.K. Rowling</string>
<!-- translators: sample content for "Team" page template -->
<string name="gutenberg_native_juan_p_rez" tools:ignore="UnusedResources">Juan Pérez</string>
<!-- translators: sample content for "Blog" page template -->
<string name="gutenberg_native_latest_blog_posts" tools:ignore="UnusedResources">Latest Blog Posts</string>
<!-- translators: sample content for "About" page template -->
<string name="gutenberg_native_let_s_build_something_together" tools:ignore="UnusedResources">Let’s build something together</string>
<!-- translators: sample content for "Services" page template -->
Expand Down Expand Up @@ -207,6 +205,8 @@ translators: sample content for "Services" page template -->
<string name="gutenberg_native_we_are_working_hard_to_add_more_blocks_with_each_release_in_the_m" tools:ignore="UnusedResources">We are working hard to add more blocks with each release. In the meantime, you can also edit this post on the web.</string>
<!-- translators: sample content for "Services" page template -->
<string name="gutenberg_native_we_offer_a_range_of_services_to_help_you_achieve_the_results_you" tools:ignore="UnusedResources">We offer a range of services to help you achieve the results you\'re after. Not sure what you need, or what it costs? We can explain what services are right for you and tell you more about our fees. Get in touch below.</string>
<!-- translators: sample content for "Blog" page template -->
<string name="gutenberg_native_welcome_to_our_new_blog" tools:ignore="UnusedResources">Welcome to our new blog</string>
<!-- translators: sample content for "About" page template -->
<string name="gutenberg_native_what_people_say" tools:ignore="UnusedResources">What People Say</string>
<string name="gutenberg_native_wordpress_media_library" tools:ignore="UnusedResources">WordPress Media Library</string>
Expand Down
2,595 changes: 1,312 additions & 1,283 deletions bundle/ios/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/GutenbergNativeTranslations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ private func dummy() {
_ = NSLocalizedString("It is our choices, Harry, that show what we truly are, far more than our abilities.", comment: "translators: sample content for \"About\" page template")
_ = NSLocalizedString("J.K. Rowling", comment: "translators: sample content for \"About\" page template")
_ = NSLocalizedString("Juan Pérez", comment: "translators: sample content for \"Team\" page template")
_ = NSLocalizedString("Latest Blog Posts", comment: "translators: sample content for \"Blog\" page template")
_ = NSLocalizedString("Let's build something together.", comment: "translators: sample content for \"Portfolio\" page template")
_ = NSLocalizedString("Let's talk 👋 Don't hesitate to reach out with the contact information below, or send a message using the form.", comment: "translators: sample content for \"Contact\" page template")
_ = NSLocalizedString("Let’s build something together", comment: "translators: sample content for \"About\" page template")
Expand Down Expand Up @@ -145,5 +144,6 @@ private func dummy() {
_ = NSLocalizedString("We are a small team of talented professionals with a wide range of skills and experience. We love what we do, and we do it with passion. We look forward to working with you.", comment: "translators: sample content for \"Team\" page template")
_ = NSLocalizedString("We are working hard to add more blocks with each release. In the meantime, you can also edit this post on the web.", comment: "")
_ = NSLocalizedString("We offer a range of services to help you achieve the results you're after. Not sure what you need, or what it costs? We can explain what services are right for you and tell you more about our fees. Get in touch below.", comment: "translators: sample content for \"Services\" page template")
_ = NSLocalizedString("Welcome to our new blog", comment: "translators: sample content for \"Blog\" page template")
_ = NSLocalizedString("What People Say", comment: "translators: sample content for \"About\" page template")
_ = NSLocalizedString("WordPress Media Library", comment: "")
2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/bg.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/bo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ca.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/cs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/cy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/da.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/el.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/en-au.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/en-ca.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/en-gb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/en-nz.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/en-za.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/es-ar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/es-cl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/es-cr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/fa.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/fr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/gl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/he.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/hr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/hu.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/id.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/is.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/it.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ja.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ka.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ko.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/nb.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/nl-be.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/nl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/pl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/pt-br.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/pt.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ro.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ru.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/sk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/sq.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/sr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/sv.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/th.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/tr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/uk.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/ur.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/vi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/zh-cn.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/zh-tw.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PODS:
- DoubleConversion
- glog
- glog (0.3.5)
- Gutenberg (1.27.1):
- Gutenberg (1.28.0):
- React (= 0.61.5)
- React-CoreModules (= 0.61.5)
- React-RCTImage (= 0.61.5)
Expand Down Expand Up @@ -239,7 +239,7 @@ PODS:
- React
- RNSVG (9.13.6-gb):
- React
- RNTAztecView (1.27.1):
- RNTAztecView (1.28.0):
- React-Core
- WordPress-Aztec-iOS (~> 1.19.0)
- WordPress-Aztec-iOS (1.19.0)
Expand Down Expand Up @@ -367,7 +367,7 @@ SPEC CHECKSUMS:
FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
Gutenberg: 13cbcc0422333b06532bbcbcbea95514fc5a05b5
Gutenberg: 0c90bd47ecf991fbe677172a3a2f8ab1ef715c07
RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1
RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320
React: b6a59ef847b2b40bb6e0180a97d0ca716969ac78
Expand All @@ -393,7 +393,7 @@ SPEC CHECKSUMS:
ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
ReactNativeDarkMode: f61376360c5d983907e5c316e8e1c853a8c2f348
RNSVG: 68a534a5db06dcbdaebfd5079349191598caef7b
RNTAztecView: dc2364760fad53f52defde7c01be765e77b9ba19
RNTAztecView: c8face301ee453aab24e9e10615353134cca505b
WordPress-Aztec-iOS: fb6ea6409a5228292568f665eb22ea0a0aa7ad7e
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenberg-mobile",
"version": "1.27.1",
"version": "1.28.0",
"private": true,
"config": {
"jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js",
Expand Down
125 changes: 103 additions & 22 deletions react-native-gutenberg-bridge/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

if (buildGutenbergMobileJSBundle) {
classpath "com.moowork.gradle:gradle-node-plugin:1.2.0"
classpath "com.moowork.gradle:gradle-node-plugin:1.3.1"
}
}
}
Expand All @@ -40,13 +40,13 @@ if (buildGutenbergMobileJSBundle) {

node {
// Version of node to use.
version = '12.13.1'
version = '12.16.1'

// Version of npm to use.
npmVersion = '6.3.0'
npmVersion = '6.14.2'

// Version of Yarn to use.
yarnVersion = '1.10.1'
yarnVersion = '1.22.4'

// Base URL for fetching node distributions (change if you have a mirror).
distBaseUrl = 'https://nodejs.org/dist'
Expand Down Expand Up @@ -91,6 +91,7 @@ project.ext.buildGutenbergFromSource = false

def hermesOriginalPath = "../../node_modules/hermes-engine/android/";
def hermesPath = hermesOriginalPath;
def buildAssetsFolder = 'build/assets'

android {
compileSdkVersion 28
Expand All @@ -109,6 +110,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

sourceSets {
main {
assets.srcDirs += buildAssetsFolder
}
}
}

repositories {
Expand Down Expand Up @@ -163,21 +170,89 @@ dependencies {
releaseImplementation files(hermesPath + "hermes-release.aar")
}

boolean isBundleUpToDate() {
return project.hasProperty('isBundleUpToDate') && isBundleUpToDate
}

if (buildGutenbergMobileJSBundle) {
def assetsFolder = 'src/main/assets'
def aarFolder = 'src/main/assets'
def bundleName = 'index.android.bundle'
def jsRootDir = '../..'

task bundleUpToDateCheck {
description("Checks if the inputs to the javascript bundle and the bundle itself are unchanged. \
Only if they are is the isBundleUpToDate flag set to true. That flag is used by other tasks.")

def isRelevantFile = { it.name.endsWithAny('.js', '.css') || it.name == 'package.json' }
def inputFiles = {
def jsFiles = []
def dirs = []
file(jsRootDir).eachDir { dir ->
if (dir.name != 'node_modules'
&& dir.name != 'bundle'
&& dir.name != 'gutenberg'
&& !dir.name.startsWith('symlinked')) {
dirs << dir
}
}
file("$jsRootDir/gutenberg").eachDir { dir ->
if (dir.name != 'node_modules') {
dirs << dir
}
}

task buildJSBundle(type: YarnTask) {
args = ['bundle:android']
}
dirs.forEach { dir ->
file(dir).eachFileRecurse {
if (isRelevantFile(it)) {
jsFiles << it
}
}
}

task ensureAssetsDirectory {
def jsRootDirFiles = file(jsRootDir).listFiles().findAll {
isRelevantFile(it)
}
def gutenbergRootDirFiles = file("$jsRootDir/gutenberg").listFiles().findAll {
isRelevantFile(it)
}
return jsFiles + jsRootDirFiles + gutenbergRootDirFiles
}
inputs.files(inputFiles())

outputs.file("$buildAssetsFolder/$bundleName")

// Having this task create this file as an output because changes to
// the actual bundle (or even deleting the bundle file) was not triggering
// this task to rerun (and flip the isBundleUpToDate flag to false). Now that
// this second indicator file is here, which gets deleted if the project is cleaned,
// this task knows that it is out of date. Note that if there are changes to the
// bundle file though, that alone will not trigger this task to run again, so you'll
// need to use --rerun-tasks in that case.
def upToDateIndicatorFile = "$buildAssetsFolder/up-to-date-bundle-indicator"
outputs.file(upToDateIndicatorFile)

// set flag to true before task tries to run
project.ext.isBundleUpToDate = true
doLast {
mkdir assetsFolder
// If this task runs, either the inputs or outputs have changed, so the bundle is out of date.
project.ext.isBundleUpToDate = false
file(upToDateIndicatorFile).createNewFile()
}
}

yarn_install.dependsOn bundleUpToDateCheck
yarn_install.onlyIf { !isBundleUpToDate() }

task buildJSBundle(type: YarnTask) {
dependsOn bundleUpToDateCheck
onlyIf { !isBundleUpToDate() }

args = ['bundle:android']
}

task backupHermesDebugAAR(type: Copy) {
dependsOn bundleUpToDateCheck
onlyIf { !isBundleUpToDate() }

def origFileName = 'hermes-debug.aar'
def origWithPath = hermesOriginalPath + origFileName
from origWithPath
Expand All @@ -188,6 +263,9 @@ if (buildGutenbergMobileJSBundle) {
}

task backupHermesReleaseAAR(type: Copy) {
dependsOn bundleUpToDateCheck
onlyIf { !isBundleUpToDate() }

def origFileName = 'hermes-release.aar'
def origWithPath = hermesOriginalPath + origFileName
from origWithPath
Expand All @@ -198,27 +276,30 @@ if (buildGutenbergMobileJSBundle) {
}

task copyJSBundle(type: Copy) {
dependsOn bundleUpToDateCheck
onlyIf { !isBundleUpToDate() }

def origFileName = 'App.js'
def origWithPath = "../../bundle/android/${origFileName}"
def target = 'index.android.bundle'
from origWithPath
into assetsFolder
rename origFileName, target
into buildAssetsFolder
rename origFileName, bundleName
doLast {
println "Done copying the Android JS bundle to assets folder"
}
}

task cleanupNodeModulesFolder(type: Delete) {
dependsOn bundleUpToDateCheck
onlyIf { !isBundleUpToDate() }

delete '../../node_modules'
}

if (buildGutenbergMobileJSBundle) {
preBuild.dependsOn(cleanupNodeModulesFolder)
cleanupNodeModulesFolder.dependsOn(backupHermesDebugAAR)
backupHermesDebugAAR.dependsOn(backupHermesReleaseAAR)
backupHermesReleaseAAR.dependsOn(copyJSBundle)
copyJSBundle.dependsOn(buildJSBundle)
buildJSBundle.dependsOn(yarn_install, ensureAssetsDirectory)
}
preBuild.dependsOn(cleanupNodeModulesFolder)
cleanupNodeModulesFolder.dependsOn(backupHermesDebugAAR)
backupHermesDebugAAR.dependsOn(backupHermesReleaseAAR)
backupHermesReleaseAAR.dependsOn(copyJSBundle)
copyJSBundle.dependsOn(buildJSBundle)
buildJSBundle.dependsOn(yarn_install)
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-keyboard-aware-scroll-view",
"version": "0.8.7",
"version": "0.8.8",
"homepage": "https://github.com/wordpress-mobile/react-native-keyboard-aware-scroll-view",
"summary": "React Native module to arrange scroll poisition according to keyboard on input fields.",
"license": "MIT",
Expand All @@ -10,7 +10,7 @@
},
"source": {
"git": "https://github.com/wordpress-mobile/react-native-keyboard-aware-scroll-view.git",
"tag": "gb-v0.8.7"
"tag": "gb-v0.8.8"
},
"source_files": "ios/RNTKeyboardAwareScrollView/*.{h,m}",
"preserve_paths": "**/*.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "react-native-video",
"version": "4.4.1",
"version": "5.0.2",
"summary": "A <Video /> element for react-native",
"description": "A <Video /> element for react-native",
"license": "MIT",
"authors": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",
"homepage": "https://github.com/brentvatne/react-native-video",
"source": {
"git": "https://github.com/brentvatne/react-native-video.git",
"tag": "4.4.1"
"tag": "5.0.2"
},
"platforms": {
"ios": "8.0",
"tvos": "9.0"
},
"static_framework": true,
"dependencies": {
"React-Core": [
"React": [

]
},
Expand Down