Skip to content

Commit 6cf726d

Browse files
author
Adrián García
authored
Update CHANGELOG.md
1 parent e5283a0 commit 6cf726d

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

CHANGELOG.md

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,83 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222

2323
## [Unreleased]
2424
### Added
25-
- No new features!
25+
- Add support for configuring non-standard resource directory path via `defaultResPath`. _Thanks to [@rafid059](https://github.com/rafid059) for the contribution!_
26+
<details open><summary>Groovy</summary>
27+
28+
```groovy
29+
poEditor {
30+
defaultResPath = "your/res/path"
31+
}
32+
33+
android {
34+
// If you have the following flavors...
35+
flavorDimensions 'type'
36+
productFlavors {
37+
free { dimension 'type' }
38+
paid { dimension 'type' }
39+
}
40+
41+
poEditorConfig {
42+
free {
43+
// Configuration for the free flavor, same syntax as usual
44+
defaultResPath = "your/free/res/path"
45+
}
46+
paid {
47+
// Configuration for the paid flavor, same syntax as usual
48+
defaultResPath = "your/paid/res/path"
49+
}
50+
debug {
51+
// Configuration for the debug build type, same syntax as usual
52+
defaultResPath = "your/debug/res/path"
53+
}
54+
release {
55+
// Configuration for the release build type, same syntax as usual
56+
defaultResPath = "your/release/res/path"
57+
}
58+
}
59+
}
60+
```
61+
62+
</details>
63+
64+
<details><summary>Kotlin</summary>
65+
66+
```kt
67+
poEditor {
68+
defaultResPath = "your/res/path"
69+
}
70+
71+
android {
72+
// If you have the following flavors...
73+
flavorDimensions("type")
74+
75+
productFlavors {
76+
register("free") { setDimension("type") }
77+
register("paid") { setDimension("type") }
78+
}
79+
80+
poEditorConfig {
81+
register("free") {
82+
// Configuration for the free flavor, same syntax as usual
83+
defaultResPath = "your/free/res/path"
84+
}
85+
register("paid") {
86+
// Configuration for the paid flavor, same syntax as usual
87+
defaultResPath = "your/paid/res/path"
88+
}
89+
register("debug") {
90+
// Configuration for the debug build type, same syntax as usual
91+
defaultResPath = "your/debug/res/path"
92+
}
93+
register("release") {
94+
// Configuration for the release build type, same syntax as usual
95+
defaultResPath = "your/release/res/path"
96+
}
97+
}
98+
}
99+
```
100+
</details>
101+
26102
### Changed
27103
- No changed features!
28104
### Deprecated

0 commit comments

Comments
 (0)