Code Monkey home page Code Monkey logo

android-buddybuild's Introduction

DEPRECATED

Now that BuddyBuild is owned by Apple and no longer supporting Android apps I have no interest in continuing this project. So long and thanks for all the fish.

BuddyBuild Android Client

Continuous Integration

BuddyBuild

We use BuddyBuild to build the BuddyBuild Android client. What did you expect?

Test Path

We load .json files from disk during unit tests. When running tests from CL (e.g. ./gradlew test) the path that the tests is run on is not the same as when running tests from within Android Studio. To fix this, we need to tell Android Studio to run tests from the module path for all Android JUnit tests:

android_studio_set_test_path_screenshot

Running All Tests

We have tests for the following modules:

  • core - "local" unit tests
  • rest - "local" unit tests
  • app - "local" unit tests, "instrumentation" unit tests

Run all of these tests via command line with

$ ./gradlew clean core:test rest:testDebugUnitTest app:connectedDebugAndroidTest

Running Lint And Checkstyle

We run Lint and Checkstyle on the project. Check lint.xml and checkstyle.xml to see our blacklisted/whitelisted checks. Run all of these checks from command line with:

$ ./gradlew clean rest:lint app:lintDebug
$ ./gradlew clean core:checkStyleMain core:checkStyleTest rest:androidCheckstyle app:androidCheckstyle

android-buddybuild's People

Contributors

tir38 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

android-buddybuild's Issues

Make up my mind about Assert-J Android vs Truth

We are currently using Assert-J for junit assertions. As we add robolectric tests it would be nice to add some "android specific" assertion library. I'm on the fence about Assert-J Android vs Truth. Assert-J Android was recently deprecated, but Truth is just huge (includes Guava).

java.lang.IllegalArgumentException: Comparison method violates its general contract

com.buddybuild.debug E/BuildsFragment$$Lambda: java.lang.IllegalArgumentException: Comparison method violates its general contract!
                                                                                  at java.util.TimSort.mergeLo(TimSort.java:777)
                                                                                  at java.util.TimSort.mergeAt(TimSort.java:514)
                                                                                  at java.util.TimSort.mergeCollapse(TimSort.java:441)
                                                                                  at java.util.TimSort.sort(TimSort.java:245)
                                                                                  at java.util.Arrays.sort(Arrays.java:1498)
                                                                                  at java.util.ArrayList.sort(ArrayList.java:1470)
                                                                                  at java.util.Collections.sort(Collections.java:201)
                                                                                  at com.buddybuild.ui.BuildsFragment.lambda$setApp$0$BuildsFragment(BuildsFragment.java:121)
                                                                                  at com.buddybuild.ui.BuildsFragment$$Lambda$0.apply(Unknown Source:0)
                                                                                  at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:57)
                                                                                  at io.reactivex.internal.operators.single.SingleDoOnSuccess$DoOnSuccess.onSuccess(SingleDoOnSuccess.java:59)
                                                                                  at io.reactivex.internal.operators.observable.ObservableToListSingle$ToListObserver.onComplete(ObservableToListSingle.java:113)
                                                                                  at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.drainLoop(ObservableFlatMap.java:367)
                                                                                  at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.drain(ObservableFlatMap.java:323)
                                                                                  at io.reactivex.internal.operators.observable.ObservableFlatMap$InnerObserver.onComplete(ObservableFlatMap.java:579)
                                                                                  at io.reactivex.internal.observers.BasicFuseableObserver.onComplete(BasicFuseableObserver.java:119)
                                                                                  at io.reactivex.internal.operators.single.SingleToObservable$SingleToObservableObserver.onSuccess(SingleToObservable.java:60)
                                                                                  at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:64)
                                                                                  at io.reactivex.internal.operators.observable.ObservableSingleSingle$SingleElementObserver.onComplete(ObservableSingleSingle.java:111)
                                                                                  at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onComplete(ObservableSubscribeOn.java:68)
                                                                                  at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:47)
                                                                                  at io.reactivex.Observable.subscribe(Observable.java:10903)
                                                                                  at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
                                                                                  at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:452)
                                                                                  at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:61)
                                                                                  at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:52)
                                                                                  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                                                                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
                                                                                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
                                                                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
                                                                                  at java.lang.Thread.run(Thread.java:764)

Remove Lombok

Either migrate back to plain old getters/setters or migrate to Kotlin

SocketTimeout when fetching many branches

On main screen we fetch builds for each branch. If a repo has many branches, this eventually times out.

The solution is to return each branch to the UI one at a time and perhaps lazy load more as the user scrolls.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.