Skip to content

Commit d41ae47

Browse files
committed
Merge branch 'master' into ts-support-v2
2 parents 07d540d + f7c05a5 commit d41ae47

File tree

30 files changed

+171
-12298
lines changed

30 files changed

+171
-12298
lines changed

documentation/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,md}\""
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "2.0.0-alpha.64",
19-
"@docusaurus/preset-classic": "2.0.0-alpha.64",
20-
"@mdx-js/react": "^1.5.8",
18+
"@docusaurus/core": "2.0.0-alpha.72",
19+
"@docusaurus/preset-classic": "2.0.0-alpha.72",
20+
"@mdx-js/react": "^1.6.21",
2121
"clsx": "^1.1.1",
22-
"react": "^16.8.4",
23-
"react-dom": "^16.8.4"
22+
"react": "^17.0.1",
23+
"react-dom": "^17.0.1"
2424
},
2525
"devDependencies": {
2626
"babel-eslint": "^10.0.3",
@@ -47,4 +47,4 @@
4747
"last 1 safari version"
4848
]
4949
}
50-
}
50+
}

documentation/yarn.lock

Lines changed: 0 additions & 11448 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thecodingmachine/react-native-boilerplate",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"description": "TheCodingMachine React Native Boilerplate",
55
"repository": {
66
"type": "git",
@@ -11,7 +11,7 @@
1111
"bugs": {
1212
"url": "https://github.com/thecodingmachine/react-native-boilerplate/issues"
1313
},
14-
"homepage": "https://github.com/thecodingmachine/react-native-boilerplate#readme",
14+
"homepage": "https://thecodingmachine.github.io/react-native-boilerplate/",
1515
"main": "post-init.script.js",
1616
"scripts": {
1717
"test": "echo \"Error: no test specified\" && exit 1"

template/_editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files
2+
[*.bat]
3+
end_of_line = crlf

template/_flowconfig

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
; Ignore polyfills
99
node_modules/react-native/Libraries/polyfills/.*
1010

11-
; These should not be required directly
12-
; require from fbjs/lib instead: require('fbjs/lib/warning')
13-
node_modules/warning/.*
14-
1511
; Flow doesn't support platforms
1612
.*/Libraries/Utilities/LoadingView.js
1713

@@ -44,10 +40,6 @@ suppress_type=$FlowFixMe
4440
suppress_type=$FlowFixMeProps
4541
suppress_type=$FlowFixMeState
4642

47-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
48-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
49-
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
50-
5143
[lints]
5244
sketchy-null-number=warn
5345
sketchy-null-mixed=warn
@@ -58,7 +50,6 @@ deprecated-type=warn
5850
unsafe-getters-setters=warn
5951
unnecessary-invariant=warn
6052
signature-verification-failure=warn
61-
deprecated-utility=error
6253

6354
[strict]
6455
deprecated-type
@@ -70,4 +61,4 @@ untyped-import
7061
untyped-type-import
7162

7263
[version]
73-
^0.122.0
64+
^0.137.0

template/_gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
*.pbxproj -text
1+
# Windows files should use crlf line endings
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
*.bat text eol=crlf

template/_prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ module.exports = {
33
singleQuote: true,
44
trailingComma: 'all',
55
semi: false,
6+
arrowParens: 'avoid',
67
}

template/android/app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def jscFlavor = 'org.webkit:android-jsc:+'
121121
def enableHermes = project.ext.react.get("enableHermes", false);
122122

123123
android {
124+
ndkVersion rootProject.ext.ndkVersion
125+
124126
compileSdkVersion rootProject.ext.compileSdkVersion
125127

126128
compileOptions {
@@ -169,11 +171,12 @@ android {
169171
variant.outputs.each { output ->
170172
// For each separate APK per architecture, set a unique version code as described here:
171173
// https://developer.android.com/studio/build/configure-apk-splits.html
174+
// Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
172175
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
173176
def abi = output.getFilter(OutputFile.ABI)
174177
if (abi != null) { // null for the universal-debug, universal-release variants
175178
output.versionCodeOverride =
176-
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
179+
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
177180
}
178181

179182
}

template/android/app/src/debug/AndroidManifest.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44

55
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
66

7-
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" />
7+
<application
8+
android:usesCleartextTraffic="true"
9+
tools:targetApi="28"
10+
tools:ignore="GoogleAppIndexingWarning">
11+
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
12+
</application>
813
</manifest>

template/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@
2121
<category android:name="android.intent.category.LAUNCHER" />
2222
</intent-filter>
2323
</activity>
24-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
2524
</application>
26-
2725
</manifest>

0 commit comments

Comments
 (0)