Skip to content

Commit 676bce4

Browse files
authored
update dependencies (#407)
1 parent d331618 commit 676bce4

File tree

38 files changed

+2502
-2337
lines changed

38 files changed

+2502
-2337
lines changed

documentation/docs/01-Getting Started.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ If you find value in this boilerplate, consider giving us a star. It would brigh
2525

2626
## Features
2727

28-
| Features | Description |
29-
| ---------------------------------------------------------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30-
| [`Javascript or TypeScript`](/docs/installation#using-the-boilerplate) | Every project, developer, team, and experience is unique. That's why you have the freedom to select either a JavaScript or TypeScript codebase. [The choice is yours!](/docs/installation#using-the-boilerplate) |
28+
| Features | Description |
29+
| ---------------------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
30+
| [`Javascript or TypeScript`](/docs/installation#using-the-boilerplate) | Every project, developer, team, and experience is unique. That's why you have the freedom to select either a JavaScript or TypeScript codebase. [The choice is yours!](/docs/installation#using-the-boilerplate) |
3131
| [`Navigation`](/docs/navigate) | With [React Navigation](https://reactnavigation.org/), we offer a swift start to your navigation structure through a robust dependency. Check out the details in our [navigation structure documentation](/docs/navigate#navigation-structure). |
32-
| [`Data fetching`](/docs/data-fetching)| Leveraging [TanStackQuery](https://react-query.tanstack.com/), data fetching has never been this effortless. |
33-
| [`Internationalization`](/docs/internationalization) | Our application is fully prepared for multilingual support, all thanks to [React i18next](https://react.i18next.com/). |
34-
| [`Multi theming`](/docs/theming/how-to-use) | Without any extra dependencies, we offer an easy-to-use and maintainable theme configuration |
35-
| [`Safe synchrone storage`](/docs/storage) | With [React Native MMKV](https://github.com/mrousavy/react-native-mmkv), storing data becomes a breeze, and it can be done securely. |
36-
| [`Environment`](/docs/environment) | The app comes pre-installed with all the necessary tools for handling simple environment variables |
37-
| [`Debug`](/docs/debugging) | The app comes pre-installed with all the necessary tools for debugging, including [Flipper](https://fbflipper.com/) and [Navigation DevTools](https://www.npmjs.com/package/@react-navigation/devtools). |
32+
| [`Data fetching`](/docs/data-fetching)| Leveraging [TanStackQuery](https://react-query.tanstack.com/), data fetching has never been this effortless. |
33+
| [`Internationalization`](/docs/internationalization) | Our application is fully prepared for multilingual support, all thanks to [React i18next](https://react.i18next.com/). |
34+
| [`Multi theming`](/docs/theming/how-to-use) | Without any extra dependencies, we offer an easy-to-use and maintainable theme configuration |
35+
| [`Safe synchrone storage`](/docs/storage) | With [React Native MMKV](https://github.com/mrousavy/react-native-mmkv), storing data becomes a breeze, and it can be done securely. |
36+
| [`Environment`](/docs/environment) | The app comes pre-installed with all the necessary tools for handling simple environment variables |
3837

3938

4039
## Dependencies

documentation/docs/04-Guides/04-Theming/02-Configuration.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ keywords: [theme, theming, configuration, config, colors, fonts, gutters, spacin
1111
The idea behind the theme configuration is to have a single source of truth for all the theme related values.
1212
This is why the theme configuration is a simple object with the following structure:
1313

14-
| Key | Type | Description |
15-
|--------------------|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
16-
| `fonts` | [`FontConfig`](/docs/theming/api-reference#fontconfig) | Define colors and sizes to generate associated styles (`color` and `fontSize`) |
17-
| `gutters` | [`GuttersConfig`](/docs/theming/api-reference#guttersconfig) | Define sizes to generate associated styles (`padding` and `margin`) |
18-
| `backgrounds` | `Record<string, string>` | Define colors generate associated styles (`backgroundColor`) |
19-
| `borders` | [`BordersConfig`](/docs/theming/api-reference#bordersconfig) | Define colors, sizes and radius to generate associated styles (`borderColor`, `borderRadius`, `borderWidth`) |
20-
| `navigationColors` | [`NavigationColorsConfig`](/docs/theming/api-reference#navigationcolorsconfig) | Define colors override ReactNavigation theme colors |
21-
| `variants` | [`VariantsConfig`](/docs/theming/api-reference#variantsconfig) | Define a new theme based on the previous values |
14+
| Key | Type | Description |
15+
|--------------------|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
16+
| `colors` | [`colorConfig`](/docs/theming/api-reference#colorconfig) | Define global colors |
17+
| `fonts` | [`FontConfig`](/docs/theming/api-reference#fontconfig) | Define colors and sizes to generate associated styles (`color` and `fontSize`) |
18+
| `gutters` | [`GuttersConfig`](/docs/theming/api-reference#guttersconfig) | Define sizes to generate associated styles (`padding` and `margin`) |
19+
| `backgrounds` | `Record<string, string>` | Define colors generate associated styles (`backgroundColor`) |
20+
| `borders` | [`BordersConfig`](/docs/theming/api-reference#bordersconfig) | Define colors, sizes and radius to generate associated styles (`borderColor`, `borderRadius`, `borderWidth`) |
21+
| `navigationColors` | [`NavigationColorsConfig`](/docs/theming/api-reference#navigationcolorsconfig) | Define colors override ReactNavigation theme colors |
22+
| `variants` | [`VariantsConfig`](/docs/theming/api-reference#variantsconfig) | Define a new theme based on the previous values |
2223

2324
## Variants
2425
A variant is a new theme based on the previous values.

documentation/docs/04-Guides/04-Theming/04-API.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ keywords: [theme, theming, configuration, config, api, reference, api reference]
88

99
## Theme Configuration
1010

11+
### ColorConfig
12+
13+
| Key | Type | Description |
14+
|----------|------------------------|----------------------|
15+
| `colors` | Record<string, string> | Define global colors |
16+
1117
### FontConfig
1218

1319
| Key | Type | Description |

documentation/docs/04-Guides/07-Debugging.mdx

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

documentation/src/components/Flipper.tsx

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

documentation/static/img/flipper.png

-51.8 KB
Binary file not shown.

template/Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ source 'https://rubygems.org'
33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
44
ruby ">= 2.6.10"
55

6-
gem 'cocoapods', '~> 1.13'
7-
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
6+
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7+
# bound in the template on Cocoapods with next React Native release.
8+
gem 'cocoapods', '>= 1.13', '< 1.15'
9+
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'

template/android/app/build.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "org.jetbrains.kotlin.android"
23
apply plugin: "com.facebook.react"
34

45
/**
@@ -35,7 +36,7 @@ react {
3536
// The name of the generated asset file containing your JS bundle
3637
// bundleAssetName = "MyApplication.android.bundle"
3738
//
38-
// The entry file for bundle generation. Default is 'index.android.js' or 'index.ts'
39+
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
3940
// entryFile = file("../js/MyApplication.android.js")
4041
//
4142
// A list of extra flags to pass to the 'bundle' commands.
@@ -70,8 +71,8 @@ def jscFlavor = 'org.webkit:android-jsc:+'
7071

7172
android {
7273
ndkVersion rootProject.ext.ndkVersion
73-
74-
compileSdkVersion rootProject.ext.compileSdkVersion
74+
buildToolsVersion rootProject.ext.buildToolsVersion
75+
compileSdk rootProject.ext.compileSdkVersion
7576

7677
namespace "com.boilerplate"
7778
defaultConfig {
@@ -106,13 +107,8 @@ android {
106107
dependencies {
107108
// The version of react-native is set by the React Native Gradle Plugin
108109
implementation("com.facebook.react:react-android")
110+
implementation("com.facebook.react:flipper-integration")
109111

110-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
111-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
112-
exclude group:'com.squareup.okhttp3', module:'okhttp'
113-
}
114-
115-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
116112
if (hermesEnabled.toBoolean()) {
117113
implementation("com.facebook.react:hermes-android")
118114
} else {

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6-
75
<application
86
android:usesCleartextTraffic="true"
97
tools:targetApi="28"
10-
tools:ignore="GoogleAppIndexingWarning">
11-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12-
</application>
8+
tools:ignore="GoogleAppIndexingWarning"/>
139
</manifest>

template/android/app/src/debug/java/com/boilerplate/ReactNativeFlipper.java

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

0 commit comments

Comments
 (0)