From 6d69618b3ea093d0804d5d3754e10105537a2b46 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 | 2 ++ .../io/ona/kujaku/sample/activities/MainActivity.java | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f47e2c4e..83a17e7f 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 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..5942604c 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,6 +191,14 @@ public void onClick(View v) { } } }); + + recursive(1); + } + + private void recursive(int count) { + Timber.i("This is call " + count); + + recursive(count + 1); }