Skip to content

Commit

Permalink
Merge pull request #230 from EyeSeeTea/feature-widp/configure_image_r…
Browse files Browse the repository at this point in the history
…esize_to_download

[WIDP] configure image resize to download
  • Loading branch information
ifoche authored Jan 21, 2025
2 parents 74f5efc + 828faf7 commit 206bfa5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ android {
val mapboxAccessToken = System.getenv("MAPBOX_ACCESS_TOKEN") ?: defMapboxToken
val bitriseSentryDSN = System.getenv("SENTRY_DSN") ?: ""

buildConfigField("String", "SDK_VERSION", "\"" + "1.10.1-eyeseetea-fork-2" + "\"")
buildConfigField("String", "SDK_VERSION", "\"" + libs.versions.dhis2sdk.get() + "\"")
buildConfigField("String", "MAPBOX_ACCESS_TOKEN", "\"" + mapboxAccessToken + "\"")
buildConfigField("String", "MATOMO_URL", "\"https://usage.analytics.dhis2.org/matomo.php\"")
buildConfigField("long", "VERSION_CODE", "${defaultConfig.versionCode}")
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/org/dhis2/data/server/ServerModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import org.hisp.dhis.android.core.D2
import org.hisp.dhis.android.core.D2Configuration
import org.hisp.dhis.android.core.D2Manager
import org.hisp.dhis.android.core.D2Manager.blockingInstantiateD2
import org.hisp.dhis.android.core.arch.helpers.FileResizerHelper

@Module
class ServerModule {
Expand Down Expand Up @@ -191,6 +192,7 @@ class ServerModule {
.networkInterceptors(interceptors)
.writeTimeoutInSeconds(10 * 60)
.context(context)
.fileResizerDimension(FileResizerHelper.Dimension.MEDIUM)
.build()
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ndk = "21.4.7075529"
sdk = "34"
minSdk = "21"
vCode = "136"
vName = "3.0.1-widp-fork-1"
vName = "3.0.1-widp-fork-2"
kotlinCompilerExtensionVersion = "1.5.6"
dhis2AndroidSdkCode = "294"
gradle = "8.2.2"
Expand All @@ -12,7 +12,7 @@ hilt = '2.47'
hiltCompiler = '1.0.0'
jacoco = '0.8.10'
designSystem = "0.3.0"
dhis2sdk = "1.10.1"
dhis2sdk = "1.10.1-eyeseetea-fork-2"
ruleEngine = "3.0.0"
expressionParser = "1.1.0"
appcompat = "1.6.1"
Expand Down

0 comments on commit 206bfa5

Please sign in to comment.