Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[templates] Update templates for the next SDK (#14409)
# Why Update templates for the next SDK # How - `et update-project-templates` - manually updated some dependencies like `react`, `react-dom`, `react-native`, `react-native-web`, `@types/react` - migrated bare template from unimodules to expo modules - [android] migrate unimodules to expo-modules - [android] integrate ReactNativeHostWrapper / ReactActivityDelegateWrapper - replace splash screen integration by in-module setup - replace expo-updates integration by in-module setup - add Podfile.properties.json with hermes support - fix other `node_modules` resolution where breaking monorepo support, e.g. hermes-engine or maven repo. - use mavenCentral before jcenter because [jcenter will be a read-only mirror repository](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/) Co-authored-by: Tomasz Sapeta <tomasz.sapeta@swmansion.com> Co-authored-by: Cedric van Putten <me@bycedric.com> # Test Plan ```sh expo init -t /path/to/templates/expo-template-bare-minimum sdk43 cd sdk43 expo run:android expo run:android --variant release expo run:ios expo run:ios --configuration Release ```
- Loading branch information
Showing
19 changed files
with
6,191 additions
and
7,688 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
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
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,9 +1,9 @@ | ||
rootProject.name = 'HelloWorld' | ||
|
||
apply from: new File(["node", "--print", "require.resolve('react-native-unimodules/package.json')"].execute().text.trim(), "../gradle.groovy"); | ||
includeUnimodulesProjects() | ||
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute().text.trim(), "../scripts/autolinking.gradle"); | ||
useExpoModules() | ||
|
||
apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json"].execute().text.trim(), "../native_modules.gradle"); | ||
apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute().text.trim(), "../native_modules.gradle"); | ||
applyNativeModulesSettingsGradle(settings) | ||
|
||
include ':app' |
36 changes: 28 additions & 8 deletions
36
templates/expo-template-bare-minimum/ios/HelloWorld.xcodeproj/project.pbxproj
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
templates/expo-template-bare-minimum/ios/HelloWorld/AppDelegate.h
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,10 +1,9 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <EXUpdates/EXUpdatesAppController.h> | ||
#import <React/RCTBridgeDelegate.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
#import <UMCore/UMAppDelegateWrapper.h> | ||
#import <Expo/Expo.h> | ||
|
||
@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate, EXUpdatesAppControllerDelegate> | ||
@interface AppDelegate : EXAppDelegateWrapper <RCTBridgeDelegate> | ||
|
||
@end |
Oops, something went wrong.