Skip to content
Merged
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,730 changes: 122 additions & 1,608 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@
"lint:md-js": "wp-scripts lint-md-js",
"lint:md-docs": "wp-scripts lint-md-docs",
"native": "npm run --prefix packages/react-native-editor",
"react-native": "react-native --root packages/react-native-editor",
"bundle:android": "cd packages/react-native-editor && npm run bundle:android",
"android": "npm run react-native run-android",
"ios": "npm run native ios",
"package-plugin": "./bin/build-plugin-zip.sh",
"pot-to-php": "./bin/pot-to-php.js",
"publish:check": "lerna updated",
Expand Down
3 changes: 0 additions & 3 deletions packages/react-native-aztec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"dependencies": {
"prop-types": "15.6.0"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
Expand Down
27 changes: 0 additions & 27 deletions packages/react-native-aztec/src/AztecView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PropTypes from 'prop-types';
import React from 'react';
import ReactNative, { requireNativeComponent, TextViewPropTypes, UIManager, ColorPropType, TouchableWithoutFeedback, Platform } from 'react-native';
import TextInputState from 'react-native/Libraries/Components/TextInput/TextInputState';
Expand Down Expand Up @@ -166,32 +165,6 @@ class AztecView extends React.Component {
}
}

AztecView.propTypes = {
activeFormats: PropTypes.array,
isSelected: PropTypes.bool,
disableGutenbergMode: PropTypes.bool,
deleteEnter: PropTypes.bool,
text: PropTypes.object,
placeholder: PropTypes.string,
placeholderTextColor: ColorPropType,
color: ColorPropType,
linkTextColor: ColorPropType,
maxImagesWidth: PropTypes.number,
minImagesWidth: PropTypes.number,
onChange: PropTypes.func,
onFocus: PropTypes.func,
onBlur: PropTypes.func,
onContentSizeChange: PropTypes.func,
onEnter: PropTypes.func,
onBackspace: PropTypes.func,
onScroll: PropTypes.func,
onSelectionChange: PropTypes.func,
onHTMLContentWithCursor: PropTypes.func,
onCaretVerticalPositionChange: PropTypes.func,
blockType: PropTypes.object,
...TextViewPropTypes, // include the default view properties
};

const RCTAztecView = requireNativeComponent( 'RCTAztecView', AztecView );

export default AztecView;
2 changes: 1 addition & 1 deletion packages/react-native-bridge/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ repositories {
}

dependencies {
implementation project(':react-native-aztec')
implementation project(':@wordpress_react-native-aztec')

implementation "org.wordpress:utils:1.22"

Expand Down
5 changes: 2 additions & 3 deletions packages/react-native-bridge/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
rootProject.name = '@wordpress/react-native-bridge'

include ':react-native-aztec'
project(':react-native-aztec').projectDir = new File(rootProject.projectDir, '../../react-native-aztec/android')

include ':@wordpress_react-native-aztec'
project(':@wordpress_react-native-aztec').projectDir = new File(rootProject.projectDir, '../../react-native-aztec/android')
3 changes: 3 additions & 0 deletions packages/react-native-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
],
"author": "",
"license": "GPL-2.0-or-later",
"dependencies": {
"@wordpress/react-native-aztec": "file:../react-native-aztec"
},
"peerDependencies": {
"react-native": "*"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/react-native-editor/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ yarn-error.log*
# OS X
.DS_Store

# JS Builds
bundle/

# Android builds
*.apk
*.ap_
Expand Down
8 changes: 3 additions & 5 deletions packages/react-native-editor/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ project.ext.react = [
enableHermes: true, // clean and rebuild if changing
]

apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../../../node_modules/react-native/react.gradle"

/**
* Set this to true to create two separate APKs instead of one:
Expand Down Expand Up @@ -155,12 +155,12 @@ repositories {


dependencies {
implementation project(':@wordpress_react-native-aztec')
implementation project(':@wordpress_react-native-bridge')
implementation project(':react-native-linear-gradient')
implementation project(':@react-native-community_slider')
implementation project(':react-native-video')
implementation project(':react-native-svg')
implementation project(':react-native-aztec')
implementation project(':react-native-gutenberg-bridge')
implementation "org.wordpress:utils:$wordpressUtilsVersion"
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation "com.facebook.react:react-native:+" // From node_modules
Expand All @@ -172,5 +172,3 @@ task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}

apply from: file("../../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
2 changes: 1 addition & 1 deletion packages/react-native-editor/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ allprojects {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
url("$rootDir/../../../node_modules/react-native/android")
}

google()
Expand Down
10 changes: 4 additions & 6 deletions packages/react-native-editor/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
rootProject.name = 'gutenberg'

apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)

include ':@wordpress_react-native-bridge'
project(':@wordpress_react-native-bridge').projectDir = new File(rootProject.projectDir, '../../react-native-bridge/android')
include ':@wordpress_react-native-aztec'
project(':@wordpress_react-native-aztec').projectDir = new File(rootProject.projectDir, '../../react-native-aztec/android')
include ':@react-native-community_slider'
project(':@react-native-community_slider').projectDir = new File(rootProject.projectDir, '../../../node_modules/@react-native-community/slider/src/android')
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-video/android-exoplayer')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-svg/android')
include ':react-native-aztec'
project(':react-native-aztec').projectDir = new File(rootProject.projectDir, '../../react-native-aztec/android')
include ':react-native-gutenberg-bridge'
project(':react-native-gutenberg-bridge').projectDir = new File(rootProject.projectDir, '../../react-native-bridge/android')
include ':react-native-linear-gradient'
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-linear-gradient/android')

Expand Down
Loading