Skip to content

Commit

Permalink
#823 Added obfuscate option to dump shards
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Jun 8, 2020
1 parent 41d926a commit 6150c6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions test_runner/src/main/kotlin/ftl/util/Obfuscation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,4 @@ private fun nextSymbol(key: String, context: Map<String, String>): String {
return possibleSymbols[currentContextItemCount % possibleSymbols.length].toString().repeat(repeatSymbol)
}

private fun obfuscateMethodName(methodName: String, context: MutableMap<String, String>) =
context.getOrPut(methodName) { nextSymbol(methodName, context) }

private fun obfuscateMethodName(methodName: String, context: MutableMap<String, String>) = context.getOrPut(methodName) { nextSymbol(methodName, context) }
3 changes: 0 additions & 3 deletions test_runner/src/main/kotlin/ftl/util/ObfuscationGson.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package ftl.util
import com.google.common.annotations.VisibleForTesting
import com.google.gson.GsonBuilder
import com.google.gson.JsonArray
import com.google.gson.JsonElement
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import com.google.gson.reflect.TypeToken
Expand Down Expand Up @@ -37,7 +36,6 @@ private object ObfuscatedAndroidJsonSerializer : JsonSerializer<List<String>> {
}
}


private object ObfuscatedIosJsonSerializer : JsonSerializer<List<List<String>>> {
private val obfuscationContext by lazy { mutableMapOf<String, MutableMap<String, String>>() }

Expand All @@ -53,4 +51,3 @@ private object ObfuscatedIosJsonSerializer : JsonSerializer<List<List<String>>>
}
}
}

0 comments on commit 6150c6f

Please sign in to comment.