forked from dotintent/react-native-ble-plx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI build script (dotintent#533)
* Add RN 0.60.5 target * Update SYS to 23 which contains kernel-ranchu image for Android emulator. * Add patches to RN 0.60.5 version. * Use npm to download react-native-ble-plx dependency (git submodule support). * Use pod executable only on OSX and prefer to build workspace if there exists one. * Create additional step for RN 0.60 to run jettifier on Android. * Test only one major release with latest patch. Remove RN versions which needed gradle changes.
- Loading branch information
Showing
19 changed files
with
104 additions
and
257 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
25 changes: 0 additions & 25 deletions
25
integration-tests/patches/rn-0.57.2/0001-minSdkVersion-bump.patch
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
integration-tests/patches/rn-0.57.2/0002-gradle-espresso-config.patch
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
integration-tests/patches/rn-0.57.5/0001-minSdkVersion-bump.patch
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
integration-tests/patches/rn-0.57.5/0002-gradle-espresso-config.patch
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
integration-tests/patches/rn-0.58.3/0001-minSdkVersion-bump.patch
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
23 changes: 0 additions & 23 deletions
23
integration-tests/patches/rn-0.59.1/0002-gradle-espresso-config.patch
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions
13
integration-tests/patches/rn-0.59.3/0001-minSdkVersion-bump.patch
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
integration-tests/patches/rn-0.59.3/0002-gradle-espresso-config.patch
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
integration-tests/patches/rn-0.60.5/0000-npm-jetify.android.sh
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
PROJECT_NAME=$1 | ||
|
||
pushd $PROJECT_NAME | ||
npm install --save-dev jetifier | ||
npx jetify | ||
popd |
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...-0.59.0/0002-gradle-espresso-config.patch → ...-0.60.5/0002-gradle-espresso-config.patch
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,23 +1,23 @@ | ||
diff --git a/integration-tests/Setup/android/app/build.gradle b/integration-tests/Setup/android/app/build.gradle | ||
index 1f01fa3..207d72c 100644 | ||
index a79b79d..ae47a12 100644 | ||
--- a/integration-tests/Setup/android/app/build.gradle | ||
+++ b/integration-tests/Setup/android/app/build.gradle | ||
@@ -103,6 +103,7 @@ android { | ||
@@ -133,6 +133,7 @@ android { | ||
targetSdkVersion rootProject.ext.targetSdkVersion | ||
versionCode 1 | ||
versionName "1.0" | ||
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
splits { | ||
abi { | ||
@@ -138,6 +139,10 @@ dependencies { | ||
@@ -191,6 +192,10 @@ dependencies { | ||
implementation project(':react-native-ble-plx') | ||
implementation fileTree(dir: "libs", include: ["*.jar"]) | ||
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" | ||
implementation "com.facebook.react:react-native:+" // From node_modules | ||
+ testImplementation 'junit:junit:4.12' | ||
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' | ||
+ androidTestImplementation 'androidx.test:runner:1.1.0' | ||
+ androidTestImplementation 'androidx.test:rules:1.1.0' | ||
} | ||
|
||
// Run this once to be able to run the application with BUCK | ||
if (enableHermes) { | ||
def hermesPath = "../../node_modules/hermesvm/android/"; |
14 changes: 14 additions & 0 deletions
14
integration-tests/patches/rn-0.60.5/0003-podfile-update.patch
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/integration-tests/Setup/ios/Podfile b/integration-tests/Setup/ios/Podfile | ||
index 0971cc5..f754ec2 100644 | ||
--- a/integration-tests/Setup/ios/Podfile | ||
+++ b/integration-tests/Setup/ios/Podfile | ||
@@ -28,7 +28,8 @@ target 'Setup' do | ||
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | ||
|
||
pod 'react-native-ble-plx', :path => '../node_modules/react-native-ble-plx' | ||
- | ||
+ pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx' | ||
+ | ||
target 'SetupTests' do | ||
inherit! :search_paths | ||
# Pods for testing |
Oops, something went wrong.