Skip to content

Commit 8348725

Browse files
author
Justin Ryan
committed
Use samples as a part of the RxAndroid Gradle build, so that it can have a project dependency on rxjava.
1 parent 7e4b433 commit 8348725

38 files changed

+48
-348
lines changed

build.gradle

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
buildscript {
2-
repositories { jcenter() }
3-
dependencies {
4-
classpath 'com.netflix.nebula:gradle-rxjava-project-plugin:1.12.+'
5-
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.+'
6-
}
2+
repositories { jcenter() }
3+
dependencies {
4+
classpath 'com.netflix.nebula:gradle-rxjava-project-plugin:1.12.+'
5+
}
6+
configurations.classpath.resolutionStrategy {
7+
// The above dependency will bring in guava, which then pollutes child projects
8+
force 'com.google.guava:guava:15.0'
9+
}
10+
711
}
12+
13+
apply plugin: 'rxjava-project'

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
rxJavaVersion=1.0.0-rc.9
2-
version=0.22.0

sample-app/build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
buildscript {
2+
repositories { jcenter() }
3+
dependencies {
4+
classpath 'com.android.tools.build:gradle:0.12.+' // 0.12.x is for Gradle 1.12 projects
5+
}
6+
}
7+
8+
repositories {
9+
jcenter()
10+
}
11+
12+
apply plugin: 'com.android.application'
13+
14+
android {
15+
compileSdkVersion 20
16+
buildToolsVersion "20"
17+
18+
defaultConfig {
19+
minSdkVersion 14
20+
targetSdkVersion 20
21+
versionCode 1
22+
versionName "1.0"
23+
}
24+
buildTypes {
25+
release {
26+
runProguard false
27+
}
28+
}
29+
}
30+
31+
dependencies {
32+
compile project(':rxandroid')
33+
}

samples-build-wrapper/build.gradle

Lines changed: 0 additions & 14 deletions
This file was deleted.

samples/app/build.gradle

Lines changed: 0 additions & 30 deletions
This file was deleted.

samples/build.gradle

Lines changed: 0 additions & 17 deletions
This file was deleted.

samples/gradle.properties

Lines changed: 0 additions & 18 deletions
This file was deleted.
-49.4 KB
Binary file not shown.

samples/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 6 deletions
This file was deleted.

samples/gradlew

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)