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: README.md
+4-21
Original file line number
Diff line number
Diff line change
@@ -113,16 +113,7 @@ will be able to access to the new auto-generated resolved string: `my_message`,
113
113
same way as with any other string, e.g. This way for Java and Kotlin: `R.string.my_message` and this way for XML layouts: `@string/my_message`.
114
114
115
115
### 2.2- Where do resolved strings go to?
116
-
By default the resolved strings go into your app's `build` folder, specifically under the `build/generated/resolved` path. That's where this plugin places them into when it is run. The build folder is usually ignored for a VCS repository, so the resolved strings won't go into your repo unless you want to change it by applying the following configuration into your app's `build.gradle` file:
117
-
118
-
```groovy
119
-
// Optional:
120
-
stringXmlReference {
121
-
keepResolvedFiles = true // By default it is false.
122
-
// If false: Resolved strings will go into the 'app/build' dir (which is a hidden dir for your VCS).
123
-
// If true: Resolved string will go into the 'app/src' dir.
124
-
}
125
-
```
116
+
The resolved strings go into your app's `build` folder, specifically under the `build/generated/resolved` path. That's where this plugin places them into when it is run.
126
117
127
118
The following cases are supported:
128
119
@@ -158,13 +149,6 @@ this plugin won't run automatically during your app's build process and instead
158
149
proper Gradle commands depending on the build variant you'd want to resolve the strings for. More info on this below under
159
150
"Running it manually".
160
151
161
-
-**keepResolvedFiles** (Boolean, default is `false`, added in version 1.1.0). When false, it will send all of the resolved strings to your app's build directory. Otherwise, when true,
162
-
it will send all of the resolved strings to your app's src dir, meaning that you will see them in your working directory.
163
-
164
-
-**useDependenciesRes** (Boolean, default is `false`, added in version 1.2.0). When false, it will only take your app's string resources into account
165
-
for resolving your string's placeholders. When true, it will take both your app's strings as well as your app's dependencies strings
166
-
for doing the resolving process. It will take all strings from your dependencies, even templates (if any) which will be resolved too.
167
-
168
152
### 3.2- How to change a configuration parameter?
169
153
170
154
In order to set any of the configuration parameters available, you'll have to add to your app's `build.gradle` file
@@ -181,8 +165,7 @@ android {
181
165
182
166
// Example of how to change some config flags
183
167
stringXmlReference {
184
-
keepResolvedFiles = true // Its default value is false.
185
-
useDependenciesRes = true // Its default value is false.
168
+
resolveOnBuild = false // Its default value is true.
186
169
}
187
170
```
188
171
@@ -328,7 +311,7 @@ First, in your `Root's build.gradle` file, you'll need to add this
0 commit comments