Re-configure Android CI (#1488)

* [tests][wip] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] disable gradle daemon

* [tests] misc

* [tests] misc

* misc ci

* ci

* ci

* ci

* ci

* ci

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* switch to rnfb docker image

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [ios][auth] cleanup and add new auth error codes

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]
This commit is contained in:
Michael Diarmid
2018-12-09 19:37:11 +01:00
committed by GitHub
parent 831362838a
commit fa7b98895e
9 changed files with 385 additions and 168 deletions

View File

@@ -7,9 +7,10 @@ Our tests are powered by [Jet ✈️](https://github.com/invertase/jet).
## Requirements
- Make sure you have Xcode installed (tested with Xcode 9.2+).
- With Xcode 10+ ensure build mode is set to `Legacy Build`
- With Xcode 10+ ensure build mode is set to `Legacy Build`
- Make sure you have NodeJS installed (Node 8.4.0 and up is required).
- Make sure you have all required dependencies installed:
- [Apple Sim Utils](https://github.com/wix/AppleSimulatorUtils):
```bash

View File

@@ -88,7 +88,7 @@ dependencies {
* ---------------------------- */
// Library as defined in settings.gradle
implementation project(':react-native-firebase')
implementation project(path: ':react-native-firebase', configuration: 'default')
// Required dependencies
//noinspection GradleCompatible
implementation "com.google.firebase:firebase-core:16.0.4"
@@ -144,7 +144,7 @@ dependencies {
/* ------------------------
* TESTING SDKS/LIBRARIES
* ------------------------ */
implementation(project(':jet')) {
implementation(project(path: ':jet', configuration: 'default')) {
transitive = false
}
androidTestImplementation(project(path: ":detox"))

View File

@@ -1,38 +1,47 @@
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
subprojects {
task listAllDependencies(type: DependencyReportTask) {}
}
allprojects {
task downloadDependencies() {
description 'Download all dependencies to the Gradle cache'
doLast {
configurations.findAll().each { config ->
if (config.name.contains("minReactNative") && config.canBeResolved) {
print config.name
print '\n'
config.files
}
}
}
}
repositories {
mavenLocal()
google()
jcenter()
maven {
url "$rootDir/../node_modules/react-native/android"
}
jcenter()
}
}
subprojects {
task listAllDependencies(type: DependencyReportTask) {}
ext {
compileSdk = 27
buildTools = "28.0.2"
buildTools = "28.0.3"
minSdk = 18
targetSdk = 26
}

View File

@@ -8,6 +8,7 @@
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.daemon=true
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

View File

@@ -1 +0,0 @@
require('./app');

View File

@@ -90,7 +90,7 @@
},
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
"build": "pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug -Dorg.gradle.daemon=false && popd",
"type": "android.emulator",
"name": "TestingAVD"
},