-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial commit of the Android samples module #930
Conversation
RxJava-pull-requests #870 FAILURE |
The test failure looks unrelated to this PR. |
Sorry, realized too late that the samples project wouldn't import into Android Studio when looked at in isolation (i.e. outside the main project.) There was also a broken method reference. Fixed that. |
RxJava-pull-requests #875 FAILURE |
Okay this is actually a genuine failure. It looks as if there's an Android SDK installed on the build server, so it tried to compile the samples build. The stack trace isn't very revealing though. @gbenson-nflx could you have a look at this? Might involve digging around on the build machine to which I don't have access. |
Do you guys have time to look into this? Otherwise I'd simply disable the sample app build for now, even when a framework SDK is detected. |
I haven't had a chance. I'm not familiar with the build machine... Maybe try Ben. |
I have no clue what to do with that ... nor do I know what the Android SDK is doing on a CloudBees build server. Perhaps so Android apps can be built on their build slaves? |
Ben how about I always exclude the samples build for the time being and
|
Works for me. |
RxJava-pull-requests #891 SUCCESS |
RxJava-pull-requests #892 SUCCESS |
RxJava-pull-requests #894 SUCCESS |
RxJava-pull-requests #895 SUCCESS |
@gbenson-nflx @benjchristensen Feel free to merge this in any time. Samples are of course a moving target, but this project builds fine and is working and I already got a few samples in that cover the most useful use cases I could think of for now. I was wondering, do you see a way to make it easier to add code to the samples project in the future? Opening a PR against the core project seems like process overhead for everyone involved (unless you're fine with that.) I guess that's the downside of this living in the core project folder |
RxJava-pull-requests #896 SUCCESS |
Matthias, thanks for doing this. Much appreciate it. |
The solution will be to split this out once we migrate away from the current home so RxAndroid has it's own place and have it managed and run by Android developers specifically such as yourself who manage the commits, PRs, releases etc. @headinthebox and I are getting close to having that roadmap. It should be in the timeframe of months. In the meantime, just keep sending the PRs and I'll merge them :-) |
Initial commit of the Android samples module
Thanks -- I forgot to mention @gbenson-nflx, you can trigger the samples build from the parent project like so:
Without that property the build proceeds as usual and simply ignores the Android samples. |
@mttkay, However, when I run via "./gradlew build -PbuildAndroidSamples" from the
-g On Wed, Mar 12, 2014 at 10:23 AM, Matthias Käppler <[email protected]
|
Hi Greg, Odd, this works on my machine. I wonder if I forgot to commit something or Could you build with the -i option to get the full error log? It's Also, does it build if you enter the samples folder and invoke the samples |
Not a major issue. Things are working on another machine I have. If I see an issue again I'll try to fix. For now, happy to be playing with -g On Wed, Mar 12, 2014 at 2:13 PM, Matthias Käppler
|
Glad to hear! |
refs https://github.com/soundcloud/RxJava/issues/3
I made it so that the samples project will automatically be pulled in as soon as it detects an Android SDK on the build machine; otherwise it's ignored. It also runs in a sub-gradle so should not be affected by changes to the main project. It does, however, automatically pull in and compile against the current project version.
Let me know what you think. I kept the actual samples minimal for now, I see this more as a tracer bullet for how the samples could fit into the current build setup.