Skip to content

Commit 338fbc6

Browse files
committed
Code clean up
1 parent d7ae2f7 commit 338fbc6

3 files changed

Lines changed: 11 additions & 18 deletions

File tree

.github/workflows/library.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ jobs:
5757
api-level: 34
5858
script: ./gradlew :library:connectedDebug --stacktrace --info
5959

60-
- name: Run unit tests with Gradle
61-
run: ./gradlew :library:clean :library:testDebugUnitTest --stacktrace
6260
- name: Generate & upload library snapshot artifact AAR (Android Archive) file
6361
run: ./gradlew :library:clean --stacktrace && ./gradlew :library:assembleRelease --stacktrace && ./gradlew :library:publishMavenJavaPublicationToMavenCentralRepository --stacktrace
6462

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
apply plugin: 'realm-android'
1414
apply plugin: 'maven-publish'
1515

16-
version '0.10.6-SNAPSHOT'
16+
version '0.10.6-2-SNAPSHOT'
1717

1818
project.version = this.version
1919

@@ -123,7 +123,7 @@ dependencies { configuration ->
123123
//implementation (project(":utils")) {
124124
// Uncomment the line below when creating releases
125125
implementation('io.ona.kujaku:utils:0.10.6-SNAPSHOT') {
126-
transitive = true;
126+
transitive = true
127127
exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-sdk'
128128
exclude group: 'com.android.support', module: 'support-v4'
129129
}

library/src/test/java/io/ona/kujaku/services/MapboxOfflineDownloaderServiceTest.java

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@
6565
import static org.junit.Assert.fail;
6666
import static org.mockito.Mockito.mock;
6767

68-
/**
69-
*
70-
*
71-
* Created by Ephraim Kigamba - ekigamba@ona.io on 05/12/2017.
72-
*/
7368
@RunWith(RobolectricTestRunner.class)
7469
@Config(manifest = Config.NONE,
7570
shadows = {
@@ -83,23 +78,23 @@
8378
})
8479
public class MapboxOfflineDownloaderServiceTest {
8580

86-
private String mapName = UUID.randomUUID().toString();
81+
private final String mapName = UUID.randomUUID().toString();
8782
private static final String TAG = MapboxOfflineDownloaderServiceTest.class.getSimpleName();
8883

8984
private Context context;
9085
private MapboxOfflineDownloaderService mapboxOfflineDownloaderService;
9186

92-
private String sampleValidMapboxStyleURL = "mapbox://styles/ona/90kiosdcIJ3d";
87+
private final String sampleValidMapboxStyleURL = "mapbox://styles/ona/90kiosdcIJ3d";
9388
private String mapboxAccessToken;
94-
private float minZoom = 22;
95-
private float maxZoom = 10;
96-
private LatLng topLeftBound = new LatLng(9.1, 9.1);
97-
private LatLng topRightBound = new LatLng(9.1, 20.5);
98-
private LatLng bottomRightBound = new LatLng(1.1, 20.5);
99-
private LatLng bottomLeftBound = new LatLng(9.1, 1.1);
89+
private final float minZoom = 22;
90+
private final float maxZoom = 10;
91+
private final LatLng topLeftBound = new LatLng(9.1, 9.1);
92+
private final LatLng topRightBound = new LatLng(9.1, 20.5);
93+
private final LatLng bottomRightBound = new LatLng(1.1, 20.5);
94+
private final LatLng bottomLeftBound = new LatLng(9.1, 1.1);
10095

10196
private CountDownLatch latch;
102-
private ArrayList<Object> resultsToCheck = new ArrayList<>();
97+
private final ArrayList<Object> resultsToCheck = new ArrayList<>();
10398

10499
@Before
105100
public void setUp() throws Exception {

0 commit comments

Comments
 (0)