Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bemyak committed Nov 3, 2019
1 parent 660e567 commit 68815bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/orgzly/android/sync/SyncService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,12 @@ class SyncService : DaggerService() {
*/
@Throws(IOException::class)
@JvmStatic
fun getBooksFromAllRepos(dataRepository: DataRepository, repos: List<SyncRepo> = getRepos(dataRepository)): List<VersionedRook> {
fun getBooksFromAllRepos(dataRepository: DataRepository, repos: List<SyncRepo>? = null): List<VersionedRook> {
val result = ArrayList<VersionedRook>()

for (repo in repos) {
val repoList = repos ?: getRepos(dataRepository)

for (repo in repoList) {
val libBooks = repo.books

/* Each book in repository. */
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m "-XX:MaxMetaspaceSize=256m"
org.gradle.jvmargs=-Xms128m -Xmx2048m -XX:+CMSClassUnloadingEnabled
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# Workaround for https://issuetracker.google.com/issues/64434571
# Disabled after updating to Android Studio 3.1 (deprecated)
Expand Down

0 comments on commit 68815bc

Please sign in to comment.