File tree 4 files changed +45
-2
lines changed
4 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android" package = " com.reactcommunity.rndatetimepicker " >
1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
2
2
<application />
3
3
</manifest >
Original file line number Diff line number Diff line change @@ -37,7 +37,40 @@ allprojects {
37
37
throw new GradleException (" Could not find `react-native`" );
38
38
}())
39
39
}
40
+ maven {
41
+ // All of Detox' artifacts are provided via the npm module
42
+ url " $rootDir /../../node_modules/detox/Detox-android"
43
+ }
40
44
mavenCentral()
41
45
google()
42
46
}
47
+ afterEvaluate { project ->
48
+ def androidExtension = project. extensions. findByName(' android' )
49
+ if (androidExtension != null && project. name == ' app' ) {
50
+ androidExtension. defaultConfig {
51
+ ndk {
52
+ abiFilters ' arm64-v8a' , ' x86' , ' x86_64'
53
+ }
54
+ }
55
+
56
+ androidExtension. signingConfigs {
57
+ test {
58
+ keyAlias " androiddebugkey"
59
+ keyPassword " android"
60
+ storeFile file(" debug.keystore" )
61
+ storePassword " android"
62
+ }
63
+ }
64
+
65
+ androidExtension. buildTypes. debug. signingConfig = androidExtension. signingConfigs. test
66
+ androidExtension. buildTypes. release. signingConfig = androidExtension. signingConfigs. test
67
+ androidExtension. testBuildType = System . getProperty(' testBuildType' , ' debug' )
68
+
69
+ androidExtension. sourceSets. androidTest. java. srcDirs + = " $rootDir /app/src/androidTest/java"
70
+
71
+ project. dependencies {
72
+ androidTestImplementation(' com.wix:detox:+' )
73
+ }
74
+ }
75
+ }
43
76
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "$schema" : " https://raw.githubusercontent.com/microsoft/react-native-test-app/trunk/schema.json" ,
2
3
"name" : " date-time-picker-example" ,
3
4
"displayName" : " date-time-picker-example" ,
5
+ "singleApp" : " date-time-picker-example" ,
6
+ "android" : {
7
+ "package" : " com.datetimepickerexample"
8
+ },
9
+ "ios" : {
10
+ "bundleIdentifier" : " com.datetimepickerexample" ,
11
+ "developmentTeam" : " "
12
+ },
4
13
"components" : [
5
14
{
6
15
"appKey" : " date-time-picker-example" ,
7
- "displayName" : " date-time-picker-example"
16
+ "displayName" : " date-time-picker-example" ,
17
+ "slug" : " date-time-picker-example"
8
18
}
9
19
],
10
20
"resources" : {
You can’t perform that action at this time.
0 commit comments