yxlku / GsonPlugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started

Add plugin

Using the plugins DSL:

plugins{
    id "io.github.LXD312569496.GsonPlugin"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.lxd312569496:GsonPlugin:[latest]"
  }
}

apply plugin: "io.github.LXD312569496.GsonPlugin"

When use with gson

when you use gson ,you can show some log in logcat.
println the json string and the type。

2022-07-05 16:06:26.379 29819-29819/com.example.gsonparserplugin D/GsonRecorder: fromJson text:{"age":111,"name":"dongggua"}, type:class com.example.gsonparserplugin.MainActivity$Person}

About


Languages

Language:Kotlin 100.0%