-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #776 from wordpress-mobile/release/v1.1.1
Release/v1.1.1
- Loading branch information
Showing
119 changed files
with
6,616 additions
and
5,519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
; ignore the submodules | ||
gutenberg | ||
symlinked-packages | ||
symlinked-packages-in-parent | ||
react-native-aztec | ||
bundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
const { map } = require( 'lodash' ); | ||
|
||
module.exports = { | ||
parser: "babel-eslint", | ||
env: { | ||
browser: true, | ||
"jest/globals": true | ||
}, | ||
globals: { | ||
__DEV__: true | ||
}, | ||
plugins: [ | ||
"react", | ||
"react-native", | ||
"jest", | ||
"flowtype" | ||
], | ||
extends: [ | ||
"plugin:@wordpress/eslint-plugin/recommended", | ||
"plugin:flowtype/recommended", | ||
], | ||
settings: { | ||
flowtype: { | ||
onlyFilesWithFlowAnnotation: true, | ||
}, | ||
react: { | ||
pragma: "React", | ||
version: "16.8.3", | ||
flowVersion: "0.92.0", | ||
}, | ||
}, | ||
rules: { | ||
'no-restricted-syntax': [ | ||
'error', | ||
// NOTE: We can't include the forward slash in our regex or | ||
// we'll get a `SyntaxError` (Invalid regular expression: \ at end of pattern) | ||
// here. That's why we use \\u002F in the regexes below. | ||
{ | ||
selector: 'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]', | ||
message: 'Path access on WordPress dependencies is not allowed.', | ||
}, | ||
{ | ||
selector: 'CallExpression[callee.name=/^(__|_x|_n|_nx)$/] Literal[value=/\\.{3}/]', | ||
message: 'Use ellipsis character (…) in place of three dots', | ||
}, | ||
{ | ||
selector: 'ImportDeclaration[source.value="lodash"] Identifier.imported[name="memoize"]', | ||
message: 'Use memize instead of Lodash’s memoize', | ||
}, | ||
{ | ||
selector: 'CallExpression[callee.object.name="page"][callee.property.name="waitFor"]', | ||
message: 'Prefer page.waitForSelector instead.', | ||
}, | ||
{ | ||
selector: 'JSXAttribute[name.name="id"][value.type="Literal"]', | ||
message: 'Do not use string literals for IDs; use withInstanceId instead.', | ||
}, | ||
{ | ||
// Discourage the usage of `Math.random()` as it's a code smell | ||
// for UUID generation, for which we already have a higher-order | ||
// component: `withInstanceId`. | ||
selector: 'CallExpression[callee.object.name="Math"][callee.property.name="random"]', | ||
message: 'Do not use Math.random() to generate unique IDs; use withInstanceId instead. (If you’re not generating unique IDs: ignore this message.)', | ||
}, | ||
{ | ||
selector: 'CallExpression[callee.name="withDispatch"] > :function > BlockStatement > :not(VariableDeclaration,ReturnStatement)', | ||
message: 'withDispatch must return an object with consistent keys. Avoid performing logic in `mapDispatchToProps`.', | ||
}, | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Helper definitions to glob .aar and .jar targets""" | ||
|
||
def create_aar_targets(aarfiles): | ||
for aarfile in aarfiles: | ||
name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] | ||
lib_deps.append(":" + name) | ||
android_prebuilt_aar( | ||
name = name, | ||
aar = aarfile, | ||
) | ||
|
||
def create_jar_targets(jarfiles): | ||
for jarfile in jarfiles: | ||
name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] | ||
lib_deps.append(":" + name) | ||
prebuilt_jar( | ||
name = name, | ||
binary_jar = jarfile, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
<application tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" android:networkSecurityConfig="@xml/react_native_config" /> | ||
</manifest> |
Oops, something went wrong.