Last active
February 1, 2018 00:30
-
-
Save juddey/f36b19a36990e97a9f70b3ad837f2faa to your computer and use it in GitHub Desktop.
Detox 7.0.1 for Android Setup - diff
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
android { | |
compileSdkVersion 25 | |
- buildToolsVersion "25.0.1" | |
+ buildToolsVersion "26.0.2" | |
defaultConfig { | |
applicationId "com.tiaki" | |
- minSdkVersion 16 | |
+ minSdkVersion 18 | |
targetSdkVersion 22 | |
versionCode 1 | |
versionName "1.0" | |
ndk { | |
abiFilters "armeabi-v7a", "x86" | |
} | |
+ testBuildType System.getProperty('testBuildType', 'debug') | |
+ missingDimensionStrategy "minReactNative", "minReactNative46" | |
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} | |
splits { | |
abi { | |
@@ -134,15 +137,26 @@ android { | |
} | |
} | |
} | |
+ packagingOptions { | |
+ exclude 'META-INF/DEPENDENCIES' | |
+ exclude 'META-INF/NOTICE' | |
+ exclude 'META-INF/LICENSE' | |
+ exclude 'META-INF/LICENSE.txt' | |
+ exclude 'META-INF/NOTICE.txt' | |
+ } | |
} | |
dependencies { | |
compile project(':react-native-i18n') | |
compile project(':react-native-vector-icons') | |
compile fileTree(dir: "libs", include: ["*.jar"]) | |
- compile "com.android.support:appcompat-v7:23.0.1" | |
+ compile "com.android.support:appcompat-v7:25.4.0" | |
compile "com.facebook.react:react-native:+" // From node_modules | |
compile project(':react-native-navigation') | |
+ androidTestImplementation(project(path: ":detox")) | |
+ androidTestImplementation 'junit:junit:4.12' | |
+ androidTestImplementation 'com.android.support.test:runner:1.0.1' | |
+ androidTestImplementation 'com.android.support.test:rules:1.0.1' | |
} |
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
+package com.tiaki; | |
+ | |
+import android.support.test.filters.LargeTest; | |
+import android.support.test.rule.ActivityTestRule; | |
+import android.support.test.runner.AndroidJUnit4; | |
+ | |
+import com.wix.detox.Detox; | |
+ | |
+import org.junit.Rule; | |
+import org.junit.Test; | |
+import org.junit.runner.RunWith; | |
+ | |
+/** | |
+ * Created by simonracz on 28/05/2017. | |
+ */ | |
+ | |
+@RunWith(AndroidJUnit4.class) | |
+@LargeTest | |
+public class DetoxTest { | |
+ | |
+ @Rule | |
+ public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false); | |
+ | |
+ @Test | |
+ public void runDetoxTests() throws InterruptedException { | |
+ Detox.runTests(mActivityRule); | |
+ } | |
+} |
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
buildscript { | |
repositories { | |
jcenter() | |
+ google() | |
} | |
dependencies { | |
- classpath 'com.android.tools.build:gradle:2.2.3' | |
+ classpath 'com.android.tools.build:gradle:3.0.1' | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
@@ -20,5 +21,6 @@ allprojects { | |
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | |
url "$rootDir/../node_modules/react-native/android" | |
} | |
+ google() | |
} | |
} |
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
distributionBase=GRADLE_USER_HOME | |
distributionPath=wrapper/dists | |
zipStoreBase=GRADLE_USER_HOME | |
zipStorePath=wrapper/dists | |
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip | |
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip |
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
rootProject.name = 'tiaki' | |
include ':react-native-navigation' | |
project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/android/app/') | |
+include ':detox' | |
+project(':detox').projectDir = new File(rootProject.projectDir, '../node_modules/detox/android/detox') | |
include ':react-native-i18n' | |
project(':react-native-i18n').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-i18n/android') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment