Skip to content

Commit d5dc03d

Browse files
committed
Extend visibility of Custom Moshi Type Adapters
1 parent 940c5a4 commit d5dc03d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/src/main/resources/kotlin/tools/TypesAdapters.kt.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import java.math.BigDecimal
1818
* Moshi Factory to handle all the custom types we want to support,
1919
* such as [LocalDate], [ZonedDateTime], [BigDecimal].
2020
*/
21-
internal class TypesAdapterFactory : JsonAdapter.Factory {
21+
class TypesAdapterFactory : JsonAdapter.Factory {
2222
private val types = mapOf<Type, JsonAdapter<*>>(
2323
LocalDate::class.java to LocalDateAdapter(),
2424
ZonedDateTime::class.java to ZonedDateTimeAdapter(),

plugin/src/main/resources/kotlin/tools/XNullableAdapterFactory.kt.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.squareup.moshi.JsonWriter
66
import com.squareup.moshi.Moshi
77
import java.lang.reflect.Type
88

9-
internal class XNullableAdapterFactory : JsonAdapter.Factory {
9+
class XNullableAdapterFactory : JsonAdapter.Factory {
1010
override fun create(type: Type, annotations: MutableSet<out Annotation>, moshi: Moshi): JsonAdapter<*>? {
1111
if (annotations.any { it is XNullable }) {
1212
return object : JsonAdapter<Any>() {

0 commit comments

Comments
 (0)