SURF.nl library for Android
To use SURF library in your project:
- Add sonatype to repositories
maven {
setUrl("https://s01.oss.sonatype.org/content/repositories/releases/")
}
- Add core and data dependencies (versions might be different)
implementation("org.tiqr:core:A.B.C")
implementation("org.tiqr:data:X.Y.Z")
- Setup Coil's ImageLoader
Coil.setImageLoader(ImageLoader.Builder(context = this)
.crossfade(enable = true)
.okHttpClient {
imageOkHttpClient
.cache(CoilUtils.createDefaultCache(context = this))
.build()
}
.build())
- Override resources, styles, strings and MainActivity (if needed)
-
Make changes in the code
-
Go to https://github.com/SURFnet/tiqr-app-core-android/actions and trigger appropriate workflow. If you are debugging client apps - trigger SNAPSHOT flow, if you think that your changes are ready to be released to public - trigger RELEASE flow. If you made changes only in core - trigger CORE flow, if you made changes to data module - you have to trigger both DATA and CORE flows, as core depends on data