PSync是一个Gradle插件用于Android根据XMLPerferences生成Java的替代方案。
安装设置:
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "gradle.plugin.com.flipboard:psync:1.1.5" }}apply plugin: 'com.android.application' // Can be library tooapply plugin: 'com.flipboard.psync'配置方法:
psync { className = "MyClassName" includesPattern = "**/xml/<mypatternforfiles>.xml" packageName = "com.example.myapp" generateRx = true}
评论