Browse Source

【Demo】 移除模块

liuxiaolong 2 months ago
parent
commit
30f01b0be4
54 changed files with 10 additions and 10057 deletions
  1. 10 1
      build.gradle
  2. 0 1
      lib_material_tokens/.gitignore
  3. 0 14
      lib_material_tokens/build.gradle
  4. BIN
      lib_material_tokens/libs/java-json.jar
  5. 0 77
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/MdParseUtil.kt
  6. 0 41
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/MdToken.kt
  7. 0 32
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/TokenCategory.kt
  8. 0 23
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/TokenJsonType.kt
  9. 0 23
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/BaseXmlHandler.kt
  10. 0 17
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/DataExtension.kt
  11. 0 71
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/FileUtil.kt
  12. 0 28
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/Log.kt
  13. 0 34
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/XMLUtil.kt
  14. 0 21
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/XmlParserDataCategory.kt
  15. 0 25
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/IParseToken.kt
  16. 0 95
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/ParseTokenFactory.kt
  17. 0 66
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/borderradius/AliasBorderRadiusParse.kt
  18. 0 66
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/borderradius/BorderRadiusParse.kt
  19. 0 70
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/borderwidth/BorderWidthParse.kt
  20. 0 68
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/color/AliasColorParse.kt
  21. 0 65
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/color/ColorParse.kt
  22. 0 48
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/common/CommonXmlParserHandler.kt
  23. 0 68
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/sizeing/SizeingParse.kt
  24. 0 59
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/spacing/AliasSpacingParse.kt
  25. 0 68
      lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/spacing/SpacingParse.kt
  26. 0 10
      lib_material_tokens/src/result/alias_border_radius.xml
  27. 0 147
      lib_material_tokens/src/result/alias_color.xml
  28. 0 20
      lib_material_tokens/src/result/alias_spacing.xml
  29. 0 11
      lib_material_tokens/src/result/global_border_radius.xml
  30. 0 5
      lib_material_tokens/src/result/global_border_width.xml
  31. 0 207
      lib_material_tokens/src/result/global_colors.xml
  32. 0 46
      lib_material_tokens/src/result/global_sizing.xml
  33. 0 20
      lib_material_tokens/src/result/global_spacing.xml
  34. 0 938
      lib_material_tokens/src/tokens/alias-light.json
  35. 0 5445
      lib_material_tokens/src/tokens/comp-light.json
  36. 0 1389
      lib_material_tokens/src/tokens/global.json
  37. 0 11
      lib_material_tokens/src/values/token_border_radius.xml
  38. 0 5
      lib_material_tokens/src/values/token_border_width.xml
  39. 0 207
      lib_material_tokens/src/values/token_colors.xml
  40. 0 46
      lib_material_tokens/src/values/token_sizing.xml
  41. 0 20
      lib_material_tokens/src/values/token_spacing.xml
  42. 0 1
      lib_pdf_base/.gitignore
  43. 0 44
      lib_pdf_base/build.gradle
  44. 0 0
      lib_pdf_base/consumer-rules.pro
  45. 0 21
      lib_pdf_base/proguard-rules.pro
  46. 0 22
      lib_pdf_base/src/androidTest/java/com/pdf/base/ExampleInstrumentedTest.kt
  47. 0 19
      lib_pdf_base/src/main/AndroidManifest.xml
  48. BIN
      lib_pdf_base/src/main/assets/111.pdf
  49. 0 36
      lib_pdf_base/src/main/java/com/pdf/base/function/AnnotationFunction.kt
  50. 0 83
      lib_pdf_base/src/main/java/com/pdf/base/function/EditFunction.kt
  51. 0 132
      lib_pdf_base/src/main/java/com/pdf/base/function/LogicFunction.kt
  52. 0 47
      lib_pdf_base/src/main/java/com/pdf/base/impl/NormalOpenDocumentCallback.kt
  53. 0 28
      lib_pdf_base/src/main/java/com/pdf/base/interfaces/OpenDocumentCallback.kt
  54. 0 16
      lib_pdf_base/src/test/java/com/pdf/base/ExampleUnitTest.kt

+ 10 - 1
build.gradle

@@ -40,4 +40,13 @@ project.ext {
 
 task clean(type: Delete) {
     delete rootProject.buildDir
-}
+}
+
+task assembleAllModules {
+    doLast {
+        // 在这里执行你希望的命令
+        exec {
+            commandLine './gradlew', 'lib_ad_core:assemble', 'lib_ad_admob:assemble','lib_ad_applovinmax:assemble','lib_ad_gromore:assemble', 'lib_ad_gromore_adn:assemble'
+        }
+    }
+}

+ 0 - 1
lib_material_tokens/.gitignore

@@ -1 +0,0 @@
-/build

+ 0 - 14
lib_material_tokens/build.gradle

@@ -1,14 +0,0 @@
-plugins {
-    id 'java-library'
-    id 'org.jetbrains.kotlin.jvm'
-}
-
-java {
-    sourceCompatibility = JavaVersion.VERSION_1_7
-    targetCompatibility = JavaVersion.VERSION_1_7
-}
-
-dependencies {
-    implementation files('libs/java-json.jar')
-
-}

BIN
lib_material_tokens/libs/java-json.jar


+ 0 - 77
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/MdParseUtil.kt

@@ -1,77 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category
-
-import com.kdanmobile.android.lib.material.tokens.TokenJsonType
-import com.kdanmobile.android.lib.material.tokens.base.logE
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2022/11/9
- * description:
- */
-class MdParseUtil(var tokenJsonType: TokenJsonType, private var filePath: String, var destFolderPath: String) {
-
-
-    fun start() {
-
-        try {
-            val file = File(filePath)
-            val json = file.readText()
-            parseCategoryMap(json)
-
-        } catch (e: Exception) {
-            e.printStackTrace()
-        }
-    }
-
-    private fun parseCategoryMap(json: String): HashMap<String, TokenBean> {
-        val jsonObj = JSONObject(json)
-        val map = getTokensCategoryData(jsonObj)
-        for (entry in map) {
-            val key = entry.key.replace("-", "_")
-            val parse = ParseTokenFactory.factory(tokenJsonType = tokenJsonType, key)
-            parse?.parse(key, entry.value)
-            parse?.generateTokenFile(ParseTokenFactory.getSavePathByCategory(tokenJsonType, destFolderPath, key))
-            if (parse == null) {
-                logE("解析器", "未解析tokens类型:${entry.key}")
-            }
-        }
-
-
-        return hashMapOf()
-    }
-
-    /**
-     * 获取Token分类数据
-     */
-    private fun getTokensCategoryData(obj: JSONObject): Map<String, JSONObject> {
-
-        val iterator = obj.keys()
-        val maps = mutableMapOf<String, JSONObject>()
-        for (any in iterator) {
-            val valueObj = obj.get(any.toString())
-            maps[any.toString()] = valueObj as JSONObject
-        }
-        println(maps)
-        return maps
-    }
-
-
-    /**
-     * 解析尺寸
-     */
-    private fun parseSizing(json: String): List<Pair<String, String>> {
-
-        return emptyList()
-    }
-
-}
-
-data class TokenBean(
-    var type: String,
-    var value: String,
-    var currentLevelTokenName: String,
-    var parentLevelTokenNames: List<String>
-)

+ 0 - 41
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/MdToken.kt

@@ -1,41 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens
-
-import com.kdanmobile.android.lib.material.tokens.category.MdParseUtil
-
-
-/**
- * 运行解析token, 生成对应文件
- * 目前只解析 global.json、alias-light.json
- *
- * 请注意一下问题:
- * comp-light.json 组合token未解析,过于太多, 具体使用时再手动解析比较节约时间
- *
- * global.json 中以下token类型为进行解析
- * text-mac : 字体token, 目前不太可能在安卓引入字体使用,没有解析,可以具体用的时候手动添加
- * shadow   : View阴影, 不太好解析生成
- * text-windows : 字体token, 理由同上
- *
- * alias-light.json 以下token类型未解析
- * shadow  : View阴影, 同上
- * text    : 字体token别名, 理由同上
- *
- *
- * 如果需要修改token保存后的文件保存名称请查看
- * @see com.kdanmobile.android.lib.material.tokens.category.ParseTokenFactory
- *
- *
- */
-fun main() {
-
-    //解析global.json token
-    val globalTokenUtil = MdParseUtil(TokenJsonType.Global, "./lib_material_tokens/src/tokens/global.json","./lib_material_tokens/src/")
-    globalTokenUtil.start()
-
-    //解析alias-light.json token
-    val aliasTokenParse = MdParseUtil(TokenJsonType.Alias, "./lib_material_tokens/src/tokens/alias-light.json","./lib_material_tokens/src/")
-    aliasTokenParse.start()
-
-
-
-
-}

+ 0 - 32
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/TokenCategory.kt

@@ -1,32 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description:
- */
-enum class TokenCategory(var typeName : String) {
-
-    Global_Sizing("sizing"),
-
-    Global_Spacing("spacing"),
-
-    Global_Color("color"),
-
-    Global_BorderWidth("border_width"),
-
-    Global_BorderRadius("border_radius"),
-
-
-
-    Alias_Spacing("spacing"),
-
-    Alias_Color("color"),
-
-    Alias_BorderRadius("radius"),
-
-    Alias_BoxShadow("boxShadow")
-
-
-}

+ 0 - 23
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/TokenJsonType.kt

@@ -1,23 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/20
- * description: Token json的类型
- * 分为:
- * Global.json 全局基础token
- * Alias-light.json 对基础token的别名
- * Comp-light.json 组合token
- */
-enum class TokenJsonType {
-
-
-    Global,
-
-    Alias,
-
-    Compose
-
-
-}

+ 0 - 23
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/BaseXmlHandler.kt

@@ -1,23 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.base
-
-import org.xml.sax.helpers.DefaultHandler
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 基础的解析xml类
- */
-open class BaseXmlHandler : DefaultHandler() {
-
-    var maps: MutableMap<String, String> = mutableMapOf()
-
-    var value: String? = null
-
-    var name: String? = null
-
-    fun getExistsMapValues(): MutableMap<String, String> {
-        return maps
-    }
-
-}

+ 0 - 17
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/DataExtension.kt

@@ -1,17 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.base
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/20
- * description:
- */
-
-
-/**
- * 替换json 值的无意义字符
- */
-fun String.replaceInvalidStr() : String{
-    return this.replace("-","_").replace(".", "_").replace("{", "").replace("}","")
-
-}

+ 0 - 71
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/FileUtil.kt

@@ -1,71 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.base
-
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description:
- */
-object FileUtil {
-
-
-    /**
-     * 写入token
-     * @param file 写入的文件
-     * @param xmlItemName 条目名称: dimen、color...
-     * @param token 写入的数据
-     */
-    fun writeTokens(file: File, xmlItemName : XmlParserDataCategory, token : List<Pair<String, String>>){
-        file.bufferedWriter().use {
-            it.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n")
-            it.append("<resources>\n")
-            for (pair in token) {
-                val key = pair.first.replace("-","_").replace(".","_")
-                it.append("    <${xmlItemName.name} name=\"${key}\">${pair.second}</${xmlItemName.name}>\n")
-            }
-            it.append("</resources>")
-        }
-    }
-
-
-    /**
-     * 解析已存在的文件,然后合并当前新增的token
-     * @param tag 日志标签
-     * @param file 要保存的文件位置file
-     * @param baseXmlHandler 解析已存在的xml类
-     * @param inputMap 输入的新增数据
-     */
-    fun parseAndMergeOldData(tag : String, file: File, baseXmlHandler: BaseXmlHandler, inputMap: Map<String, String>): List<Pair<String, String>>{
-        val outPutMap = mutableMapOf<String, String>()
-        if (file.exists()) {
-            //文件已存在,获取到当前已经存在的sizing数据
-            val existsDataMap = XMLUtil.getFileXmlData(file, baseXmlHandler)
-            val iterator = existsDataMap.iterator()
-            while (iterator.hasNext()){
-                val entry = iterator.next()
-                if (inputMap.containsKey(entry.key).not()) {
-                    logT(tag, "移除${entry.key}:${entry.value}")
-                    iterator.remove()
-                }
-            }
-            inputMap.forEach {
-                if (existsDataMap.containsKey(it.key).not()){
-                    logT(tag,"新增:${it.key}:${it.value}")
-                }
-            }
-            outPutMap.putAll(existsDataMap)
-        } else {
-            if (file.parentFile.exists().not()) {
-                file.parentFile.mkdirs()
-            }
-            file.createNewFile()
-        }
-        outPutMap.putAll(inputMap)
-        return outPutMap.toList().sortedBy {
-            it.second
-        }
-    }
-
-}

+ 0 - 28
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/Log.kt

@@ -1,28 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.base
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description:
- */
-object Log {
-
-
-    fun t(tag : String, msg : String){
-        println(tag +": ${msg}")
-    }
-
-    fun e(tag: String, msg: String){
-        System.err.println(tag +": ${msg}")
-    }
-
-}
-
-fun logT(tag: String, msg: String){
-    Log.t(tag, msg)
-}
-
-fun logE(tag: String, msg: String){
-    Log.e(tag, msg)
-}

+ 0 - 34
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/XMLUtil.kt

@@ -1,34 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.base
-
-import java.io.File
-import javax.xml.parsers.SAXParserFactory
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description:
- */
-object XMLUtil {
-
-
-    /**
-     * 解析已存在的xml数据
-     */
-    fun getFileXmlData(file: File, defaultHandler: BaseXmlHandler): MutableMap<String, String> {
-        try {
-            val factory = SAXParserFactory.newInstance()
-            val parser = factory.newSAXParser()
-            parser.parse(file, defaultHandler)
-            return defaultHandler.getExistsMapValues()
-        }catch (e : Exception){
-            logE("XmlUtil", msg = "XmlUtil.getFileXmlData 出现异常:${e.printStackTrace()}")
-            return mutableMapOf()
-        }
-    }
-
-
-
-
-
-}

+ 0 - 21
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/base/XmlParserDataCategory.kt

@@ -1,21 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.base
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/14
- * description:
- */
-enum class XmlParserDataCategory {
-
-    /**
-     * 数值类型 px dp等
-     */
-    dimen,
-
-    /**
-     * 颜色类型
-     */
-    color
-
-}

+ 0 - 25
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/IParseToken.kt

@@ -1,25 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category
-
-import org.json.JSONObject
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析token接口
- */
-interface IParseToken {
-
-    /**
-     * 解析相关token数据
-     */
-    fun parse(rootKey : String, jsonObject: JSONObject)
-
-
-    /**
-     * 生成文件
-     */
-    fun generateTokenFile(destFilePath: String?)
-
-
-}

+ 0 - 95
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/ParseTokenFactory.kt

@@ -1,95 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category
-
-import com.kdanmobile.android.lib.material.tokens.TokenCategory
-import com.kdanmobile.android.lib.material.tokens.TokenJsonType
-import com.kdanmobile.android.lib.material.tokens.category.borderradius.AliasBorderRadiusParse
-import com.kdanmobile.android.lib.material.tokens.category.borderradius.BorderRadiusParse
-import com.kdanmobile.android.lib.material.tokens.category.borderwidth.BorderWidthParse
-import com.kdanmobile.android.lib.material.tokens.category.color.AliasColorParse
-import com.kdanmobile.android.lib.material.tokens.category.color.ColorParse
-import com.kdanmobile.android.lib.material.tokens.category.sizeing.SizeingParse
-import com.kdanmobile.android.lib.material.tokens.category.spacing.AliasSpacingParse
-import com.kdanmobile.android.lib.material.tokens.category.spacing.SpacingParse
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description:
- */
-object ParseTokenFactory {
-
-
-    fun factory(tokenJsonType: TokenJsonType, category: String) : IParseToken?{
-        if (tokenJsonType == TokenJsonType.Global){
-            return when(category){
-                TokenCategory.Global_Sizing.typeName ->{
-                    //todo 此处待验证,保存的值还没有加单位,应该是px, 但需要具体项目再测一下
-                    SizeingParse()
-                }
-                TokenCategory.Global_Spacing.typeName ->{
-                    //todo 此处待验证,保存的值还没有加单位,应该是px, 但需要具体项目再测一下
-                    SpacingParse()
-                }
-                TokenCategory.Global_BorderWidth.typeName-> {
-                    BorderWidthParse()
-                }
-                TokenCategory.Global_Color.typeName ->{
-                    ColorParse()
-                }
-                TokenCategory.Global_BorderRadius.typeName ->{
-                    BorderRadiusParse()
-                }
-                else -> null
-            }
-        }else{
-            return when(category){
-                TokenCategory.Alias_Spacing.typeName ->{
-//                    todo 此处待验证,保存的值还没有加单位,应该是px, 但需要具体项目再测一下
-                    AliasSpacingParse()
-                }
-                TokenCategory.Alias_Color.typeName ->{
-                    AliasColorParse()
-                }
-                TokenCategory.Alias_BorderRadius.typeName ->{
-                    AliasBorderRadiusParse()
-                }
-                TokenCategory.Alias_BoxShadow.typeName ->{
-                    null
-                }
-                else -> null
-            }
-        }
-
-    }
-
-    fun getSavePathByCategory(tokenJsonType: TokenJsonType, destRootPath : String, category: String) : String?{
-        return if (tokenJsonType == TokenJsonType.Global){
-            when(category){
-                TokenCategory.Global_Sizing.typeName-> "result/global_sizing.xml"
-                TokenCategory.Global_Spacing.typeName -> "result/global_spacing.xml"
-                TokenCategory.Global_Color.typeName -> "result/global_colors.xml"
-                TokenCategory.Global_BorderWidth.typeName -> "result/global_border_width.xml"
-                TokenCategory.Global_BorderRadius.typeName -> "result/global_border_radius.xml"
-                else -> ""
-            }
-        }else{
-            when(category){
-
-                TokenCategory.Alias_Spacing.typeName -> "result/alias_spacing.xml"
-                TokenCategory.Alias_Color.typeName -> "result/alias_color.xml"
-                TokenCategory.Alias_BorderRadius.typeName -> "result/alias_border_radius.xml"
-                TokenCategory.Alias_BoxShadow.typeName -> "result/alias_box_shadow.xml"
-                else -> ""
-            }
-        }.run {
-            if (isNullOrEmpty().not()){
-                File(destRootPath, this).absolutePath
-            }else{
-                null
-            }
-        }
-
-    }
-}

+ 0 - 66
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/borderradius/AliasBorderRadiusParse.kt

@@ -1,66 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.borderradius
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析Alias Border Radius相关token
- */
-class AliasBorderRadiusParse : IParseToken {
-
-    private var result = hashMapOf<String, String>()
-
-    private var tag = "解析 Alias BorderRadius"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val borderRadiusValue = value.getString("value").replaceInvalidStr()
-                result["${rootKey}_${key}"] = borderRadiusValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()) {
-            logT(tag, "保存路径为空---return")
-            return
-        }
-        logT(tag, "开始生成Alias BorderRadius Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val outputList = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.dimen), result)
-            .sortedBy {
-                it.second
-            }
-            .map {
-                it.first to "@dimen/${it.second}"
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.dimen, outputList)
-
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-}
-

+ 0 - 66
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/borderradius/BorderRadiusParse.kt

@@ -1,66 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.borderradius
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析BorderRadius相关token
- */
-class BorderRadiusParse : IParseToken {
-
-    private var result = hashMapOf<String, String>()
-
-    private var tag = "解析BorderRadius"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val borderRadiusValue = value.getString("value")
-                result["${rootKey}_${key}"] = borderRadiusValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()) {
-            logT(tag, "保存路径为空---return")
-            return
-        }
-        logT(tag, "开始生成BorderRadius Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val outputList = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.dimen), result)
-            .sortedBy {
-                it.second.toInt()
-            }
-            .map {
-                it.first to it.second +"dp"
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.dimen, outputList)
-
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-}
-

+ 0 - 70
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/borderwidth/BorderWidthParse.kt

@@ -1,70 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.borderwidth
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析BorderWidth相关token
- */
-class BorderWidthParse : IParseToken {
-
-    private var result = hashMapOf<String, String>()
-
-    private var tag = "解析BorderWidth"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val sizingValue = value.getString("value").replaceInvalidStr()
-                result["${rootKey}_${key}"] = sizingValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-
-
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()){
-            logT(tag, "保存路径为空---return")
-            return
-        }
-
-        logT(tag, "开始生成BorderWidth Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val outputData = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.dimen), result)
-            .sortedBy {
-                it.second.toInt()
-            }.map {
-                it.first to it.second +"dp"
-            }
-
-        FileUtil.writeTokens(file, XmlParserDataCategory.dimen, outputData)
-
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-
-}
-

+ 0 - 68
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/color/AliasColorParse.kt

@@ -1,68 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.color
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-import javax.xml.parsers.SAXParserFactory
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析Alias Color相关token
- */
-class AliasColorParse : IParseToken {
-
-    private var result = hashMapOf<String, String>()
-
-    private var tag = "解析Alias Color"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val colorValue = value.getString("value").replaceInvalidStr()
-                val key = "${rootKey}_${key}"
-                result[key] = colorValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()) {
-            logT(tag, "保存路径为空---return")
-            return
-        }
-        logT(tag, "开始生成Color Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val outputList = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.color), result)
-            .sortedByDescending {
-                it.first
-            }
-            .map {
-                it.first to "@color/${it.second}"
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.color, outputList)
-
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-}
-

+ 0 - 65
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/color/ColorParse.kt

@@ -1,65 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.color
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-import javax.xml.parsers.SAXParserFactory
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析Global.json Color相关token
- */
-class ColorParse : IParseToken {
-
-    private var result = hashMapOf<String, String>()
-
-    private var tag = "解析Color"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val colorValue = value.getString("value").replaceInvalidStr()
-                val key = "${rootKey}_${key}"
-                result[key] = colorValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()) {
-            logT(tag, "保存路径为空---return")
-            return
-        }
-        logT(tag, "开始生成Color Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val outputList = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.color), result)
-            .sortedByDescending {
-                it.first
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.color, outputList)
-
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-}
-

+ 0 - 48
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/common/CommonXmlParserHandler.kt

@@ -1,48 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.common
-
-
-import com.kdanmobile.android.lib.material.tokens.base.BaseXmlHandler
-import com.kdanmobile.android.lib.material.tokens.base.XmlParserDataCategory
-import org.xml.sax.Attributes
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 通用的解析器,获取xml文件已经存在的数据
- * @param dataCategory 要读取的数据类型
- * @see XmlParserDataCategory
- */
-class CommonXmlParserHandler(var dataCategory : XmlParserDataCategory) : BaseXmlHandler() {
-
-
-    override fun startElement(uri: String?, localName: String?, qName: String?, attributes: Attributes?) {
-        super.startElement(uri, localName, qName, attributes)
-        if (qName.equals(dataCategory.name)) {
-            for (i in 0 until attributes!!.length) {
-                name = attributes?.getValue(i)
-            }
-        }
-    }
-
-
-    override fun endElement(uri: String?, localName: String?, qName: String?) {
-        super.endElement(uri, localName, qName)
-        try {
-            if (name.isNullOrEmpty().not() && value.isNullOrEmpty().not() && "\n".equals(value).not()) {
-                name = name?.replace("-","_")?.replace(".","_")
-                maps[name!!] = value!!
-            }
-        } catch (e: Exception) {
-            e.printStackTrace()
-        }
-    }
-
-
-    override fun characters(ch: CharArray, start: Int, length: Int) {
-        super.characters(ch, start, length)
-        value = String(ch, start, length)
-    }
-
-
-}

+ 0 - 68
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/sizeing/SizeingParse.kt

@@ -1,68 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.sizeing
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析Sizing相关token
- */
-class SizeingParse : IParseToken {
-
-    private var result = hashMapOf<String, String>()
-
-    private var tag = "解析Sizing"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val sizingValue = value.getString("value")
-                result["${rootKey}_${key}"] = sizingValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-
-
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()){
-            logT(tag, "保存路径为空---return")
-            return
-        }
-
-        logT(tag, "开始生成Sizing Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val outputData = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.dimen), result)
-            .sortedBy {
-                it.second.toInt()
-            }.map {
-                it.first to it.second +"px"
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.dimen, outputData)
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-
-}
-

+ 0 - 59
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/spacing/AliasSpacingParse.kt

@@ -1,59 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.spacing
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/20
- * description: 解析alias-light.json 中Spacing 相关数据
- */
-class AliasSpacingParse : IParseToken {
-    var result = hashMapOf<String, String>()
-
-    open var tag = "解析AliasSpacing"
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val sizingValue = value.getString("value").replaceInvalidStr()
-                result["${rootKey}_${key}"] = sizingValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-    }
-
-
-    override fun generateTokenFile(destFilePath: String?) {
-        if (destFilePath.isNullOrEmpty()) {
-            logT(tag, "保存路径为空---return")
-            return
-        }
-        logT(tag, "开始生成AliasSpacing Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val resultData = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.dimen), result)
-            .sortedBy {
-                it.first
-            }
-            .map {
-                it.first to "@dimen/${it.second}"
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.dimen, resultData)
-
-        logT(tag, "解析生成文件完成-----")
-    }
-
-
-}

+ 0 - 68
lib_material_tokens/src/main/java/com/kdanmobile/android/lib/material/tokens/category/spacing/SpacingParse.kt

@@ -1,68 +0,0 @@
-package com.kdanmobile.android.lib.material.tokens.category.spacing
-
-import com.kdanmobile.android.lib.material.tokens.base.*
-import com.kdanmobile.android.lib.material.tokens.category.IParseToken
-import com.kdanmobile.android.lib.material.tokens.category.common.CommonXmlParserHandler
-import org.json.JSONObject
-import java.io.File
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2023/2/13
- * description: 解析Spacing相关token
- */
-open class SpacingParse : IParseToken {
-
-    var result = hashMapOf<String, String>()
-
-    open var tag = "解析Spacing"
-
-
-    override fun parse(rootKey: String, jsonObject: JSONObject) {
-        println("开始解析${rootKey}类型Tokens")
-        for (itemKey in jsonObject.keys()) {
-            val key = itemKey as String
-            val value = jsonObject.get(key)
-            val names = (value as JSONObject).names()
-            if (names.length() == 2 && names.getString(0).equals("type") || names.getString(0).equals("value")) {
-                val sizingValue = value.getString("value")
-                result["${rootKey}_${key}"] = sizingValue
-            } else {
-                parse("${rootKey}_$key", value)
-            }
-        }
-
-
-    }
-
-
-    /**
-     * 生成token文件
-     */
-    override fun generateTokenFile(destFilePath: String?) {
-
-        if (destFilePath.isNullOrEmpty()) {
-            logT(tag, "保存路径为空---return")
-            return
-        }
-        logT(tag, "开始生成Spacing Token文件")
-        Log.t(tag, "token文件输出路径:${destFilePath}")
-
-        val file = File(destFilePath)
-        val resultData = FileUtil.parseAndMergeOldData(tag, file, CommonXmlParserHandler(XmlParserDataCategory.dimen), result)
-            .sortedBy {
-                it.second.toInt()
-            }
-            .map {
-                it.first to it.second +"px"
-            }
-        FileUtil.writeTokens(file, XmlParserDataCategory.dimen, resultData)
-
-        logT(tag, "解析生成文件完成-----")
-
-    }
-
-
-}
-

+ 0 - 10
lib_material_tokens/src/result/alias_border_radius.xml

@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <dimen name="radius_fullround_btn_xs">@dimen/border_radius_10</dimen>
-    <dimen name="radius_fullround_btn_s">@dimen/border_radius_12</dimen>
-    <dimen name="radius_fullround_btn_m">@dimen/border_radius_16</dimen>
-    <dimen name="radius_base_s">@dimen/border_radius_2</dimen>
-    <dimen name="radius_fullround_btn_l">@dimen/border_radius_20</dimen>
-    <dimen name="radius_base_m">@dimen/border_radius_4</dimen>
-    <dimen name="radius_base_l">@dimen/border_radius_8</dimen>
-</resources>

+ 0 - 147
lib_material_tokens/src/result/alias_color.xml

@@ -1,147 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <color name="color_sys_text_neutral_lv3">@color/color_light_gray_7</color>
-    <color name="color_sys_text_neutral_lv2">@color/color_light_gray_9</color>
-    <color name="color_sys_text_neutral_lv1">@color/color_light_gray_11</color>
-    <color name="color_sys_text_neutral_dis">@color/color_light_gray_6</color>
-    <color name="color_sys_text_error_norm">@color/color_light_red_6</color>
-    <color name="color_sys_text_brand_norm">@color/color_light_navy_blue_6</color>
-    <color name="color_sys_text_brand_hov">@color/color_light_navy_blue_5</color>
-    <color name="color_sys_text_brand_dis">@color/color_light_navy_blue_3</color>
-    <color name="color_sys_text_brand_act">@color/color_light_navy_blue_7</color>
-    <color name="color_sys_text_anti_norm">@color/color_light_gray_1</color>
-    <color name="color_sys_text_anti_dis">@color/color_light_gray_2</color>
-    <color name="color_sys_text_accent_norm">@color/color_light_blue_6</color>
-    <color name="color_sys_text_accent_hov">@color/color_light_blue_5</color>
-    <color name="color_sys_text_accent_dis">@color/color_light_blue_3</color>
-    <color name="color_sys_text_accent_act">@color/color_light_blue_7</color>
-    <color name="color_sys_layout_state_warning">@color/color_light_gold_2</color>
-    <color name="color_sys_layout_state_note">@color/color_light_blue_1</color>
-    <color name="color_sys_layout_state_info">@color/color_light_blue_2</color>
-    <color name="color_sys_layout_state_error">@color/color_light_red_2</color>
-    <color name="color_sys_layout_mg">@color/color_light_gray_2</color>
-    <color name="color_sys_layout_fg_light_dis">@color/color_light_gray_3</color>
-    <color name="color_sys_layout_fg_light">@color/color_light_gray_1</color>
-    <color name="color_sys_layout_fg_dark">@color/color_light_gray_4</color>
-    <color name="color_sys_layout_divider">@color/rgba(color_light_gray_12, 0_1)</color>
-    <color name="color_sys_layout_dark_bg">@color/color_light_gray_10</color>
-    <color name="color_sys_layout_brand">@color/color_light_navy_blue_6</color>
-    <color name="color_sys_layout_bg_view">@color/color_light_gray_5</color>
-    <color name="color_sys_layout_bg_tabbar">@color/color_light_gray_4</color>
-    <color name="color_sys_layout_bg_home">@color/color_light_gray_1</color>
-    <color name="color_sys_layout_anti">@color/color_light_gray_1</color>
-    <color name="color_sys_layout_accent">@color/color_light_blue_6</color>
-    <color name="color_sys_border_neutral_lv3">@color/color_light_gray_3</color>
-    <color name="color_sys_border_neutral_lv2">@color/color_light_gray_4</color>
-    <color name="color_sys_border_neutral_lv1">@color/color_light_gray_5</color>
-    <color name="color_sys_border_error">@color/color_light_red_6</color>
-    <color name="color_sys_border_accent_lv2">@color/color_light_blue_4</color>
-    <color name="color_sys_border_accent_lv1">@color/color_light_blue_6</color>
-    <color name="color_slider_track_norm">@color/color_light_gray_5</color>
-    <color name="color_slider_track_dis">@color/color_light_gray_4</color>
-    <color name="color_slider_track_filled_norm">@color/color_light_blue_6</color>
-    <color name="color_slider_track_filled_dis">@color/color_light_gray_6</color>
-    <color name="color_slider_knob_norm">@color/color_light_blue_6</color>
-    <color name="color_slider_knob_dis">@color/color_light_gray_6</color>
-    <color name="color_slider_knob_border">@color/color_light_gray_1</color>
-    <color name="color_item_state_sel_border_lv3">@color/color_sys_border_neutral_lv1</color>
-    <color name="color_item_state_sel_bg_lv3">@color/rgba(color_light_gray_5, 0_6)</color>
-    <color name="color_item_state_sel_bg_lv2">@color/color_light_gray_4</color>
-    <color name="color_item_state_sel_bg_lv1">@color/rgba(color_light_blue_6,0_1)</color>
-    <color name="color_item_state_hov_bg">@color/color_light_gray_3</color>
-    <color name="color_icon_pdf_tools_purple">@color/color_light_purple_5</color>
-    <color name="color_icon_pdf_tools_pink">@color/color_light_pink_5</color>
-    <color name="color_icon_pdf_tools_orange">@color/color_light_orange_5</color>
-    <color name="color_icon_pdf_tools_cyan">@color/color_light_cyan_5</color>
-    <color name="color_icon_pdf_tools_blue">@color/color_light_blue_5</color>
-    <color name="color_icon_file_pdf">@color/color_light_red_6</color>
-    <color name="color_icon_file_image">@color/color_light_navy_blue_4</color>
-    <color name="color_icon_checkbox_radio_sel_fill">@color/color_icon_base_anti_norm</color>
-    <color name="color_icon_checkbox_radio_sel_border_radio">@color/color_sys_border_accent_lv1</color>
-    <color name="color_icon_checkbox_radio_sel_bg">@color/color_sys_layout_accent</color>
-    <color name="color_icon_checkbox_radio_norm_border">@color/color_sys_border_neutral_lv2</color>
-    <color name="color_icon_checkbox_radio_norm_bg">@color/color_sys_layout_fg_light</color>
-    <color name="color_icon_checkbox_radio_hov_border">@color/color_sys_border_accent_lv2</color>
-    <color name="color_icon_checkbox_radio_hov_bg">@color/color_sys_layout_fg_light</color>
-    <color name="color_icon_checkbox_radio_dis_fill">@color/color_icon_base_neutral_dis</color>
-    <color name="color_icon_checkbox_radio_dis_border">@color/color_sys_border_neutral_lv2</color>
-    <color name="color_icon_checkbox_radio_dis_bg">@color/color_sys_layout_fg_light_dis</color>
-    <color name="color_icon_base_state_warning">@color/color_light_gold_6</color>
-    <color name="color_icon_base_state_success">@color/color_light_green_6</color>
-    <color name="color_icon_base_state_info">@color/color_light_blue_6</color>
-    <color name="color_icon_base_state_error">@color/color_light_red_6</color>
-    <color name="color_icon_base_neutral_sel">@color/color_light_gray_11</color>
-    <color name="color_icon_base_neutral_norm_lv3">@color/color_light_gray_5</color>
-    <color name="color_icon_base_neutral_norm_lv2">@color/color_light_gray_7</color>
-    <color name="color_icon_base_neutral_norm_lv1">@color/color_light_gray_9</color>
-    <color name="color_icon_base_neutral_dis">@color/color_light_gray_6</color>
-    <color name="color_icon_base_brand">@color/color_light_navy_blue_6</color>
-    <color name="color_icon_base_anti_norm">@color/color_light_gray_1</color>
-    <color name="color_icon_base_anti_dis">@color/color_light_gray_2</color>
-    <color name="color_icon_base_accent">@color/color_light_blue_6</color>
-    <color name="color_icon_arrow_gray_dis">@color/color_icon_base_neutral_dis</color>
-    <color name="color_icon_arrow_gray_def">@color/color_light_gray_7</color>
-    <color name="color_icon_arrow_gray_act">@color/color_light_gray_8</color>
-    <color name="color_icon_arrow_anti_dis">@color/color_icon_base_anti_dis</color>
-    <color name="color_icon_arrow_anti_def">@color/color_icon_base_anti_norm</color>
-    <color name="color_icon_arrow_accent_norm">@color/color_icon_base_accent</color>
-    <color name="color_icon_arrow_accent_hov">@color/color_light_blue_5</color>
-    <color name="color_icon_arrow_accent_dis">@color/color_light_blue_3</color>
-    <color name="color_icon_arrow_accent_act">@color/color_light_blue_7</color>
-    <color name="color_field_text_tips_error">@color/color_sys_text_error_norm</color>
-    <color name="color_field_text_tips">@color/color_sys_text_neutral_lv3</color>
-    <color name="color_field_text_placeholder">@color/color_sys_text_neutral_lv3</color>
-    <color name="color_field_text_dis">@color/color_sys_text_neutral_dis</color>
-    <color name="color_field_text_act">@color/color_sys_text_neutral_lv1</color>
-    <color name="color_field_border_sel">@color/color_light_blue_3</color>
-    <color name="color_field_border_norm">@color/color_sys_border_neutral_lv2</color>
-    <color name="color_field_border_hov">@color/color_sys_border_accent_lv2</color>
-    <color name="color_field_border_focus">@color/color_sys_border_accent_lv1</color>
-    <color name="color_field_border_error">@color/color_sys_border_error</color>
-    <color name="color_field_border_dis">@color/color_sys_border_neutral_lv2</color>
-    <color name="color_field_bg_dis">@color/color_sys_layout_fg_light_dis</color>
-    <color name="color_field_bg_def">@color/color_sys_layout_fg_light</color>
-    <color name="color_field_bg_text_sel">@color/color_light_blue_3</color>
-    <color name="color_btn_upgrade_text_dis">@color/color_sys_text_anti_dis</color>
-    <color name="color_btn_upgrade_text_def">@color/color_sys_text_anti_norm</color>
-    <color name="color_btn_upgrade_bg_norm">@color/color_light_orange_6</color>
-    <color name="color_btn_upgrade_bg_hov">@color/color_light_orange_5</color>
-    <color name="color_btn_upgrade_bg_dis">@color/color_light_orange_3</color>
-    <color name="color_btn_upgrade_bg_act">@color/color_light_orange_7</color>
-    <color name="color_btn_sec_text_dis">@color/color_sys_text_neutral_dis</color>
-    <color name="color_btn_sec_text_def">@color/color_sys_text_neutral_lv1</color>
-    <color name="color_btn_sec_border_color">@color/color_light_gray_4</color>
-    <color name="color_btn_sec_bg_norm">@color/color_light_gray_1</color>
-    <color name="color_btn_sec_bg_hov">@color/color_light_gray_3</color>
-    <color name="color_btn_sec_bg_dis">@color/color_light_gray_3</color>
-    <color name="color_btn_sec_bg_act">@color/color_light_gray_4</color>
-    <color name="color_btn_link_text_norm">@color/color_sys_text_accent_norm</color>
-    <color name="color_btn_link_text_hov">@color/color_sys_text_accent_hov</color>
-    <color name="color_btn_link_text_dis">@color/color_sys_text_accent_dis</color>
-    <color name="color_btn_link_text_act">@color/color_sys_text_accent_act</color>
-    <color name="color_btn_icon_fill_bg_norm">@color/color_light_gray_3</color>
-    <color name="color_btn_icon_fill_bg_hov">@color/color_light_gray_4</color>
-    <color name="color_btn_icon_fill_bg_dis">@color/color_light_gray_3</color>
-    <color name="color_btn_icon_fill_bg_act">@color/color_light_gray_5</color>
-    <color name="color_btn_ghost_text_norm">@color/color_sys_text_brand_norm</color>
-    <color name="color_btn_ghost_text_hov">@color/color_sys_text_brand_hov</color>
-    <color name="color_btn_ghost_text_dis">@color/color_sys_text_brand_dis</color>
-    <color name="color_btn_ghost_text_act">@color/color_sys_text_brand_act</color>
-    <color name="color_btn_ghost_border_norm">@color/color_light_navy_blue_6</color>
-    <color name="color_btn_ghost_border_hov">@color/color_light_navy_blue_5</color>
-    <color name="color_btn_ghost_border_dis">@color/color_light_navy_blue_3</color>
-    <color name="color_btn_ghost_border_act">@color/color_light_navy_blue_7</color>
-    <color name="color_btn_cta_text_dis">@color/color_sys_text_anti_dis</color>
-    <color name="color_btn_cta_text_def">@color/color_sys_text_anti_norm</color>
-    <color name="color_btn_cta_bg_norm">@color/color_light_blue_6</color>
-    <color name="color_btn_cta_bg_hov">@color/color_light_blue_5</color>
-    <color name="color_btn_cta_bg_dis">@color/color_light_blue_2</color>
-    <color name="color_btn_cta_bg_act">@color/color_light_blue_7</color>
-    <color name="color_btn_brand_text_dis">@color/color_sys_text_anti_dis</color>
-    <color name="color_btn_brand_text_def">@color/color_sys_text_anti_norm</color>
-    <color name="color_btn_brand_bg_norm">@color/color_light_navy_blue_6</color>
-    <color name="color_btn_brand_bg_hov">@color/color_light_navy_blue_5</color>
-    <color name="color_btn_brand_bg_dis">@color/color_light_navy_blue_3</color>
-    <color name="color_btn_brand_bg_act">@color/color_light_navy_blue_7</color>
-    <color name="color_badge_red_bg">@color/color_light_red_6</color>
-</resources>

+ 0 - 20
lib_material_tokens/src/result/alias_spacing.xml

@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <dimen name="spacing_base_element_0">@dimen/spacing_0</dimen>
-    <dimen name="spacing_base_element_1">@dimen/spacing_1</dimen>
-    <dimen name="spacing_base_element_12">@dimen/spacing_12</dimen>
-    <dimen name="spacing_base_element_16">@dimen/spacing_16</dimen>
-    <dimen name="spacing_base_element_2">@dimen/spacing_2</dimen>
-    <dimen name="spacing_base_element_24">@dimen/spacing_24</dimen>
-    <dimen name="spacing_base_element_4">@dimen/spacing_4</dimen>
-    <dimen name="spacing_base_element_6">@dimen/spacing_6</dimen>
-    <dimen name="spacing_base_element_8">@dimen/spacing_8</dimen>
-    <dimen name="spacing_base_module_24">@dimen/spacing_24</dimen>
-    <dimen name="spacing_base_module_32">@dimen/spacing_32</dimen>
-    <dimen name="spacing_tree_32">@dimen/spacing_32</dimen>
-    <dimen name="spacing_tree_40">@dimen/spacing_40</dimen>
-    <dimen name="spacing_tree_56">@dimen/spacing_56</dimen>
-    <dimen name="spacing_tree_64">@dimen/spacing_64</dimen>
-    <dimen name="spacing_tree_80">@dimen/spacing_80</dimen>
-    <dimen name="spacing_tree_88">@dimen/spacing_88</dimen>
-</resources>

+ 0 - 11
lib_material_tokens/src/result/global_border_radius.xml

@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <dimen name="border_radius_2">2dp</dimen>
-    <dimen name="border_radius_4">4dp</dimen>
-    <dimen name="border_radius_6">6dp</dimen>
-    <dimen name="border_radius_8">8dp</dimen>
-    <dimen name="border_radius_10">10dp</dimen>
-    <dimen name="border_radius_12">12dp</dimen>
-    <dimen name="border_radius_16">16dp</dimen>
-    <dimen name="border_radius_20">20dp</dimen>
-</resources>

+ 0 - 5
lib_material_tokens/src/result/global_border_width.xml

@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <dimen name="border_width_1">1dp</dimen>
-    <dimen name="border_width_2">2dp</dimen>
-</resources>

+ 0 - 207
lib_material_tokens/src/result/global_colors.xml

@@ -1,207 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <color name="color_light_red_9">#760920</color>
-    <color name="color_light_red_8">#A01730</color>
-    <color name="color_light_red_7">#C92C43</color>
-    <color name="color_light_red_6">#F3465B</color>
-    <color name="color_light_red_5">#F56571</color>
-    <color name="color_light_red_4">#F8858B</color>
-    <color name="color_light_red_3">#FAA5A7</color>
-    <color name="color_light_red_2">#FDC7C6</color>
-    <color name="color_light_red_10">#4D0013</color>
-    <color name="color_light_red_1">#FFE9E8</color>
-    <color name="color_light_purple_9">#1B0677</color>
-    <color name="color_light_purple_8">#3011A2</color>
-    <color name="color_light_purple_7">#4B20CD</color>
-    <color name="color_light_purple_6">#6C33F8</color>
-    <color name="color_light_purple_5">#8A56F9</color>
-    <color name="color_light_purple_4">#A77AFB</color>
-    <color name="color_light_purple_3">#C29EFC</color>
-    <color name="color_light_purple_2">#DBC3FE</color>
-    <color name="color_light_purple_10">#0B004D</color>
-    <color name="color_light_purple_1">#F2E8FF</color>
-    <color name="color_light_pink_9">#770764</color>
-    <color name="color_light_pink_8">#A11285</color>
-    <color name="color_light_pink_7">#CC22A4</color>
-    <color name="color_light_pink_6">#F637C4</color>
-    <color name="color_light_pink_5">#F859C8</color>
-    <color name="color_light_pink_4">#FA7CD0</color>
-    <color name="color_light_pink_3">#FBA0DA</color>
-    <color name="color_light_pink_2">#FDC4E6</color>
-    <color name="color_light_pink_10">#4D0042</color>
-    <color name="color_light_pink_1">#FFE8F5</color>
-    <color name="color_light_orange_9">#792A05</color>
-    <color name="color_light_orange_8">#A6440F</color>
-    <color name="color_light_orange_7">#D2621C</color>
-    <color name="color_light_orange_6">#FF852E</color>
-    <color name="color_light_orange_5">#FFA153</color>
-    <color name="color_light_orange_4">#FFB978</color>
-    <color name="color_light_orange_3">#FFD09E</color>
-    <color name="color_light_orange_2">#FFE4C3</color>
-    <color name="color_light_orange_10">#4D1600</color>
-    <color name="color_light_orange_1">#FFF5E8</color>
-    <color name="color_light_navy_blue_9">#081B52</color>
-    <color name="color_light_navy_blue_8">#112557</color>
-    <color name="color_light_navy_blue_7">#1C305D</color>
-    <color name="color_light_navy_blue_6">#273C62</color>
-    <color name="color_light_navy_blue_5">#415A81</color>
-    <color name="color_light_navy_blue_4">#617CA1</color>
-    <color name="color_light_navy_blue_3">#88A1C0</color>
-    <color name="color_light_navy_blue_2">#B5C9E0</color>
-    <color name="color_light_navy_blue_10">#00114D</color>
-    <color name="color_light_navy_blue_1">#E8F4FF</color>
-    <color name="color_light_green_9">#036F56</color>
-    <color name="color_light_green_8">#09916D</color>
-    <color name="color_light_green_7">#10B382</color>
-    <color name="color_light_green_6">#1AD598</color>
-    <color name="color_light_green_5">#3EDDA3</color>
-    <color name="color_light_green_4">#64E6B2</color>
-    <color name="color_light_green_3">#8EEEC4</color>
-    <color name="color_light_green_2">#BAF7DA</color>
-    <color name="color_light_green_10">#004D3D</color>
-    <color name="color_light_green_1">#E8FFF4</color>
-    <color name="color_light_gray_9">#616469</color>
-    <color name="color_light_gray_8">#7C8085</color>
-    <color name="color_light_gray_7">#94989C</color>
-    <color name="color_light_gray_6">#B1B3B8</color>
-    <color name="color_light_gray_5">#CED0D4</color>
-    <color name="color_light_gray_4">#DFE1E5</color>
-    <color name="color_light_gray_3">#EDEEF0</color>
-    <color name="color_light_gray_2">#F7F8FA</color>
-    <color name="color_light_gray_12">#000000</color>
-    <color name="color_light_gray_11">#252629</color>
-    <color name="color_light_gray_10">#36383B</color>
-    <color name="color_light_gray_1">#ffffff</color>
-    <color name="color_light_gold_9">#794304</color>
-    <color name="color_light_gold_8">#A6630C</color>
-    <color name="color_light_gold_7">#D28717</color>
-    <color name="color_light_gold_6">#FFAF25</color>
-    <color name="color_light_gold_5">#FFC34C</color>
-    <color name="color_light_gold_4">#FFD573</color>
-    <color name="color_light_gold_3">#FFE49A</color>
-    <color name="color_light_gold_2">#FFF1C1</color>
-    <color name="color_light_gold_10">#4D2600</color>
-    <color name="color_light_gold_1">#FFFAE8</color>
-    <color name="color_light_cyan_9">#03616C</color>
-    <color name="color_light_cyan_8">#07828B</color>
-    <color name="color_light_cyan_7">#0DA5AA</color>
-    <color name="color_light_cyan_6">#14C9C9</color>
-    <color name="color_light_cyan_5">#37D4CF</color>
-    <color name="color_light_cyan_4">#5EDFD6</color>
-    <color name="color_light_cyan_3">#89E9E0</color>
-    <color name="color_light_cyan_2">#B7F4EC</color>
-    <color name="color_light_cyan_10">#03616C</color>
-    <color name="color_light_cyan_1">#E8FFFB</color>
-    <color name="color_light_blue_9">#032576</color>
-    <color name="color_light_blue_8">#083aa0</color>
-    <color name="color_light_blue_7">#0e53ca</color>
-    <color name="color_light_blue_6">#1770F4</color>
-    <color name="color_light_blue_5">#3f8ff6</color>
-    <color name="color_light_blue_4">#68acf8</color>
-    <color name="color_light_blue_3">#92C6FB</color>
-    <color name="color_light_blue_2">#BDDFFD</color>
-    <color name="color_light_blue_10">#00144d</color>
-    <color name="color_light_blue_1">#E8F5FF</color>
-    <color name="color_dark_red_9">#f8bfc0</color>
-    <color name="color_dark_red_8">#f3959a</color>
-    <color name="color_dark_red_7">#e76973</color>
-    <color name="color_dark_red_6">#d13e50</color>
-    <color name="color_dark_red_5">#a53442</color>
-    <color name="color_dark_red_4">#782a34</color>
-    <color name="color_dark_red_3">#562229</color>
-    <color name="color_dark_red_2">#411b21</color>
-    <color name="color_dark_red_10">#fae9e9</color>
-    <color name="color_dark_red_1">#291519</color>
-    <color name="color_dark_purple_9">#c8abf8</color>
-    <color name="color_dark_purple_8">#a981f3</color>
-    <color name="color_dark_purple_7">#8457e8</color>
-    <color name="color_dark_purple_6">#5f2ed6</color>
-    <color name="color_dark_purple_5">#4d28a8</color>
-    <color name="color_dark_purple_4">#3b217b</color>
-    <color name="color_dark_purple_3">#2e1d58</color>
-    <color name="color_dark_purple_2">#221743</color>
-    <color name="color_dark_purple_10">#e5d5fa</color>
-    <color name="color_dark_purple_1">#18132b</color>
-    <color name="color_dark_pink_9">#f8aedd</color>
-    <color name="color_dark_pink_8">#f384ce</color>
-    <color name="color_dark_pink_7">#e759bd</color>
-    <color name="color_dark_pink_6">#d432aa</color>
-    <color name="color_dark_pink_5">#a72a86</color>
-    <color name="color_dark_pink_4">#792363</color>
-    <color name="color_dark_pink_3">#571e49</color>
-    <color name="color_dark_pink_2">#421739</color>
-    <color name="color_dark_pink_10">#fad7ed</color>
-    <color name="color_dark_pink_1">#291326</color>
-    <color name="color_dark_orange_9">#f8cfa4</color>
-    <color name="color_dark_orange_8">#f3b57b</color>
-    <color name="color_dark_orange_7">#e79450</color>
-    <color name="color_dark_orange_6">#dc742a</color>
-    <color name="color_dark_orange_5">#ac5d25</color>
-    <color name="color_dark_orange_4">#7d4620</color>
-    <color name="color_dark_orange_3">#5a351c</color>
-    <color name="color_dark_orange_2">#452716</color>
-    <color name="color_dark_orange_10">#fae6cd</color>
-    <color name="color_dark_orange_1">#2b1b13</color>
-    <color name="color_dark_navy_blue_9">#6d93d5</color>
-    <color name="color_dark_navy_blue_8">#4570c6</color>
-    <color name="color_dark_navy_blue_7">#234eb1</color>
-    <color name="color_dark_navy_blue_6">#082f9d</color>
-    <color name="color_dark_navy_blue_5">#0b287d</color>
-    <color name="color_dark_navy_blue_4">#0d225c</color>
-    <color name="color_dark_navy_blue_3">#0f1d44</color>
-    <color name="color_dark_navy_blue_2">#0e1733</color>
-    <color name="color_dark_navy_blue_10">#98b7e4</color>
-    <color name="color_dark_navy_blue_1">#101321</color>
-    <color name="color_dark_green_9">#93f5cb</color>
-    <color name="color_dark_green_8">#65e5b2</color>
-    <color name="color_dark_green_7">#3cce98</color>
-    <color name="color_dark_green_6">#19b884</color>
-    <color name="color_dark_green_5">#18916a</color>
-    <color name="color_dark_green_4">#166a4f</color>
-    <color name="color_dark_green_3">#154d3c</color>
-    <color name="color_dark_green_2">#113a2f</color>
-    <color name="color_dark_green_10">#bffade</color>
-    <color name="color_dark_green_1">#112520</color>
-    <color name="color_dark_gray_9">#C5C5C5</color>
-    <color name="color_dark_gray_8">#ABABAC</color>
-    <color name="color_dark_gray_7">#929293</color>
-    <color name="color_dark_gray_6">#78787A</color>
-    <color name="color_dark_gray_5">#5F5F60</color>
-    <color name="color_dark_gray_4">#464647</color>
-    <color name="color_dark_gray_3">#2C2C2E</color>
-    <color name="color_dark_gray_2">#1D1D1F</color>
-    <color name="color_dark_gray_12">#ffffff</color>
-    <color name="color_dark_gray_11">#F6F6F6</color>
-    <color name="color_dark_gray_10">#DFDFDF</color>
-    <color name="color_dark_gray_1">#131314</color>
-    <color name="color_dark_gold_9">#f8e09d</color>
-    <color name="color_dark_gold_8">#f3cc73</color>
-    <color name="color_dark_gold_7">#e7b249</color>
-    <color name="color_dark_gold_6">#dc9822</color>
-    <color name="color_dark_gold_5">#ac781f</color>
-    <color name="color_dark_gold_4">#7d591c</color>
-    <color name="color_dark_gold_3">#5a4219</color>
-    <color name="color_dark_gold_2">#453115</color>
-    <color name="color_dark_gold_10">#faefc5</color>
-    <color name="color_dark_gold_1">#2b2012</color>
-    <color name="color_dark_cyan_9">#87e9e0</color>
-    <color name="color_dark_cyan_8">#5bd9d0</color>
-    <color name="color_dark_cyan_7">#34c3be</color>
-    <color name="color_dark_cyan_6">#14aeae</color>
-    <color name="color_dark_cyan_5">#14898a</color>
-    <color name="color_dark_cyan_4">#136565</color>
-    <color name="color_dark_cyan_3">#134a4a</color>
-    <color name="color_dark_cyan_2">#103638</color>
-    <color name="color_dark_cyan_10">#b8f7f0</color>
-    <color name="color_dark_cyan_1">#102224</color>
-    <color name="color_dark_blue_9">#8dc3f8</color>
-    <color name="color_dark_blue_8">#65a7f3</color>
-    <color name="color_dark_blue_7">#3c86e8</color>
-    <color name="color_dark_blue_6">#1662d2</color>
-    <color name="color_dark_blue_5">#164fa6</color>
-    <color name="color_dark_blue_4">#153d79</color>
-    <color name="color_dark_blue_3">#142f57</color>
-    <color name="color_dark_blue_2">#102343</color>
-    <color name="color_dark_blue_10">#b7dbfa</color>
-    <color name="color_dark_blue_1">#10192a</color>
-</resources>

+ 0 - 46
lib_material_tokens/src/result/global_sizing.xml

@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <dimen name="sizing_1">1px</dimen>
-    <dimen name="sizing_4">4px</dimen>
-    <dimen name="sizing_8">8px</dimen>
-    <dimen name="sizing_10">10px</dimen>
-    <dimen name="sizing_12">12px</dimen>
-    <dimen name="sizing_14">14px</dimen>
-    <dimen name="sizing_16">16px</dimen>
-    <dimen name="sizing_18">18px</dimen>
-    <dimen name="sizing_20">20px</dimen>
-    <dimen name="sizing_21">21px</dimen>
-    <dimen name="sizing_22">22px</dimen>
-    <dimen name="sizing_24">24px</dimen>
-    <dimen name="sizing_26">26px</dimen>
-    <dimen name="sizing_28">28px</dimen>
-    <dimen name="sizing_30">30px</dimen>
-    <dimen name="sizing_32">32px</dimen>
-    <dimen name="sizing_34">34px</dimen>
-    <dimen name="sizing_36">36px</dimen>
-    <dimen name="sizing_40">40px</dimen>
-    <dimen name="sizing_44">44px</dimen>
-    <dimen name="sizing_48">48px</dimen>
-    <dimen name="sizing_50">50px</dimen>
-    <dimen name="sizing_58">58px</dimen>
-    <dimen name="sizing_60">60px</dimen>
-    <dimen name="sizing_64">64px</dimen>
-    <dimen name="sizing_68">68px</dimen>
-    <dimen name="sizing_72">72px</dimen>
-    <dimen name="sizing_110">110px</dimen>
-    <dimen name="sizing_116">116px</dimen>
-    <dimen name="sizing_120">120px</dimen>
-    <dimen name="sizing_132">132px</dimen>
-    <dimen name="sizing_139">139px</dimen>
-    <dimen name="sizing_180">180px</dimen>
-    <dimen name="sizing_200">202px</dimen>
-    <dimen name="sizing_228">228px</dimen>
-    <dimen name="sizing_260">260px</dimen>
-    <dimen name="sizing_432">432px</dimen>
-    <dimen name="sizing_468">468px</dimen>
-    <dimen name="sizing_512">512px</dimen>
-    <dimen name="sizing_586">586px</dimen>
-    <dimen name="sizing_720">720px</dimen>
-    <dimen name="sizing_primary_sizing_1">1234px</dimen>
-    <dimen name="sizing_primary_sizing_2">4321px</dimen>
-</resources>

+ 0 - 20
lib_material_tokens/src/result/global_spacing.xml

@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <dimen name="spacing_0">0px</dimen>
-    <dimen name="spacing_1">1px</dimen>
-    <dimen name="spacing_2">2px</dimen>
-    <dimen name="spacing_4">4px</dimen>
-    <dimen name="spacing_5">5px</dimen>
-    <dimen name="spacing_6">6px</dimen>
-    <dimen name="spacing_8">8px</dimen>
-    <dimen name="spacing_10">10px</dimen>
-    <dimen name="spacing_12">12px</dimen>
-    <dimen name="spacing_16">16px</dimen>
-    <dimen name="spacing_24">24px</dimen>
-    <dimen name="spacing_32">32px</dimen>
-    <dimen name="spacing_40">40px</dimen>
-    <dimen name="spacing_56">56px</dimen>
-    <dimen name="spacing_64">64px</dimen>
-    <dimen name="spacing_80">80px</dimen>
-    <dimen name="spacing_88">88px</dimen>
-</resources>

+ 0 - 938
lib_material_tokens/src/tokens/alias-light.json

@@ -1,938 +0,0 @@
-{
-  "spacing": {
-    "base": {
-      "element": {
-        "0": {
-          "value": "{spacing.0}",
-          "type": "spacing"
-        },
-        "1": {
-          "value": "{spacing.1}",
-          "type": "spacing"
-        },
-        "2": {
-          "value": "{spacing.2}",
-          "type": "spacing"
-        },
-        "4": {
-          "value": "{spacing.4}",
-          "type": "spacing"
-        },
-        "6": {
-          "value": "{spacing.6}",
-          "type": "spacing"
-        },
-        "8": {
-          "value": "{spacing.8}",
-          "type": "spacing"
-        },
-        "12": {
-          "value": "{spacing.12}",
-          "type": "spacing"
-        },
-        "16": {
-          "value": "{spacing.16}",
-          "type": "spacing"
-        },
-        "24": {
-          "value": "{spacing.24}",
-          "type": "spacing"
-        }
-      },
-      "module": {
-        "24": {
-          "value": "{spacing.24}",
-          "type": "spacing"
-        },
-        "32": {
-          "value": "{spacing.32}",
-          "type": "spacing"
-        }
-      }
-    },
-    "tree": {
-      "32": {
-        "value": "{spacing.32}",
-        "type": "spacing"
-      },
-      "40": {
-        "value": "{spacing.40}",
-        "type": "spacing"
-      },
-      "56": {
-        "value": "{spacing.56}",
-        "type": "spacing"
-      },
-      "64": {
-        "value": "{spacing.64}",
-        "type": "spacing"
-      },
-      "80": {
-        "value": "{spacing.80}",
-        "type": "spacing"
-      },
-      "88": {
-        "value": "{spacing.88}",
-        "type": "spacing"
-      }
-    }
-  },
-  "color": {
-    "btn": {
-      "cta": {
-        "bg": {
-          "norm": {
-            "value": "{color.light.blue.6}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.blue.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.blue.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.blue.2}",
-            "type": "color"
-          }
-        },
-        "text": {
-          "def": {
-            "value": "{color.sys.text.anti.norm}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.sys.text.anti.dis}",
-            "type": "color"
-          }
-        }
-      },
-      "brand": {
-        "bg": {
-          "norm": {
-            "value": "{color.light.navy-blue.6}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.navy-blue.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.navy-blue.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.navy-blue.3}",
-            "type": "color"
-          }
-        },
-        "text": {
-          "def": {
-            "value": "{color.sys.text.anti.norm}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.sys.text.anti.dis}",
-            "type": "color"
-          }
-        }
-      },
-      "sec": {
-        "border-color": {
-          "value": "{color.light.gray.4}",
-          "type": "color"
-        },
-        "bg": {
-          "norm": {
-            "value": "{color.light.gray.1}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.gray.3}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.gray.4}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.gray.3}",
-            "type": "color"
-          }
-        },
-        "text": {
-          "def": {
-            "value": "{color.sys.text.neutral.lv1}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.sys.text.neutral.dis}",
-            "type": "color"
-          }
-        }
-      },
-      "icon-fill": {
-        "bg": {
-          "norm": {
-            "value": "{color.light.gray.3}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.gray.4}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.gray.5}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.gray.3}",
-            "type": "color"
-          }
-        }
-      },
-      "ghost": {
-        "border": {
-          "norm": {
-            "value": "{color.light.navy-blue.6}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.navy-blue.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.navy-blue.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.navy-blue.3}",
-            "type": "color"
-          }
-        },
-        "text": {
-          "norm": {
-            "value": "{color.sys.text.brand.norm}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.sys.text.brand.hov}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.sys.text.brand.act}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.sys.text.brand.dis}",
-            "type": "color"
-          }
-        }
-      },
-      "link": {
-        "text": {
-          "norm": {
-            "value": "{color.sys.text.accent.norm}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.sys.text.accent.hov}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.sys.text.accent.act}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.sys.text.accent.dis}",
-            "type": "color"
-          }
-        }
-      },
-      "upgrade": {
-        "bg": {
-          "norm": {
-            "value": "{color.light.orange.6}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.orange.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.orange.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.orange.3}",
-            "type": "color"
-          }
-        },
-        "text": {
-          "def": {
-            "value": "{color.sys.text.anti.norm}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.sys.text.anti.dis}",
-            "type": "color"
-          }
-        }
-      }
-    },
-    "sys": {
-      "text": {
-        "anti": {
-          "norm": {
-            "value": "{color.light.gray.1}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.gray.2}",
-            "type": "color"
-          }
-        },
-        "accent": {
-          "norm": {
-            "value": "{color.light.blue.6}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.blue.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.blue.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.blue.3}",
-            "type": "color"
-          }
-        },
-        "neutral": {
-          "lv1": {
-            "value": "{color.light.gray.11}",
-            "type": "color"
-          },
-          "lv2": {
-            "value": "{color.light.gray.9}",
-            "type": "color"
-          },
-          "lv3": {
-            "value": "{color.light.gray.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.gray.6}",
-            "type": "color"
-          }
-        },
-        "brand": {
-          "norm": {
-            "value": "{color.light.navy-blue.6}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.navy-blue.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.navy-blue.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.navy-blue.3}",
-            "type": "color"
-          }
-        },
-        "error": {
-          "norm": {
-            "value": "{color.light.red.6}",
-            "type": "color"
-          }
-        }
-      },
-      "border": {
-        "error": {
-          "value": "{color.light.red.6}",
-          "type": "color"
-        },
-        "neutral": {
-          "lv1": {
-            "value": "{color.light.gray.5}",
-            "type": "color"
-          },
-          "lv2": {
-            "value": "{color.light.gray.4}",
-            "type": "color"
-          },
-          "lv3": {
-            "value": "{color.light.gray.3}",
-            "type": "color"
-          }
-        },
-        "accent": {
-          "lv1": {
-            "value": "{color.light.blue.6}",
-            "type": "color"
-          },
-          "lv2": {
-            "value": "{color.light.blue.4}",
-            "type": "color"
-          }
-        }
-      },
-      "layout": {
-        "bg": {
-          "home": {
-            "value": "{color.light.gray.1}",
-            "type": "color"
-          },
-          "view": {
-            "value": "{color.light.gray.5}",
-            "type": "color"
-          },
-          "tabbar": {
-            "value": "{color.light.gray.4}",
-            "type": "color"
-          }
-        },
-        "mg": {
-          "value": "{color.light.gray.2}",
-          "type": "color"
-        },
-        "fg": {
-          "light": {
-            "value": "{color.light.gray.1}",
-            "type": "color"
-          },
-          "light-dis": {
-            "value": "{color.light.gray.3}",
-            "type": "color"
-          },
-          "dark": {
-            "value": "{color.light.gray.4}",
-            "type": "color"
-          }
-        },
-        "dark": {
-          "bg": {
-            "value": "{color.light.gray.10}",
-            "type": "color"
-          }
-        },
-        "state": {
-          "note": {
-            "value": "{color.light.blue.1}",
-            "type": "color"
-          },
-          "info": {
-            "value": "{color.light.blue.2}",
-            "type": "color"
-          },
-          "error": {
-            "value": "{color.light.red.2}",
-            "type": "color"
-          },
-          "warning": {
-            "value": "{color.light.gold.2}",
-            "type": "color"
-          }
-        },
-        "anti": {
-          "value": "{color.light.gray.1}",
-          "type": "color"
-        },
-        "accent": {
-          "value": "{color.light.blue.6}",
-          "type": "color"
-        },
-        "brand": {
-          "value": "{color.light.navy-blue.6}",
-          "type": "color"
-        },
-        "divider": {
-          "value": "rgba({color.light.gray.12}, 0.1)",
-          "type": "color"
-        }
-      }
-    },
-    "item-state": {
-      "sel": {
-        "bg": {
-          "lv1": {
-            "value": "rgba({color.light.blue.6},0.1)",
-            "type": "color"
-          },
-          "lv2": {
-            "value": "{color.light.gray.4}",
-            "type": "color"
-          },
-          "lv3": {
-            "value": "rgba({color.light.gray.5}, 0.6)",
-            "type": "color"
-          }
-        },
-        "border": {
-          "lv3": {
-            "value": "{color.sys.border.neutral.lv1}",
-            "type": "color"
-          }
-        }
-      },
-      "hov": {
-        "bg": {
-          "value": "{color.light.gray.3}",
-          "type": "color"
-        }
-      }
-    },
-    "field": {
-      "border": {
-        "norm": {
-          "value": "{color.sys.border.neutral.lv2}",
-          "type": "color"
-        },
-        "hov": {
-          "value": "{color.sys.border.accent.lv2}",
-          "type": "color"
-        },
-        "focus": {
-          "value": "{color.sys.border.accent.lv1}",
-          "type": "color"
-        },
-        "dis": {
-          "value": "{color.sys.border.neutral.lv2}",
-          "type": "color"
-        },
-        "error": {
-          "value": "{color.sys.border.error}",
-          "type": "color"
-        },
-        "sel": {
-          "value": "{color.light.blue.3}",
-          "type": "color"
-        }
-      },
-      "bg": {
-        "def": {
-          "value": "{color.sys.layout.fg.light}",
-          "type": "color"
-        },
-        "dis": {
-          "value": "{color.sys.layout.fg.light-dis}",
-          "type": "color"
-        }
-      },
-      "bg-text": {
-        "sel": {
-          "value": "{color.light.blue.3}",
-          "type": "color"
-        }
-      },
-      "text": {
-        "act": {
-          "value": "{color.sys.text.neutral.lv1}",
-          "type": "color"
-        },
-        "placeholder": {
-          "value": "{color.sys.text.neutral.lv3}",
-          "type": "color"
-        },
-        "dis": {
-          "value": "{color.sys.text.neutral.dis}",
-          "type": "color"
-        },
-        "tips": {
-          "value": "{color.sys.text.neutral.lv3}",
-          "type": "color"
-        },
-        "tips-error": {
-          "value": "{color.sys.text.error.norm}",
-          "type": "color"
-        }
-      }
-    },
-    "slider": {
-      "track": {
-        "norm": {
-          "value": "{color.light.gray.5}",
-          "type": "color"
-        },
-        "dis": {
-          "value": "{color.light.gray.4}",
-          "type": "color"
-        }
-      },
-      "track-filled": {
-        "norm": {
-          "value": "{color.light.blue.6}",
-          "type": "color"
-        },
-        "dis": {
-          "value": "{color.light.gray.6}",
-          "type": "color"
-        }
-      },
-      "knob": {
-        "norm": {
-          "value": "{color.light.blue.6}",
-          "type": "color"
-        },
-        "dis": {
-          "value": "{color.light.gray.6}",
-          "type": "color"
-        },
-        "border": {
-          "value": "{color.light.gray.1}",
-          "type": "color"
-        }
-      }
-    },
-    "icon": {
-      "base": {
-        "neutral": {
-          "norm": {
-            "lv1": {
-              "value": "{color.light.gray.9}",
-              "type": "color"
-            },
-            "lv2": {
-              "value": "{color.light.gray.7}",
-              "type": "color"
-            },
-            "lv3": {
-              "value": "{color.light.gray.5}",
-              "type": "color"
-            }
-          },
-          "sel": {
-            "value": "{color.light.gray.11}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.gray.6}",
-            "type": "color"
-          }
-        },
-        "brand": {
-          "value": "{color.light.navy-blue.6}",
-          "type": "color"
-        },
-        "accent": {
-          "value": "{color.light.blue.6}",
-          "type": "color"
-        },
-        "state": {
-          "info": {
-            "value": "{color.light.blue.6}",
-            "type": "color"
-          },
-          "success": {
-            "value": "{color.light.green.6}",
-            "type": "color"
-          },
-          "warning": {
-            "value": "{color.light.gold.6}",
-            "type": "color"
-          },
-          "error": {
-            "value": "{color.light.red.6}",
-            "type": "color"
-          }
-        },
-        "anti": {
-          "norm": {
-            "value": "{color.light.gray.1}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.gray.2}",
-            "type": "color"
-          }
-        }
-      },
-      "pdf-tools": {
-        "pink": {
-          "value": "{color.light.pink.5}",
-          "type": "color"
-        },
-        "cyan": {
-          "value": "{color.light.cyan.5}",
-          "type": "color"
-        },
-        "blue": {
-          "value": "{color.light.blue.5}",
-          "type": "color"
-        },
-        "purple": {
-          "value": "{color.light.purple.5}",
-          "type": "color"
-        },
-        "orange": {
-          "value": "{color.light.orange.5}",
-          "type": "color"
-        }
-      },
-      "checkbox-radio": {
-        "norm": {
-          "bg": {
-            "value": "{color.sys.layout.fg.light}",
-            "type": "color"
-          },
-          "border": {
-            "value": "{color.sys.border.neutral.lv2}",
-            "type": "color"
-          }
-        },
-        "hov": {
-          "bg": {
-            "value": "{color.sys.layout.fg.light}",
-            "type": "color"
-          },
-          "border": {
-            "value": "{color.sys.border.accent.lv2}",
-            "type": "color"
-          }
-        },
-        "dis": {
-          "bg": {
-            "value": "{color.sys.layout.fg.light-dis}",
-            "type": "color"
-          },
-          "border": {
-            "value": "{color.sys.border.neutral.lv2}",
-            "type": "color"
-          },
-          "fill": {
-            "value": "{color.icon.base.neutral.dis}",
-            "type": "color"
-          }
-        },
-        "sel": {
-          "bg": {
-            "value": "{color.sys.layout.accent}",
-            "type": "color"
-          },
-          "fill": {
-            "value": "{color.icon.base.anti.norm}",
-            "type": "color"
-          },
-          "border-radio": {
-            "value": "{color.sys.border.accent.lv1}",
-            "type": "color"
-          }
-        }
-      },
-      "file": {
-        "pdf": {
-          "value": "{color.light.red.6}",
-          "type": "color"
-        },
-        "image": {
-          "value": "{color.light.navy-blue.4}",
-          "type": "color"
-        }
-      },
-      "arrow": {
-        "gray": {
-          "def": {
-            "value": "{color.light.gray.7}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.gray.8}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.icon.base.neutral.dis}",
-            "type": "color"
-          }
-        },
-        "anti": {
-          "def": {
-            "value": "{color.icon.base.anti.norm}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.icon.base.anti.dis}",
-            "type": "color"
-          }
-        },
-        "accent": {
-          "norm": {
-            "value": "{color.icon.base.accent}",
-            "type": "color"
-          },
-          "hov": {
-            "value": "{color.light.blue.5}",
-            "type": "color"
-          },
-          "act": {
-            "value": "{color.light.blue.7}",
-            "type": "color"
-          },
-          "dis": {
-            "value": "{color.light.blue.3}",
-            "type": "color"
-          }
-        }
-      }
-    },
-    "badge": {
-      "red": {
-        "bg": {
-          "value": "{color.light.red.6}",
-          "type": "color"
-        }
-      }
-    }
-  },
-  "radius": {
-    "base": {
-      "s": {
-        "value": "{border-radius.2}",
-        "type": "borderRadius"
-      },
-      "m": {
-        "value": "{border-radius.4}",
-        "type": "borderRadius"
-      },
-      "l": {
-        "value": "{border-radius.8}",
-        "type": "borderRadius"
-      }
-    },
-    "fullround-btn": {
-      "xs": {
-        "value": "{border-radius.10}",
-        "type": "borderRadius"
-      },
-      "s": {
-        "value": "{border-radius.12}",
-        "type": "borderRadius"
-      },
-      "m": {
-        "value": "{border-radius.16}",
-        "type": "borderRadius"
-      },
-      "l": {
-        "value": "{border-radius.20}",
-        "type": "borderRadius"
-      }
-    }
-  },
-  "text": {
-    "mac": {
-      "footnote": {
-        "value": "{text-mac.regular.11}",
-        "type": "typography"
-      },
-      "body": {
-        "s": {
-          "value": "{text-mac.regular.12}",
-          "type": "typography"
-        },
-        "m-base": {
-          "value": "{text-mac.regular.14}",
-          "type": "typography"
-        },
-        "l": {
-          "value": "{text-mac.regular.16}",
-          "type": "typography"
-        }
-      },
-      "title": {
-        "s": {
-          "value": "{text-mac.semibold.12}",
-          "type": "typography"
-        },
-        "m-base": {
-          "value": "{text-mac.semibold.14}",
-          "type": "typography"
-        },
-        "l": {
-          "value": "{text-mac.semibold.16}",
-          "type": "typography"
-        },
-        "xl": {
-          "value": "{text-mac.semibold.20}",
-          "type": "typography"
-        }
-      }
-    },
-    "win": {
-      "footnote": {
-        "value": "{text-windows.regular.11}",
-        "type": "typography"
-      },
-      "body": {
-        "s": {
-          "value": "{text-windows.regular.12}",
-          "type": "typography"
-        },
-        "m-base": {
-          "value": "{text-windows.regular.14}",
-          "type": "typography"
-        },
-        "l": {
-          "value": "{text-windows.regular.16}",
-          "type": "typography"
-        }
-      },
-      "title": {
-        "s": {
-          "value": "{text-windows.semibold.12}",
-          "type": "typography"
-        },
-        "m-base": {
-          "value": "{text-windows.semibold.14}",
-          "type": "typography"
-        },
-        "l": {
-          "value": "{text-windows.semibold.16}",
-          "type": "typography"
-        },
-        "xl": {
-          "value": "{text-windows.semibold.20}",
-          "type": "typography"
-        }
-      }
-    }
-  },
-  "shadow": {
-    "neutral": {
-      "s": {
-        "value": "{shadow.black-2-2}",
-        "type": "boxShadow"
-      },
-      "m": {
-        "value": "{shadow.black-2-8}",
-        "type": "boxShadow"
-      },
-      "l": {
-        "value": "{shadow.black-4-16}",
-        "type": "boxShadow"
-      },
-      "xl": {
-        "value": "{shadow.black-16-48}",
-        "type": "boxShadow"
-      }
-    },
-    "accent": {
-      "s": {
-        "value": "{shadow.blue-0-4}",
-        "type": "boxShadow"
-      }
-    },
-    "error": {
-      "s": {
-        "value": "{shadow.red-0-4}",
-        "type": "boxShadow"
-      }
-    }
-  }
-}

File diff suppressed because it is too large
+ 0 - 5445
lib_material_tokens/src/tokens/comp-light.json


File diff suppressed because it is too large
+ 0 - 1389
lib_material_tokens/src/tokens/global.json


+ 0 - 11
lib_material_tokens/src/values/token_border_radius.xml

@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <integer name="border_radius_2">2dp</integer>
-    <integer name="border_radius_4">4dp</integer>
-    <integer name="border_radius_6">6dp</integer>
-    <integer name="border_radius_8">8dp</integer>
-    <integer name="border_radius_10">10dp</integer>
-    <integer name="border_radius_12">12dp</integer>
-    <integer name="border_radius_16">16dp</integer>
-    <integer name="border_radius_20">20dp</integer>
-</resources>

+ 0 - 5
lib_material_tokens/src/values/token_border_width.xml

@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <integer name="border_width_1">1dp</integer>
-    <integer name="border_width_2">2dp</integer>
-</resources>

+ 0 - 207
lib_material_tokens/src/values/token_colors.xml

@@ -1,207 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <color name="color_light_red_9">#760920</color>
-    <color name="color_light_red_8">#A01730</color>
-    <color name="color_light_red_7">#C92C43</color>
-    <color name="color_light_red_6">#F3465B</color>
-    <color name="color_light_red_5">#F56571</color>
-    <color name="color_light_red_4">#F8858B</color>
-    <color name="color_light_red_3">#FAA5A7</color>
-    <color name="color_light_red_2">#FDC7C6</color>
-    <color name="color_light_red_10">#4D0013</color>
-    <color name="color_light_red_1">#FFE9E8</color>
-    <color name="color_light_purple_9">#1B0677</color>
-    <color name="color_light_purple_8">#3011A2</color>
-    <color name="color_light_purple_7">#4B20CD</color>
-    <color name="color_light_purple_6">#6C33F8</color>
-    <color name="color_light_purple_5">#8A56F9</color>
-    <color name="color_light_purple_4">#A77AFB</color>
-    <color name="color_light_purple_3">#C29EFC</color>
-    <color name="color_light_purple_2">#DBC3FE</color>
-    <color name="color_light_purple_10">#0B004D</color>
-    <color name="color_light_purple_1">#F2E8FF</color>
-    <color name="color_light_pink_9">#770764</color>
-    <color name="color_light_pink_8">#A11285</color>
-    <color name="color_light_pink_7">#CC22A4</color>
-    <color name="color_light_pink_6">#F637C4</color>
-    <color name="color_light_pink_5">#F859C8</color>
-    <color name="color_light_pink_4">#FA7CD0</color>
-    <color name="color_light_pink_3">#FBA0DA</color>
-    <color name="color_light_pink_2">#FDC4E6</color>
-    <color name="color_light_pink_10">#4D0042</color>
-    <color name="color_light_pink_1">#FFE8F5</color>
-    <color name="color_light_orange_9">#792A05</color>
-    <color name="color_light_orange_8">#A6440F</color>
-    <color name="color_light_orange_7">#D2621C</color>
-    <color name="color_light_orange_6">#FF852E</color>
-    <color name="color_light_orange_5">#FFA153</color>
-    <color name="color_light_orange_4">#FFB978</color>
-    <color name="color_light_orange_3">#FFD09E</color>
-    <color name="color_light_orange_2">#FFE4C3</color>
-    <color name="color_light_orange_10">#4D1600</color>
-    <color name="color_light_orange_1">#FFF5E8</color>
-    <color name="color_light_navy_blue_9">#081B52</color>
-    <color name="color_light_navy_blue_8">#112557</color>
-    <color name="color_light_navy_blue_7">#1C305D</color>
-    <color name="color_light_navy_blue_6">#273C62</color>
-    <color name="color_light_navy_blue_5">#415A81</color>
-    <color name="color_light_navy_blue_4">#617CA1</color>
-    <color name="color_light_navy_blue_3">#88A1C0</color>
-    <color name="color_light_navy_blue_2">#B5C9E0</color>
-    <color name="color_light_navy_blue_10">#00114D</color>
-    <color name="color_light_navy_blue_1">#E8F4FF</color>
-    <color name="color_light_green_9">#036F56</color>
-    <color name="color_light_green_8">#09916D</color>
-    <color name="color_light_green_7">#10B382</color>
-    <color name="color_light_green_6">#1AD598</color>
-    <color name="color_light_green_5">#3EDDA3</color>
-    <color name="color_light_green_4">#64E6B2</color>
-    <color name="color_light_green_3">#8EEEC4</color>
-    <color name="color_light_green_2">#BAF7DA</color>
-    <color name="color_light_green_10">#004D3D</color>
-    <color name="color_light_green_1">#E8FFF4</color>
-    <color name="color_light_gray_9">#616469</color>
-    <color name="color_light_gray_8">#7C8085</color>
-    <color name="color_light_gray_7">#94989C</color>
-    <color name="color_light_gray_6">#B1B3B8</color>
-    <color name="color_light_gray_5">#CED0D4</color>
-    <color name="color_light_gray_4">#DFE1E5</color>
-    <color name="color_light_gray_3">#EDEEF0</color>
-    <color name="color_light_gray_2">#F7F8FA</color>
-    <color name="color_light_gray_12">#000000</color>
-    <color name="color_light_gray_11">#252629</color>
-    <color name="color_light_gray_10">#36383B</color>
-    <color name="color_light_gray_1">#ffffff</color>
-    <color name="color_light_gold_9">#794304</color>
-    <color name="color_light_gold_8">#A6630C</color>
-    <color name="color_light_gold_7">#D28717</color>
-    <color name="color_light_gold_6">#FFAF25</color>
-    <color name="color_light_gold_5">#FFC34C</color>
-    <color name="color_light_gold_4">#FFD573</color>
-    <color name="color_light_gold_3">#FFE49A</color>
-    <color name="color_light_gold_2">#FFF1C1</color>
-    <color name="color_light_gold_10">#4D2600</color>
-    <color name="color_light_gold_1">#FFFAE8</color>
-    <color name="color_light_cyan_9">#03616C</color>
-    <color name="color_light_cyan_8">#07828B</color>
-    <color name="color_light_cyan_7">#0DA5AA</color>
-    <color name="color_light_cyan_6">#14C9C9</color>
-    <color name="color_light_cyan_5">#37D4CF</color>
-    <color name="color_light_cyan_4">#5EDFD6</color>
-    <color name="color_light_cyan_3">#89E9E0</color>
-    <color name="color_light_cyan_2">#B7F4EC</color>
-    <color name="color_light_cyan_10">#03616C</color>
-    <color name="color_light_cyan_1">#E8FFFB</color>
-    <color name="color_light_blue_9">#032576</color>
-    <color name="color_light_blue_8">#083aa0</color>
-    <color name="color_light_blue_7">#0e53ca</color>
-    <color name="color_light_blue_6">#1770F4</color>
-    <color name="color_light_blue_5">#3f8ff6</color>
-    <color name="color_light_blue_4">#68acf8</color>
-    <color name="color_light_blue_3">#92C6FB</color>
-    <color name="color_light_blue_2">#BDDFFD</color>
-    <color name="color_light_blue_10">#00144d</color>
-    <color name="color_light_blue_1">#E8F5FF</color>
-    <color name="color_dark_red_9">#f8bfc0</color>
-    <color name="color_dark_red_8">#f3959a</color>
-    <color name="color_dark_red_7">#e76973</color>
-    <color name="color_dark_red_6">#d13e50</color>
-    <color name="color_dark_red_5">#a53442</color>
-    <color name="color_dark_red_4">#782a34</color>
-    <color name="color_dark_red_3">#562229</color>
-    <color name="color_dark_red_2">#411b21</color>
-    <color name="color_dark_red_10">#fae9e9</color>
-    <color name="color_dark_red_1">#291519</color>
-    <color name="color_dark_purple_9">#c8abf8</color>
-    <color name="color_dark_purple_8">#a981f3</color>
-    <color name="color_dark_purple_7">#8457e8</color>
-    <color name="color_dark_purple_6">#5f2ed6</color>
-    <color name="color_dark_purple_5">#4d28a8</color>
-    <color name="color_dark_purple_4">#3b217b</color>
-    <color name="color_dark_purple_3">#2e1d58</color>
-    <color name="color_dark_purple_2">#221743</color>
-    <color name="color_dark_purple_10">#e5d5fa</color>
-    <color name="color_dark_purple_1">#18132b</color>
-    <color name="color_dark_pink_9">#f8aedd</color>
-    <color name="color_dark_pink_8">#f384ce</color>
-    <color name="color_dark_pink_7">#e759bd</color>
-    <color name="color_dark_pink_6">#d432aa</color>
-    <color name="color_dark_pink_5">#a72a86</color>
-    <color name="color_dark_pink_4">#792363</color>
-    <color name="color_dark_pink_3">#571e49</color>
-    <color name="color_dark_pink_2">#421739</color>
-    <color name="color_dark_pink_10">#fad7ed</color>
-    <color name="color_dark_pink_1">#291326</color>
-    <color name="color_dark_orange_9">#f8cfa4</color>
-    <color name="color_dark_orange_8">#f3b57b</color>
-    <color name="color_dark_orange_7">#e79450</color>
-    <color name="color_dark_orange_6">#dc742a</color>
-    <color name="color_dark_orange_5">#ac5d25</color>
-    <color name="color_dark_orange_4">#7d4620</color>
-    <color name="color_dark_orange_3">#5a351c</color>
-    <color name="color_dark_orange_2">#452716</color>
-    <color name="color_dark_orange_10">#fae6cd</color>
-    <color name="color_dark_orange_1">#2b1b13</color>
-    <color name="color_dark_navy_blue_9">#6d93d5</color>
-    <color name="color_dark_navy_blue_8">#4570c6</color>
-    <color name="color_dark_navy_blue_7">#234eb1</color>
-    <color name="color_dark_navy_blue_6">#082f9d</color>
-    <color name="color_dark_navy_blue_5">#0b287d</color>
-    <color name="color_dark_navy_blue_4">#0d225c</color>
-    <color name="color_dark_navy_blue_3">#0f1d44</color>
-    <color name="color_dark_navy_blue_2">#0e1733</color>
-    <color name="color_dark_navy_blue_10">#98b7e4</color>
-    <color name="color_dark_navy_blue_1">#101321</color>
-    <color name="color_dark_green_9">#93f5cb</color>
-    <color name="color_dark_green_8">#65e5b2</color>
-    <color name="color_dark_green_7">#3cce98</color>
-    <color name="color_dark_green_6">#19b884</color>
-    <color name="color_dark_green_5">#18916a</color>
-    <color name="color_dark_green_4">#166a4f</color>
-    <color name="color_dark_green_3">#154d3c</color>
-    <color name="color_dark_green_2">#113a2f</color>
-    <color name="color_dark_green_10">#bffade</color>
-    <color name="color_dark_green_1">#112520</color>
-    <color name="color_dark_gray_9">#C5C5C5</color>
-    <color name="color_dark_gray_8">#ABABAC</color>
-    <color name="color_dark_gray_7">#929293</color>
-    <color name="color_dark_gray_6">#78787A</color>
-    <color name="color_dark_gray_5">#5F5F60</color>
-    <color name="color_dark_gray_4">#464647</color>
-    <color name="color_dark_gray_3">#2C2C2E</color>
-    <color name="color_dark_gray_2">#1D1D1F</color>
-    <color name="color_dark_gray_12">#ffffff</color>
-    <color name="color_dark_gray_11">#F6F6F6</color>
-    <color name="color_dark_gray_10">#DFDFDF</color>
-    <color name="color_dark_gray_1">#131314</color>
-    <color name="color_dark_gold_9">#f8e09d</color>
-    <color name="color_dark_gold_8">#f3cc73</color>
-    <color name="color_dark_gold_7">#e7b249</color>
-    <color name="color_dark_gold_6">#dc9822</color>
-    <color name="color_dark_gold_5">#ac781f</color>
-    <color name="color_dark_gold_4">#7d591c</color>
-    <color name="color_dark_gold_3">#5a4219</color>
-    <color name="color_dark_gold_2">#453115</color>
-    <color name="color_dark_gold_10">#faefc5</color>
-    <color name="color_dark_gold_1">#2b2012</color>
-    <color name="color_dark_cyan_9">#87e9e0</color>
-    <color name="color_dark_cyan_8">#5bd9d0</color>
-    <color name="color_dark_cyan_7">#34c3be</color>
-    <color name="color_dark_cyan_6">#14aeae</color>
-    <color name="color_dark_cyan_5">#14898a</color>
-    <color name="color_dark_cyan_4">#136565</color>
-    <color name="color_dark_cyan_3">#134a4a</color>
-    <color name="color_dark_cyan_2">#103638</color>
-    <color name="color_dark_cyan_10">#b8f7f0</color>
-    <color name="color_dark_cyan_1">#102224</color>
-    <color name="color_dark_blue_9">#8dc3f8</color>
-    <color name="color_dark_blue_8">#65a7f3</color>
-    <color name="color_dark_blue_7">#3c86e8</color>
-    <color name="color_dark_blue_6">#1662d2</color>
-    <color name="color_dark_blue_5">#164fa6</color>
-    <color name="color_dark_blue_4">#153d79</color>
-    <color name="color_dark_blue_3">#142f57</color>
-    <color name="color_dark_blue_2">#102343</color>
-    <color name="color_dark_blue_10">#b7dbfa</color>
-    <color name="color_dark_blue_1">#10192a</color>
-</resources>

+ 0 - 46
lib_material_tokens/src/values/token_sizing.xml

@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <integer name="sizing_1">1px</integer>
-    <integer name="sizing_4">4px</integer>
-    <integer name="sizing_8">8px</integer>
-    <integer name="sizing_10">10px</integer>
-    <integer name="sizing_12">12px</integer>
-    <integer name="sizing_14">14px</integer>
-    <integer name="sizing_16">16px</integer>
-    <integer name="sizing_18">18px</integer>
-    <integer name="sizing_20">20px</integer>
-    <integer name="sizing_21">21px</integer>
-    <integer name="sizing_22">22px</integer>
-    <integer name="sizing_24">24px</integer>
-    <integer name="sizing_26">26px</integer>
-    <integer name="sizing_28">28px</integer>
-    <integer name="sizing_30">30px</integer>
-    <integer name="sizing_32">32px</integer>
-    <integer name="sizing_34">34px</integer>
-    <integer name="sizing_36">36px</integer>
-    <integer name="sizing_40">40px</integer>
-    <integer name="sizing_44">44px</integer>
-    <integer name="sizing_48">48px</integer>
-    <integer name="sizing_50">50px</integer>
-    <integer name="sizing_58">58px</integer>
-    <integer name="sizing_60">60px</integer>
-    <integer name="sizing_64">64px</integer>
-    <integer name="sizing_68">68px</integer>
-    <integer name="sizing_72">72px</integer>
-    <integer name="sizing_110">110px</integer>
-    <integer name="sizing_116">116px</integer>
-    <integer name="sizing_120">120px</integer>
-    <integer name="sizing_132">132px</integer>
-    <integer name="sizing_139">139px</integer>
-    <integer name="sizing_180">180px</integer>
-    <integer name="sizing_200">202px</integer>
-    <integer name="sizing_228">228px</integer>
-    <integer name="sizing_260">260px</integer>
-    <integer name="sizing_432">432px</integer>
-    <integer name="sizing_468">468px</integer>
-    <integer name="sizing_512">512px</integer>
-    <integer name="sizing_586">586px</integer>
-    <integer name="sizing_720">720px</integer>
-    <integer name="sizing_primary_sizing_1">1234px</integer>
-    <integer name="sizing_primary_sizing_2">4321px</integer>
-</resources>

+ 0 - 20
lib_material_tokens/src/values/token_spacing.xml

@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <integer name="spacing_0">0px</integer>
-    <integer name="spacing_1">1px</integer>
-    <integer name="spacing_2">2px</integer>
-    <integer name="spacing_4">4px</integer>
-    <integer name="spacing_5">5px</integer>
-    <integer name="spacing_6">6px</integer>
-    <integer name="spacing_8">8px</integer>
-    <integer name="spacing_10">10px</integer>
-    <integer name="spacing_12">12px</integer>
-    <integer name="spacing_16">16px</integer>
-    <integer name="spacing_24">24px</integer>
-    <integer name="spacing_32">32px</integer>
-    <integer name="spacing_40">40px</integer>
-    <integer name="spacing_56">56px</integer>
-    <integer name="spacing_64">64px</integer>
-    <integer name="spacing_80">80px</integer>
-    <integer name="spacing_88">88px</integer>
-</resources>

+ 0 - 1
lib_pdf_base/.gitignore

@@ -1 +0,0 @@
-/build

+ 0 - 44
lib_pdf_base/build.gradle

@@ -1,44 +0,0 @@
-plugins {
-    id 'com.android.library'
-    id 'org.jetbrains.kotlin.android'
-}
-
-android {
-    compileSdk rootProject.ext.compileSdkVersion
-    buildToolsVersion rootProject.ext.buildToolsVersion
-
-    defaultConfig {
-        minSdkVersion rootProject.ext.minSdkVersion
-        targetSdkVersion rootProject.ext.targetSdkVersion
-
-        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
-        consumerProguardFiles "consumer-rules.pro"
-    }
-
-    compileOptions {
-        sourceCompatibility JavaVersion.VERSION_1_8
-        targetCompatibility JavaVersion.VERSION_1_8
-    }
-
-    buildTypes {
-        release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
-        }
-    }
-
-    kotlinOptions {
-        jvmTarget = '1.8'
-    }
-}
-
-dependencies {
-    api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
-
-    implementation project(':lib_common')
-    api 'androidx.documentfile:documentfile:1.0.1'
-
-    api 'com.compdf:compdfkit:1.9.1'
-    api 'com.compdf:compdfkit-ui:1.9.1'
-//    api 'com.compdf:compdfkit-tools:1.9.1'
-}

+ 0 - 0
lib_pdf_base/consumer-rules.pro


+ 0 - 21
lib_pdf_base/proguard-rules.pro

@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-#   http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-#   public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile

+ 0 - 22
lib_pdf_base/src/androidTest/java/com/pdf/base/ExampleInstrumentedTest.kt

@@ -1,22 +0,0 @@
-package com.pdf.base
-
-import androidx.test.ext.junit.runners.AndroidJUnit4
-import androidx.test.platform.app.InstrumentationRegistry
-import org.junit.Assert.*
-import org.junit.Test
-import org.junit.runner.RunWith
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-@RunWith(AndroidJUnit4::class)
-class ExampleInstrumentedTest {
-    @Test
-    fun useAppContext() {
-        // Context of the app under test.
-        val appContext = InstrumentationRegistry.getInstrumentation().targetContext
-        assertEquals("com.pdf.base.test", appContext.packageName)
-    }
-}

+ 0 - 19
lib_pdf_base/src/main/AndroidManifest.xml

@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.pdf.base">
-
-    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
-
-    <application
-        android:allowBackup="true"
-        android:supportsRtl="true">
-
-        <meta-data
-            android:name="compdfkit_license"
-            android:value="pcOv67+7pqQzQZxshNAxbzQDlEn87rEBVI62psMMit+SHIvbCRtzIX4pTkkSTJQf+RXzm9DPrHBwLeyNDxEPcse3g4Yi8h1Xvl69bJ51iNnIVq19OESB+hKVPOlA2B/HjsEXl0LG6cf77iiEYnctAPSultXsF3yIBbTCXUb1yuo=" />
-        <meta-data
-            android:name="compdfkit_message"
-            android:value="mG0c3O3Mzeu5dkZJW3gpqotjgd+APU/4fMqIHQR4gdz+30z7ZrkvRPNQzEZUYMfC/KpHF3vBDdXvniWHS5jZ1rB1MM7QuAecUmPxrlGlxm1hrp9sGpqfp0B228KI+IMTu4aGVjtYuk+Uxs/kosIBw1367/WkJ00tM7U7tttD6ccsvUiEnSpVC16x66CLYBR9R5wJulZG/lqZ+yY8RJ76kVojFdYAgEDr28thJZUNadxZXaMnP54N8XjGkv3pQv6HmKA5CPfJSxMUgz0GlzJk/w==" />
-    </application>
-</manifest>

BIN
lib_pdf_base/src/main/assets/111.pdf


+ 0 - 36
lib_pdf_base/src/main/java/com/pdf/base/function/AnnotationFunction.kt

@@ -1,36 +0,0 @@
-package com.pdf.base.function
-
-import android.util.Log
-import com.compdfkit.core.document.CPDFDocument
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.withContext
-
-/**
- * @author: hubowen
- * @date: 2022/9/20
- * @description:
- */
-
-/**
- * 删除所有注释
- */
-suspend fun CPDFDocument.annotationDeleteAll(onPre: (() -> Unit)? = null, onSuccess: ((Boolean) -> Unit)? = null, onComplete: (() -> Unit)? = null) {
-    withContext(Dispatchers.Main) {
-        onPre?.invoke()
-        withContext(Dispatchers.IO) {
-            runCatching {
-                //删除所有注释
-                removeAllAnnotations()
-                //保存Document
-                onSaveDocument()
-            }.onFailure {
-                Log.e("pdf_base", "delete_all_annotation_failed")
-                onSuccess?.invoke(false)
-            }.onSuccess {
-                Log.e("pdf_base", "delete_all_annotation_success")
-                onSuccess?.invoke(true)
-            }
-        }
-        onComplete?.invoke()
-    }
-}

+ 0 - 83
lib_pdf_base/src/main/java/com/pdf/base/function/EditFunction.kt

@@ -1,83 +0,0 @@
-package com.pdf.base.function
-
-import com.compdfkit.core.document.CPDFDocument
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.withContext
-
-/**
- * @author: hubowen
- * @date: 2022/10/9
- * @description:
- */
-
-/**
- * 页面旋转
- * CPDFDocument 页面翻转 array -> 页面的Num
- */
-suspend fun CPDFDocument.pageRotate(array: IntArray, onPre: (() -> Unit)? = null, onSuccess: ((Boolean) -> Unit)? = null, onComplete: (() -> Unit)? = null) {
-    var rotateSuccess = false
-    withContext(Dispatchers.Main) {
-        onPre?.invoke()
-        withContext(Dispatchers.IO) {
-            runCatching {
-                array.map { index ->
-                    pageAtIndex(index)?.apply {
-                        rotateSuccess = setRotation(this.rotation + 90)
-                        //如果有翻转失败就暂停
-                        if (!rotateSuccess) return@map
-                    }
-                }
-            }.onFailure {
-                onSuccess?.invoke(false)
-            }.onSuccess {
-                onSuccess?.invoke(rotateSuccess)
-            }
-        }
-        onComplete?.invoke()
-    }
-}
-
-/**
- * 页面裁剪
- * CPDFDocument 页面裁剪 array -> 页面的Num
- */
-suspend fun CPDFDocument.pageSplit(array: IntArray, onPre: (() -> Unit)? = null, onSuccess: ((Boolean) -> Unit)? = null, onComplete: (() -> Unit)? = null) {
-    withContext(Dispatchers.Main) {
-        onPre?.invoke()
-        withContext(Dispatchers.IO) {
-            runCatching {
-                CPDFDocument.createDocument(context).apply {
-                    importPages(this@pageSplit, array, 0).also {
-
-                    }
-                }
-            }.onFailure {
-                onSuccess?.invoke(false)
-            }.onSuccess {
-                onSuccess?.invoke(true)
-            }
-        }
-        onComplete?.invoke()
-    }
-}
-
-/**
- * 页面删除
- * CPDFDocument 页面删除 array -> 页面的Num
- */
-suspend fun CPDFDocument.pageDelete(array: IntArray, onPre: (() -> Unit)? = null, onSuccess: ((Boolean) -> Unit)? = null, onComplete: (() -> Unit)? = null) {
-    var deleteSuccess = false
-    withContext(Dispatchers.Main) {
-        onPre?.invoke()
-        withContext(Dispatchers.IO) {
-            runCatching {
-                deleteSuccess = removePages(array)
-            }.onFailure {
-                onSuccess?.invoke(false)
-            }.onSuccess {
-                onSuccess?.invoke(deleteSuccess)
-            }
-        }
-        onComplete?.invoke()
-    }
-}

+ 0 - 132
lib_pdf_base/src/main/java/com/pdf/base/function/LogicFunction.kt

@@ -1,132 +0,0 @@
-package com.pdf.base.function
-
-import android.content.Context
-import android.net.Uri
-import android.util.Log
-import com.compdfkit.core.document.CPDFDocument
-import com.compdfkit.core.document.CPDFDocument.PDFDocumentError
-import com.pdf.base.impl.NormalOpenDocumentCallback
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.flow.Flow
-import kotlinx.coroutines.flow.firstOrNull
-import kotlinx.coroutines.flow.flow
-import kotlinx.coroutines.flow.flowOn
-import kotlinx.coroutines.withContext
-
-/**
- * @author: hubowen
- * @date: 2022/9/20
- * @description: LogicFunction 负责PDF的 打开逻辑,保存逻辑
- */
-
-/**
- * 验证文档
- * onSuccess 返回一个正常的Document
- * onError 错误返回
- */
-
-private suspend fun CPDFDocument.openDocument(uri: Uri?, absolutePath: String?, password: String? = ""): Flow<Pair<PDFDocumentError, CPDFDocument?>> {
-    return flow {
-        val result = try {
-            val error =
-                when {
-                    uri != null -> if (password.isNullOrEmpty()) open(uri) else open(uri, password)
-                    absolutePath.isNullOrEmpty().not() -> if (password.isNullOrEmpty()) open(absolutePath) else open(absolutePath, password)
-                    else -> {
-                        PDFDocumentError.PDFDocumentErrorUnknown
-                    }
-                }
-            error to this@openDocument
-        } catch (e: Exception) {
-            e.printStackTrace()
-            PDFDocumentError.PDFDocumentErrorUnknown to null
-        }
-        emit(result)
-    }.flowOn(Dispatchers.IO)
-}
-
-
-/**
- * 转换至 Document对象,这里单独写出来,提供单独的document,用来做功能
- * onSuccess 返回一个正常的Document
- * NeedExit 错误返回
- */
-suspend fun Context.openDocument(uri: Uri?, absolutePath: String?, password: String? = "", callback: NormalOpenDocumentCallback.() -> Unit) {
-    val listener = NormalOpenDocumentCallback().also(callback)
-    val document = CPDFDocument(this)
-    document.openDocument(uri, absolutePath, password).collect {
-        when (it.first) {
-            PDFDocumentError.PDFDocumentErrorSuccess -> listener.success(cPdfDocument = it.second!!)
-            PDFDocumentError.PDFDocumentErrorPassword -> {
-                listener.isEncrypt(it.second!!)
-            }
-            else -> listener.fail(error = it.first)
-        }
-    }
-}
-
-
-/**
- * 重试打开文档,不会再调用回调中的isEncrypt()
- */
-suspend fun CPDFDocument.retryOpenDocument(uri: Uri?, absolutePath: String?, password: String? = "", normalOpenDocumentCallback: NormalOpenDocumentCallback) {
-    openDocument(uri, absolutePath, password).collect{ pair->
-        when (pair.first) {
-            PDFDocumentError.PDFDocumentErrorSuccess -> normalOpenDocumentCallback.success(cPdfDocument = pair.second!!)
-            else -> normalOpenDocumentCallback.fail(error = pair.first)
-        }
-    }
-}
-
-/**
- * 文档是否已加密
- * @param uri 要检查的Uri文件
- * @param absolutePath 要检查的file 路径文件
- */
-suspend fun Context.documentIsEncrypt(uri: Uri? = null, absolutePath: String? = ""): Boolean {
-    val document = CPDFDocument(this)
-    val result = document.openDocument(uri = uri, absolutePath = absolutePath, password = "")
-        .firstOrNull()
-    return result != null && result.first == PDFDocumentError.PDFDocumentErrorPassword
-}
-
-
-
-
-/**
- * 保存Document 这里有一个逻辑,先增量保存如果失败则进行全量保存。
- */
-suspend fun CPDFDocument.onSaveDocument(isNeedClose: Boolean = false, onPre: (() -> Unit)? = null, onSuccess: ((Boolean) -> Unit)? = null, onComplete: (() -> Unit)? = null) {
-    var isSaveSuccess: Boolean
-    withContext(Dispatchers.Main) {
-        onPre?.invoke()
-        withContext(Dispatchers.IO) {
-            runCatching {
-                if (hasChanges()) {
-                    //增量保存
-                    isSaveSuccess = save()
-                    //全量保存
-                    if (!isSaveSuccess) isSaveSuccess = save(CPDFDocument.PDFDocumentSaveType.PDFDocumentSaveNoIncremental)
-                }
-            }.onFailure {
-                Log.e("pdf_base", "save_failed")
-                onSuccess?.invoke(false)
-            }.onSuccess {
-                Log.e("pdf_base", "save_success")
-                onSuccess?.invoke(true)
-            }
-        }
-        //关闭文档
-        if (isNeedClose) close()
-        onComplete?.invoke()
-    }
-
-}
-
-/**
- * 另存PDF文件
- */
-
-/**
- * 保存Flattened副本
- */

+ 0 - 47
lib_pdf_base/src/main/java/com/pdf/base/impl/NormalOpenDocumentCallback.kt

@@ -1,47 +0,0 @@
-package com.pdf.base.impl
-
-import com.compdfkit.core.document.CPDFDocument
-import com.pdf.base.interfaces.OpenDocumentCallback
-
-
-typealias OpenDocumentSuccess = (CPDFDocument) -> Unit
-typealias OpenDocumentFail = (CPDFDocument.PDFDocumentError) -> Unit
-typealias DocumentIsEncrypt = (CPDFDocument) -> Unit
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2022/11/18
- * description: 打开文档监听默认实现
- */
-class NormalOpenDocumentCallback : OpenDocumentCallback {
-
-    private var success : OpenDocumentSuccess? = null
-    private var fail : OpenDocumentFail? = null
-    private var isEncrypt : DocumentIsEncrypt? = null
-
-    override fun success(cPdfDocument: CPDFDocument) {
-        success?.invoke(cPdfDocument)
-    }
-
-    override fun fail(error: CPDFDocument.PDFDocumentError) {
-        fail?.invoke(error)
-    }
-
-    override fun isEncrypt(cPdfDocument: CPDFDocument) {
-        isEncrypt?.invoke(cPdfDocument)
-    }
-
-    fun success(success: OpenDocumentSuccess){
-        this.success = success
-    }
-
-    fun fail(fail : OpenDocumentFail){
-        this.fail = fail
-    }
-
-    fun isEncrypt(isEncrypt: DocumentIsEncrypt){
-        this.isEncrypt = isEncrypt
-    }
-
-}

+ 0 - 28
lib_pdf_base/src/main/java/com/pdf/base/interfaces/OpenDocumentCallback.kt

@@ -1,28 +0,0 @@
-package com.pdf.base.interfaces
-
-import com.compdfkit.core.document.CPDFDocument
-
-/**
- * @classname:
- * @author: LiuXiaoLong
- * @date: 2022/11/18
- * description:
- */
-interface OpenDocumentCallback {
-
-    /**
-     * 打开成功
-     */
-    fun success(cPdfDocument: CPDFDocument)
-
-    /**
-     * 打开失败
-     */
-    fun fail(error : CPDFDocument.PDFDocumentError)
-
-    /**
-     * 文档已加密
-     */
-    fun isEncrypt(cPdfDocument: CPDFDocument)
-
-}

+ 0 - 16
lib_pdf_base/src/test/java/com/pdf/base/ExampleUnitTest.kt

@@ -1,16 +0,0 @@
-package com.pdf.base
-
-import org.junit.Assert.*
-import org.junit.Test
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-class ExampleUnitTest {
-    @Test
-    fun addition_isCorrect() {
-        assertEquals(4, 2 + 2)
-    }
-}