Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
migration update (#99)
Browse files Browse the repository at this point in the history
* migration update
* update is banner value
  • Loading branch information
mfrederick-thunderhead authored Jul 15, 2021
1 parent 5638fee commit ee8ea5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.thunderhead.optimizationexample

import android.os.Bundle
import android.text.Html
import android.util.Base64
import android.util.Log
import android.view.LayoutInflater
Expand Down Expand Up @@ -160,15 +159,13 @@ class FirstFragment : Fragment() {
actions?.run {
this.filter { it.getString("name").contains("banner") }
.map { it.getJSONObject("asset").getString("content") }
.map { content -> JSONObject(Html.fromHtml(content).toString()) }
.forEach { contentJson -> updateContent(contentJson, true) }
.forEach { contentJson -> updateContent(JSONObject(contentJson), true) }
}

actions?.run {
this.filter { it.getString("name").contains("card") }
.map { it.getJSONObject("asset").getString("content") }
.map { content -> JSONObject(Html.fromHtml(content).toString()) }
.forEach { contentJson -> updateContent(contentJson, false) }
.forEach { contentJson -> updateContent(JSONObject(contentJson), false) }
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
<trust-anchors>
Expand Down

0 comments on commit ee8ea5d

Please sign in to comment.