diff --git a/docs/changelog-zh-CN.md b/docs/changelog-zh-CN.md index 59ddfb8..61f8e04 100644 --- a/docs/changelog-zh-CN.md +++ b/docs/changelog-zh-CN.md @@ -6,4 +6,10 @@ ## 1.0.1 | 2023.10.13 -- 修复在使用 Kotlin on Android 插件的项目上找不到源码路径的问题 \ No newline at end of file +- 修复在使用 Kotlin on Android 插件的项目上找不到源码路径的问题 + +## 1.0.2 | 2025.08.19 + +- 修复在新版 Android Gradle Plugin 及 Android Studio/IDEA 中部署源码路径时的错误 + `removeContentEntry: removed content entry url 'build/generated/flexi-locale' still exists after removing` +- 新增 `sourceSetName` 方法,允许自定义要部署的源集名称 \ No newline at end of file diff --git a/docs/changelog.md b/docs/changelog.md index 637ec17..3fea5ee 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,4 +6,10 @@ ## 1.0.1 | 2023.10.13 -- Fixed a problem where the source code path could not be found on projects using the Kotlin on Android plugin \ No newline at end of file +- Fixed a problem where the source code path could not be found on projects using the Kotlin on Android plugin + +## 1.0.2 | 2025.08.19 + +- Fix errors when deploying source code paths in the new version of Android Gradle Plugin and Android Studio/IDEA + `removeContentEntry: removed content entry url 'build/generated/flexi-locale' still exists after removing` +- Added the `sourceSetName` method to allow customization of the source set name to be deployed \ No newline at end of file diff --git a/docs/guide-zh-CN.md b/docs/guide-zh-CN.md index e56384d..4e53f35 100644 --- a/docs/guide-zh-CN.md +++ b/docs/guide-zh-CN.md @@ -74,6 +74,10 @@ android { // 默认为 "build/generated/flexi-locale" // 建议将生成的代码放置于 "build" 目录下,因为生成的代码不建议去修改它 generateDirPath = "build/generated/flexi-locale" + // 自定义部署的 `sourceSet` 名称 + // 如果你的项目源码部署名称不是默认值,可以在这里自定义 + // 默认为 "main" + sourceSetName = "main" // 自定义生成的包名 // Android 项目默认使用 "android" 配置方法块中的 "namespace" // 你可以不进行设置,包名在一般情况下会自动进行匹配 diff --git a/docs/guide.md b/docs/guide.md index 60ce0e3..3121308 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -80,6 +80,10 @@ android { // Default is "build/generated/flexi-locale" // It is recommended to place the generated code in the "build" directory, because the generated code is not recommended to be modified generateDirPath = "build/generated/flexi-locale" + // Custom deployed `sourceSet` name + // If your project source code deployment name is not the default value, you can customize it here + // Defaults to "main" + sourceSetName = "main" // Customize the generated package name // Android projects use the "namespace" in the "android" configuration method block by default // You don't need to set it, the package name will be automatically matched under normal circumstances @@ -106,7 +110,9 @@ If you want to use it in Groovy DSL, please change the `=` of all variables to s Assume this is the `strings.xml` of your current project, divided into two directories: `default` and `zh-rCN`. > values/strings.xml + ```xml + My App Hello %1$s @@ -116,6 +122,7 @@ Assume this is the `strings.xml` of your current project, divided into two direc > values-zh-rCN/strings.xml ```xml + 我的应用 你好 %1$s diff --git a/gradle.properties b/gradle.properties index 1501b23..caff026 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,12 +3,12 @@ project.name=FlexiLocale project.url=https://github.com/BetterAndroid/FlexiLocale project.groupName=com.highcapable.flexilocale project.moduleName=flexi-locale -project.version=1.0.1 +project.version=1.0.2 # Gradle Plugin Configuration gradle.plugin.moduleName=${project.groupName}.gradle.plugin gradle.plugin.implementationClass=${project.groupName}.plugin.FlexiLocalePlugin # Maven Publish Configuration -SONATYPE_HOST=S01 +SONATYPE_HOST=CENTRAL_PORTAL RELEASE_SIGNING_ENABLED=true # Maven POM Configuration POM_NAME=FlexiLocale