Skip to content

Commit

Permalink
feat(typescriptMessaging): update to react-native 0.67 and add clean …
Browse files Browse the repository at this point in the history
…scripts
  • Loading branch information
santhoshvai committed Mar 11, 2022
1 parent 808c75e commit 3714092
Show file tree
Hide file tree
Showing 10 changed files with 427 additions and 447 deletions.
1 change: 1 addition & 0 deletions examples/TypeScriptMessaging/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ build/
.gradle
local.properties
*.iml
*.hprof

# Visual Studio Code
#
Expand Down
12 changes: 11 additions & 1 deletion examples/TypeScriptMessaging/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,17 @@ def jscFlavor = 'org.webkit:android-jsc:+'
/**
* Whether to enable the Hermes VM.
*
* This should be set on project.ext.react and mirrored here. If it is not set
* This should be set on project.ext.react and that value will be read here. If it is not set
* on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
* and the benefits of using Hermes will therefore be sharply reduced.
*/
def enableHermes = project.ext.react.get("enableHermes", false);

/**
* Architectures to build native code for in debug.
*/
def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures")

android {
ndkVersion rootProject.ext.ndkVersion

Expand Down Expand Up @@ -153,6 +158,11 @@ android {
buildTypes {
debug {
signingConfig signingConfigs.debug
if (nativeArchitectures) {
ndk {
abiFilters nativeArchitectures.split(',')
}
}
}
release {
// Caution! In production, you need to generate your own keystore file.
Expand Down
11 changes: 7 additions & 4 deletions examples/TypeScriptMessaging/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ buildscript {

allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
Expand All @@ -32,9 +30,14 @@ allprojects {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}

mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
google()
maven { url 'https://maven.google.com' }
maven { url 'https://www.jitpack.io' }
}
}
2 changes: 1 addition & 1 deletion examples/TypeScriptMessaging/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ android.useAndroidX=true
android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.93.0
FLIPPER_VERSION=0.99.0
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
1 change: 1 addition & 0 deletions examples/TypeScriptMessaging/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ target 'TypeScriptMessaging' do
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
Loading

0 comments on commit 3714092

Please sign in to comment.