diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 49beec1..dfb02a7 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,15 +1,15 @@
+ package="org.freedombox.freedombox">
-
+
-
+
-
+
-
+
-
-
+
-
+
-
+
diff --git a/app/src/main/java/org/freedombox/freedombox/Constants.kt b/app/src/main/java/org/freedombox/freedombox/Constants.kt
index 55c2f2f..b046c64 100644
--- a/app/src/main/java/org/freedombox/freedombox/Constants.kt
+++ b/app/src/main/java/org/freedombox/freedombox/Constants.kt
@@ -17,6 +17,6 @@
package org.freedombox.freedombox
-const val DEFAULT_IP = "http://10.42.0.1"
+const val DEFAULT_IP = "https://10.42.0.1:4430/plinth/api/1/services"
const val SERVICES_URL = "services.json"
const val APP_RESPONSE = "appResponse"
diff --git a/app/src/main/java/org/freedombox/freedombox/modules/AppModule.kt b/app/src/main/java/org/freedombox/freedombox/modules/AppModule.kt
index 9388865..c5527f3 100644
--- a/app/src/main/java/org/freedombox/freedombox/modules/AppModule.kt
+++ b/app/src/main/java/org/freedombox/freedombox/modules/AppModule.kt
@@ -20,6 +20,8 @@ package org.freedombox.freedombox.modules
import android.app.Application
import android.content.SharedPreferences
import android.preference.PreferenceManager
+import com.google.gson.Gson
+import com.google.gson.GsonBuilder
import dagger.Module
import dagger.Provides
import org.freedombox.freedombox.utils.ImageRenderer
@@ -42,4 +44,7 @@ class AppModule(val application: Application) {
@Singleton
fun provideImageRenderer(): ImageRenderer =
ImageRenderer(application.applicationContext)
+
+ @Provides
+ fun provideGson() : Gson = GsonBuilder().setPrettyPrinting().create();
}
diff --git a/app/src/main/java/org/freedombox/freedombox/utils/ImageRenderer.kt b/app/src/main/java/org/freedombox/freedombox/utils/ImageRenderer.kt
index c810ede..2c58166 100644
--- a/app/src/main/java/org/freedombox/freedombox/utils/ImageRenderer.kt
+++ b/app/src/main/java/org/freedombox/freedombox/utils/ImageRenderer.kt
@@ -32,23 +32,31 @@ import org.freedombox.freedombox.svg.SvgDecoder
import org.freedombox.freedombox.svg.SvgDrawableTranscoder
import java.io.InputStream
-class ImageRenderer(context: Context) {
+class ImageRenderer(val context: Context) {
private val requestBuilder: GenericRequestBuilder = Glide
- .with(context)
- .using(Glide.buildStreamModelLoader(Uri::class.java, context), InputStream::class.java)
- .from(Uri::class.java)
- .`as`(SVG::class.java)
- .transcode(SvgDrawableTranscoder(), PictureDrawable::class.java)
- .sourceEncoder(StreamEncoder())
- .cacheDecoder(FileToStreamDecoder