react-native-gesture-handler 2.17.0 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- package/android/build.gradle +14 -16
- package/package.json +1 -1
package/android/build.gradle
CHANGED
@@ -289,26 +289,24 @@ if (isGHExampleApp() && isNewArchitectureEnabled() && !project.hasProperty('skip
|
|
289
289
|
tasks.generateCodegenArtifactsFromSchema.finalizedBy('copyCodegenArtifacts')
|
290
290
|
}
|
291
291
|
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
if (isGHExampleApp()) {
|
297
|
-
return
|
298
|
-
}
|
292
|
+
if (project == rootProject) {
|
293
|
+
tasks.register('checkIntegrityBetweenArchitectures') {
|
294
|
+
group 'Verification tasks'
|
295
|
+
description 'Task to check integrity between fabric and paper architecture in terms of codegen generated interfaces/delegates'
|
299
296
|
|
300
|
-
|
301
|
-
|
297
|
+
def absoluteCodegenArtifactsPaperDestination = "../${project.property('codegenArtifactsPaperDestination')}"
|
298
|
+
def absoluteCodegenArtifactsSource = "../${project.property('codegenArtifactsSource')}"
|
302
299
|
|
303
|
-
|
304
|
-
|
305
|
-
|
300
|
+
def existingFiles = fileTree(absoluteCodegenArtifactsPaperDestination).matching {
|
301
|
+
include '**/*.java'
|
302
|
+
}
|
306
303
|
|
307
|
-
|
308
|
-
|
304
|
+
existingFiles.forEach { existingFile ->
|
305
|
+
def generatedFile = new File("${absoluteCodegenArtifactsSource}/${existingFile.name}")
|
309
306
|
|
310
|
-
|
311
|
-
|
307
|
+
if (existingFile.text != generatedFile.text) {
|
308
|
+
throw new RuntimeException("[react-native-gesture-handler] The source of ${existingFile.name} does not match with the one generated by codegen. Please check if you commited changes produced by copyCodegenArtifacts task.")
|
309
|
+
}
|
312
310
|
}
|
313
311
|
}
|
314
312
|
}
|
package/package.json
CHANGED