You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+77-1Lines changed: 77 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,83 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
23
23
## [Unreleased]
24
24
### 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
+
<detailsopen><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
0 commit comments