react-native-update 10.51.0 → 10.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +10 -0
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -154,6 +154,16 @@ android {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
// AGP 9 disables the resValues feature for libraries by default; the
|
|
158
|
+
// pushy_build_time resource below needs it back on. The block exists
|
|
159
|
+
// since AGP 4, so guard like supportsNamespace() does for old projects.
|
|
160
|
+
def agpMajor = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
|
|
161
|
+
if (agpMajor >= 4) {
|
|
162
|
+
buildFeatures {
|
|
163
|
+
resValues true
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
157
167
|
buildTypes {
|
|
158
168
|
release {
|
|
159
169
|
resValue("string", "pushy_build_time", "${minutesSinceEpoch}")
|