Bump version to 1.0.2

This commit is contained in:
2025-08-19 17:39:18 +08:00
parent 33b00fc4e0
commit dbc41ac61e
5 changed files with 27 additions and 4 deletions

View File

@@ -6,4 +6,10 @@
## 1.0.1 | 2023.10.13
- 修复在使用 Kotlin on Android 插件的项目上找不到源码路径的问题
- 修复在使用 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` 方法,允许自定义要部署的源集名称

View File

@@ -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
- 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

View File

@@ -74,6 +74,10 @@ android {
// 默认为 "build/generated/flexi-locale"
// 建议将生成的代码放置于 "build" 目录下,因为生成的代码不建议去修改它
generateDirPath = "build/generated/flexi-locale"
// 自定义部署的 `sourceSet` 名称
// 如果你的项目源码部署名称不是默认值,可以在这里自定义
// 默认为 "main"
sourceSetName = "main"
// 自定义生成的包名
// Android 项目默认使用 "android" 配置方法块中的 "namespace"
// 你可以不进行设置,包名在一般情况下会自动进行匹配

View File

@@ -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
<resources>
<string name="app_name">My App</string>
<string name="say_hello">Hello %1$s</string>
@@ -116,6 +122,7 @@ Assume this is the `strings.xml` of your current project, divided into two direc
> values-zh-rCN/strings.xml
```xml
<resources>
<string name="app_name">我的应用</string>
<string name="say_hello">你好 %1$s</string>

View File

@@ -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