Skip to content

Commit

Permalink
update dependencies (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDolle authored Feb 19, 2024
1 parent d331618 commit 676bce4
Show file tree
Hide file tree
Showing 38 changed files with 2,502 additions and 2,337 deletions.
17 changes: 8 additions & 9 deletions documentation/docs/01-Getting Started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ If you find value in this boilerplate, consider giving us a star. It would brigh

## Features

| Features | Description |
| ---------------------------------------------------------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`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) |
| Features | Description |
| ---------------------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`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) |
| [`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). |
| [`Data fetching`](/docs/data-fetching)| Leveraging [TanStackQuery](https://react-query.tanstack.com/), data fetching has never been this effortless. |
| [`Internationalization`](/docs/internationalization) | Our application is fully prepared for multilingual support, all thanks to [React i18next](https://react.i18next.com/). |
| [`Multi theming`](/docs/theming/how-to-use) | Without any extra dependencies, we offer an easy-to-use and maintainable theme configuration |
| [`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. |
| [`Environment`](/docs/environment) | The app comes pre-installed with all the necessary tools for handling simple environment variables |
| [`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). |
| [`Data fetching`](/docs/data-fetching)| Leveraging [TanStackQuery](https://react-query.tanstack.com/), data fetching has never been this effortless. |
| [`Internationalization`](/docs/internationalization) | Our application is fully prepared for multilingual support, all thanks to [React i18next](https://react.i18next.com/). |
| [`Multi theming`](/docs/theming/how-to-use) | Without any extra dependencies, we offer an easy-to-use and maintainable theme configuration |
| [`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. |
| [`Environment`](/docs/environment) | The app comes pre-installed with all the necessary tools for handling simple environment variables |


## Dependencies
Expand Down
17 changes: 9 additions & 8 deletions documentation/docs/04-Guides/04-Theming/02-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ keywords: [theme, theming, configuration, config, colors, fonts, gutters, spacin
The idea behind the theme configuration is to have a single source of truth for all the theme related values.
This is why the theme configuration is a simple object with the following structure:

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

## Variants
A variant is a new theme based on the previous values.
Expand Down
6 changes: 6 additions & 0 deletions documentation/docs/04-Guides/04-Theming/04-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ keywords: [theme, theming, configuration, config, api, reference, api reference]

## Theme Configuration

### ColorConfig

| Key | Type | Description |
|----------|------------------------|----------------------|
| `colors` | Record<string, string> | Define global colors |

### FontConfig

| Key | Type | Description |
Expand Down
30 changes: 0 additions & 30 deletions documentation/docs/04-Guides/07-Debugging.mdx

This file was deleted.

16 changes: 0 additions & 16 deletions documentation/src/components/Flipper.tsx

This file was deleted.

Binary file removed documentation/static/img/flipper.png
Binary file not shown.
6 changes: 4 additions & 2 deletions template/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

gem 'cocoapods', '~> 1.13'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
14 changes: 5 additions & 9 deletions template/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"

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

android {
ndkVersion rootProject.ext.ndkVersion

compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion

namespace "com.boilerplate"
defaultConfig {
Expand Down Expand Up @@ -106,13 +107,8 @@ android {
dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation("com.facebook.react:flipper-integration")

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.squareup.okhttp3', module:'okhttp'
}

debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
Expand Down
6 changes: 1 addition & 5 deletions template/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

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

<application
android:usesCleartextTraffic="true"
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
</application>
tools:ignore="GoogleAppIndexingWarning"/>
</manifest>

This file was deleted.

34 changes: 17 additions & 17 deletions template/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET" />

<application
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme"
>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:theme="@style/SplashTheme"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:theme="@style/SplashTheme"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Loading

0 comments on commit 676bce4

Please sign in to comment.