Releases: hyperdevs-team/poeditor-android-gradle-plugin
Releases · hyperdevs-team/poeditor-android-gradle-plugin
1.3.1
1.3.0
Added
- Add support for using the plug-in in library modules.
- Add support for configuring non-standard resource directory path via
defaultResPath. Thanks to @rafid059 for the contribution!
Groovy
poEditor { defaultResPath = "your/res/path" } android { // If you have the following flavors... flavorDimensions 'type' productFlavors { free { dimension 'type' } paid { dimension 'type' } } poEditorConfig { free { // Configuration for the free flavor, same syntax as usual defaultResPath = "your/free/res/path" } paid { // Configuration for the paid flavor, same syntax as usual defaultResPath = "your/paid/res/path" } debug { // Configuration for the debug build type, same syntax as usual defaultResPath = "your/debug/res/path" } release { // Configuration for the release build type, same syntax as usual defaultResPath = "your/release/res/path" } } }Kotlin
poEditor { defaultResPath = "your/res/path" } android { // If you have the following flavors... flavorDimensions("type") productFlavors { register("free") { setDimension("type") } register("paid") { setDimension("type") } } poEditorConfig { register("free") { // Configuration for the free flavor, same syntax as usual defaultResPath = "your/free/res/path" } register("paid") { // Configuration for the paid flavor, same syntax as usual defaultResPath = "your/paid/res/path" } register("debug") { // Configuration for the debug build type, same syntax as usual defaultResPath = "your/debug/res/path" } register("release") { // Configuration for the release build type, same syntax as usual defaultResPath = "your/release/res/path" } } }1.2.0
1.1.0
Added
- Add support for flavor and build type configuration. The sample configuration is as follows:
Groovy
poEditor { // Default config that applies to all flavor/build type configurations. // Also executed when calling 'importPoEditorStrings' } android { // If you have the following flavors... flavorDimensions 'type' productFlavors { free { dimension 'type' } paid { dimension 'type' } } poEditorConfig { free { // Configuration for the free flavor, same syntax as usual } paid { // Configuration for the paid flavor, same syntax as usual } debug { // Configuration for the debug build type, same syntax as usual } release { // Configuration for the release build type, same syntax as usual } } }Kotlin
poEditor { // Default config that applies to all flavor/build type configurations. // Also executed when calling 'importPoEditorStrings' } android { // If you have the following flavors... flavorDimensions("type") productFlavors { register("free") { setDimension("type") } register("paid") { setDimension("type") } } poEditorConfig { register("free") { // Configuration for the free flavor, same syntax as usual } register("paid") { // Configuration for the paid flavor, same syntax as usual } register("debug") { // Configuration for the debug build type, same syntax as usual } register("release") { // Configuration for the release build type, same syntax as usual } } }Removed
- The
resDirPathparameter is no longer needed, since it gets inferred from the flavor or build type configured in the app
1.0.0
Added
- Full project refactor in order to improve general stability and reliability of the plug-in.
Fixed
- The plug-in does not rely on
curlcommands now.
Instead it now uses OkHttp and Retrofit libraries. - Tablet strings folder are not generated if no tablet strings are found.
Changed
- The plugin name to use is now
poEditorinstead ofpoEditorPlugin. - The input parameters have been changed from snake case to camel case:
api_token -> apiToken project_id -> projectId default_lang -> defaultLang res_dir_path -> resDirPath