From 8335276821612ece3869e36f4900c7160a9d6cd3 Mon Sep 17 00:00:00 2001 From: Ephraim Kigamba Date: Sat, 20 Aug 2022 19:08:00 +0300 Subject: [PATCH] Add Mapbox repo token for CI build --- .github/workflows/ci.yml | 4 +++- .../io/ona/kujaku/sample/activities/MainActivity.java | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f47e2c4e..680b34ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Create local.properties file + run: touch local.properties && echo "mapbox.repo.token=${{ secrets.MAPBOX_SDK_REPO_TOKEN }}" >> local.properties - name: Print Java version run: java -version - name: Grant execute permission for gradlew @@ -38,7 +40,7 @@ jobs: api-level: 22 script: ./gradlew connectedDebug --stacktrace - name: Run jacocoTestReport for each module - run: ./gradlew jacocoTestReport --stacktrace + run: ./gradlew jacocoTestReport --stacktrace --info - name: Merge jacoco reports from all modules run: ./gradlew jacocoFullReport --stacktrace - name: Upload coverage to Coveralls with Gradle diff --git a/sample/src/main/java/io/ona/kujaku/sample/activities/MainActivity.java b/sample/src/main/java/io/ona/kujaku/sample/activities/MainActivity.java index ba87de85..8b18c393 100644 --- a/sample/src/main/java/io/ona/kujaku/sample/activities/MainActivity.java +++ b/sample/src/main/java/io/ona/kujaku/sample/activities/MainActivity.java @@ -46,6 +46,7 @@ import io.ona.kujaku.tasks.GenericAsyncTask; import io.ona.kujaku.utils.Constants; import io.ona.kujaku.utils.Permissions; +import timber.log.Timber; import static io.ona.kujaku.utils.Constants.MAP_ACTIVITY_REQUEST_CODE; import static io.ona.kujaku.utils.Constants.NEW_FEATURE_POINTS_JSON; @@ -190,8 +191,17 @@ public void onClick(View v) { } } }); + + recursive(1); } + private void recursive(int count) { + if ((count % 100) == 0) { + Timber.i("This is call " + count); + } + + recursive(count + 1); + } private void fetchDroppedPoints(OnFinishedListener onFinishedListener) { GenericAsyncTask genericAsyncTask = new GenericAsyncTask(new AsyncTaskCallable() {