Compare commits
2 commits
562635b1cb
...
824c552738
Author | SHA1 | Date | |
---|---|---|---|
|
824c552738 | ||
|
a8e565ec07 |
3 changed files with 8 additions and 4 deletions
|
@ -147,7 +147,11 @@ public class CachedClientImpl extends Client {
|
|||
}
|
||||
});
|
||||
}
|
||||
return Single.just(new Cursor<>(items, Optional.of(String.valueOf(items.get(items.size() - 1).id()))));
|
||||
Optional<String> next = Optional.empty();
|
||||
if(items.size() != 0) {
|
||||
next = Optional.of(String.valueOf(items.get(items.size() - 1).id()));
|
||||
}
|
||||
return Single.just(new Cursor<>(items, next));
|
||||
}
|
||||
return this.client.getObjects(rect, cont).doOnSuccess(cursor -> {
|
||||
for (var item : cursor.items()) {
|
||||
|
|
|
@ -59,7 +59,7 @@ public class ClientImpl extends Client {
|
|||
/**
|
||||
* The API URL.
|
||||
*/
|
||||
private static final String API_URL = BuildConfig.DEBUG ? DEV_API_URL : PROD_API_URL;
|
||||
private static final String API_URL = PROD_API_URL;
|
||||
/**
|
||||
* An empty body.
|
||||
*/
|
||||
|
|
|
@ -98,11 +98,11 @@
|
|||
sed -i 's#google..#maven { url "${invtracker-deps}/maven" }#' settings.gradle
|
||||
|
||||
export GRADLE_USER_HOME=$(mktemp -d)
|
||||
gradle --offline --no-daemon --info -Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/33.0.0/aapt2 -Dorg.gradle.java.home=${pkgs.openjdk_headless} app:packageRelease
|
||||
gradle --offline --no-daemon --info -Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/33.0.0/aapt2 -Dorg.gradle.java.home=${pkgs.openjdk_headless} app:packageDebug
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp app/build/outputs/apk/release/app-release-unsigned.apk $out/app.apk
|
||||
cp app/build/outputs/apk/debug/debug.apk $out/app.apk
|
||||
mkdir $out/nix-support
|
||||
echo "file binary-dist $out/app.apk" > $out/nix-support/hydra-build-products
|
||||
echo "$pname-$version" > $out/nix-support/hydra-release-name
|
||||
|
|
Loading…
Reference in a new issue