Skip to content

Commit aeba797

Browse files
Merge pull request #1790 from opensrp/fix-togo-crash-after-login
Fix TOGO crash after login
2 parents 7866048 + 63d7a75 commit aeba797

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local.properties
1515
classes/
1616
tmp/
1717
project.properties
18+
github.properties
1819
.DS_Store
1920
.settings
2021
build/

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ buildscript {
1212
jcenter()
1313
mavenLocal()
1414
maven { url 'https://maven.fabric.io/public' }
15-
maven { url "http://dl.bintray.com/ona/kujaku" }
1615
maven { url "https://plugins.gradle.org/m2/" }
1716
}
1817
dependencies {
@@ -55,7 +54,6 @@ allprojects {
5554
maven { url 'https://maven.fabric.io/public' }
5655
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
5756
maven { url "https://dl.bintray.com/ona/rdt-capture" }
58-
maven { url "http://dl.bintray.com/ona/kujaku" }
5957
maven { url 'https://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases' }
6058
maven { url "https://dl.bintray.com/ona/kujaku" }
6159
}

opensrp-chw/build.gradle

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,24 @@ allprojects {
1616
repositories {
1717
maven { url 'https://maven.google.com' }
1818
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
19-
maven { url "http://dl.bintray.com/ona/kujaku" }
19+
maven {
20+
def githubProperties = new Properties()
21+
if (rootProject.file("github.properties").exists()) {
22+
githubProperties.load(new FileInputStream(rootProject.file("github.properties")))
23+
}
24+
25+
name = "GitHubPackages"
26+
/* Configure path to the library hosted on GitHub Package Registry
27+
* Replace UserID with package owner userID and REPOSITORY with the repository name
28+
* e.g. ""https://maven.pkg.github.com/opensrp/opensrp-client-reporting""
29+
*/
30+
url = uri("https://maven.pkg.github.com/onaio/kujaku")
31+
credentials {
32+
username = githubProperties['gpr.usr'] ?: System.getenv("GPR_USER")
33+
password = githubProperties['gpr.key'] ?: System.getenv("GPR_API_KEY")
34+
}
35+
36+
}
2037
maven { url 'https://maven.fabric.io/public' }
2138
mavenLocal()
2239
}
@@ -176,6 +193,7 @@ android {
176193
exclude 'LICENSE.txt'
177194
exclude 'META-INF/LICENSE.md'
178195
exclude 'META-INF/NOTICE.md'
196+
exclude 'META-INF/INDEX.LIST'
179197
}
180198

181199
testOptions {
@@ -269,8 +287,8 @@ android {
269287
togo {
270288
dimension = 'baseDimension'
271289
applicationIdSuffix ".togo"
272-
versionCode 21
273-
versionName "1.2.3"
290+
versionCode 22
291+
versionName "1.2.4"
274292
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '1000'
275293
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '500'
276294
buildConfigField "String", 'opensrp_url', '"https://wcaro-tg.smartregister.org/opensrp/"'
@@ -320,7 +338,7 @@ android {
320338
}
321339

322340
dependencies {
323-
implementation('org.smartregister:opensrp-client-chw-core:2.0.30-SNAPSHOT@aar') {
341+
implementation('org.smartregister:opensrp-client-chw-core:2.0.32-SNAPSHOT@aar') {
324342
transitive = true
325343
exclude group: 'com.android.support', module: 'appcompat-v7'
326344
exclude group: 'androidx.legacy', module: 'legacy-support-v4'
@@ -411,4 +429,4 @@ tasks.coveralls {
411429
coveralls {
412430
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"
413431
sourceDirs = ["$project.projectDir/src/main/java"]
414-
}
432+
}

0 commit comments

Comments
 (0)