Skip to content

Commit dbc41ac

Browse files
committed
Bump version to 1.0.2
1 parent 33b00fc commit dbc41ac

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

docs/changelog-zh-CN.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66

77
## 1.0.1 | 2023.10.13
88

9-
- 修复在使用 Kotlin on Android 插件的项目上找不到源码路径的问题
9+
- 修复在使用 Kotlin on Android 插件的项目上找不到源码路径的问题
10+
11+
## 1.0.2 | 2025.08.19
12+
13+
- 修复在新版 Android Gradle Plugin 及 Android Studio/IDEA 中部署源码路径时的错误
14+
`removeContentEntry: removed content entry url 'build/generated/flexi-locale' still exists after removing`
15+
- 新增 `sourceSetName` 方法,允许自定义要部署的源集名称

docs/changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66

77
## 1.0.1 | 2023.10.13
88

9-
- Fixed a problem where the source code path could not be found on projects using the Kotlin on Android plugin
9+
- Fixed a problem where the source code path could not be found on projects using the Kotlin on Android plugin
10+
11+
## 1.0.2 | 2025.08.19
12+
13+
- Fix errors when deploying source code paths in the new version of Android Gradle Plugin and Android Studio/IDEA
14+
`removeContentEntry: removed content entry url 'build/generated/flexi-locale' still exists after removing`
15+
- Added the `sourceSetName` method to allow customization of the source set name to be deployed

docs/guide-zh-CN.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ android {
7474
// 默认为 "build/generated/flexi-locale"
7575
// 建议将生成的代码放置于 "build" 目录下,因为生成的代码不建议去修改它
7676
generateDirPath = "build/generated/flexi-locale"
77+
// 自定义部署的 `sourceSet` 名称
78+
// 如果你的项目源码部署名称不是默认值,可以在这里自定义
79+
// 默认为 "main"
80+
sourceSetName = "main"
7781
// 自定义生成的包名
7882
// Android 项目默认使用 "android" 配置方法块中的 "namespace"
7983
// 你可以不进行设置,包名在一般情况下会自动进行匹配

docs/guide.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ android {
8080
// Default is "build/generated/flexi-locale"
8181
// It is recommended to place the generated code in the "build" directory, because the generated code is not recommended to be modified
8282
generateDirPath = "build/generated/flexi-locale"
83+
// Custom deployed `sourceSet` name
84+
// If your project source code deployment name is not the default value, you can customize it here
85+
// Defaults to "main"
86+
sourceSetName = "main"
8387
// Customize the generated package name
8488
// Android projects use the "namespace" in the "android" configuration method block by default
8589
// 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
106110
Assume this is the `strings.xml` of your current project, divided into two directories: `default` and `zh-rCN`.
107111

108112
> values/strings.xml
113+
109114
```xml
115+
110116
<resources>
111117
<string name="app_name">My App</string>
112118
<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
116122
> values-zh-rCN/strings.xml
117123
118124
```xml
125+
119126
<resources>
120127
<string name="app_name">我的应用</string>
121128
<string name="say_hello">你好 %1$s</string>

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ project.name=FlexiLocale
33
project.url=https://github.com/BetterAndroid/FlexiLocale
44
project.groupName=com.highcapable.flexilocale
55
project.moduleName=flexi-locale
6-
project.version=1.0.1
6+
project.version=1.0.2
77
# Gradle Plugin Configuration
88
gradle.plugin.moduleName=${project.groupName}.gradle.plugin
99
gradle.plugin.implementationClass=${project.groupName}.plugin.FlexiLocalePlugin
1010
# Maven Publish Configuration
11-
SONATYPE_HOST=S01
11+
SONATYPE_HOST=CENTRAL_PORTAL
1212
RELEASE_SIGNING_ENABLED=true
1313
# Maven POM Configuration
1414
POM_NAME=FlexiLocale

0 commit comments

Comments
 (0)