detox 20.44.0 → 20.45.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.
Files changed (37) hide show
  1. package/Detox-android/com/wix/detox/{20.44.0/detox-20.44.0-sources.jar → 20.45.1/detox-20.45.1-sources.jar} +0 -0
  2. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1-sources.jar.md5 +1 -0
  3. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1-sources.jar.sha1 +1 -0
  4. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1-sources.jar.sha256 +1 -0
  5. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1-sources.jar.sha512 +1 -0
  6. package/Detox-android/com/wix/detox/{20.44.0/detox-20.44.0.aar → 20.45.1/detox-20.45.1.aar} +0 -0
  7. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.aar.md5 +1 -0
  8. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.aar.sha1 +1 -0
  9. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.aar.sha256 +1 -0
  10. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.aar.sha512 +1 -0
  11. package/Detox-android/com/wix/detox/{20.44.0/detox-20.44.0.pom → 20.45.1/detox-20.45.1.pom} +1 -1
  12. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.pom.md5 +1 -0
  13. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.pom.sha1 +1 -0
  14. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.pom.sha256 +1 -0
  15. package/Detox-android/com/wix/detox/20.45.1/detox-20.45.1.pom.sha512 +1 -0
  16. package/Detox-android/com/wix/detox/maven-metadata.xml +4 -4
  17. package/Detox-android/com/wix/detox/maven-metadata.xml.md5 +1 -1
  18. package/Detox-android/com/wix/detox/maven-metadata.xml.sha1 +1 -1
  19. package/Detox-android/com/wix/detox/maven-metadata.xml.sha256 +1 -1
  20. package/Detox-android/com/wix/detox/maven-metadata.xml.sha512 +1 -1
  21. package/Detox-ios-framework.tbz +0 -0
  22. package/Detox-ios-src.tbz +0 -0
  23. package/Detox-ios-xcuitest.tbz +0 -0
  24. package/android/detox/src/full/java/com/wix/detox/reactnative/idlingresources/animations/AnimatedModuleIdlingResource.kt +4 -48
  25. package/package.json +2 -2
  26. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0-sources.jar.md5 +0 -1
  27. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0-sources.jar.sha1 +0 -1
  28. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0-sources.jar.sha256 +0 -1
  29. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0-sources.jar.sha512 +0 -1
  30. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.aar.md5 +0 -1
  31. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.aar.sha1 +0 -1
  32. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.aar.sha256 +0 -1
  33. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.aar.sha512 +0 -1
  34. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.pom.md5 +0 -1
  35. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.pom.sha1 +0 -1
  36. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.pom.sha256 +0 -1
  37. package/Detox-android/com/wix/detox/20.44.0/detox-20.44.0.pom.sha512 +0 -1
@@ -0,0 +1 @@
1
+ 437da6c0a5ae2c1d4977a5cb3c594381
@@ -0,0 +1 @@
1
+ 46a778d2606c567f78710bdd758ecfe44e3e97a8
@@ -0,0 +1 @@
1
+ 686ba729c1fd277f3d65743f0d9986cb87aa0e09893ea7b1a774b9b4b3c50bfb
@@ -0,0 +1 @@
1
+ 2339b87ef6be1b8c719fc4f4b85c645ce09ae62f1dceac7e1045e08f35a9e376e3b1421b1c619690e8c3e1682d4491730e1f8b4d304f2d7f2a707810495d6913
@@ -0,0 +1 @@
1
+ d5877f5f5d500aae60b6daecbd5c648f
@@ -0,0 +1 @@
1
+ 09e6e7ad0aef6e55f448487cb56360d498b3f6f0
@@ -0,0 +1 @@
1
+ 901e85b4b08c4c31c4d3fc44835c61da9ce834d632faeb5573bc8521394e1f46
@@ -0,0 +1 @@
1
+ e069e38703c396702300a57b11e6e46ea7b752efac0f608390017da343c2040aa9777dab2be0e85ec4e3c81517a7f604d55fbf0845bdaf6a3b2a1c02a9f4dc89
@@ -3,7 +3,7 @@
3
3
  <modelVersion>4.0.0</modelVersion>
4
4
  <groupId>com.wix</groupId>
5
5
  <artifactId>detox</artifactId>
6
- <version>20.44.0</version>
6
+ <version>20.45.1</version>
7
7
  <packaging>aar</packaging>
8
8
  <name>Detox</name>
9
9
  <description>Gray box end-to-end testing and automation library for mobile apps</description>
@@ -0,0 +1 @@
1
+ 43ac5b85bfa0841e9d6d174bad45c8cc
@@ -0,0 +1 @@
1
+ b67f418f459b003c18fbcd07e4126b9c83f9dda8
@@ -0,0 +1 @@
1
+ 05ae1f6e116faadd83a030406cbe6776ee6e36762505e59e563c861a98cbc31e
@@ -0,0 +1 @@
1
+ 195b29f8eac21dbce9cea79a5f0097e14307568400f96dfc5a058117deceb9ccf99c4a0867a9a72d2d019b3c07fb41453c661b16b5235f398df816c5a815b51c
@@ -3,11 +3,11 @@
3
3
  <groupId>com.wix</groupId>
4
4
  <artifactId>detox</artifactId>
5
5
  <versioning>
6
- <latest>20.44.0</latest>
7
- <release>20.44.0</release>
6
+ <latest>20.45.1</latest>
7
+ <release>20.45.1</release>
8
8
  <versions>
9
- <version>20.44.0</version>
9
+ <version>20.45.1</version>
10
10
  </versions>
11
- <lastUpdated>20251019160654</lastUpdated>
11
+ <lastUpdated>20251030165738</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 129e8845e2c49ebb6a8a08917ba2f5ca
1
+ 91b7d57a8c6d220ea8c0b302350ef444
@@ -1 +1 @@
1
- 5155667329c4ec88cdebcd3eec1e00ab5cc18aab
1
+ 0431fedec1af54a5b47e09664c672f8003b7f995
@@ -1 +1 @@
1
- 3141cb84e424059e9ed45660a82052b581406ab15a4fc8c400df3c1950fae08c
1
+ cf40046dbf6b26afe2d8f472072098db3f5b841c1f030a8e11dad03318aca4b7
@@ -1 +1 @@
1
- 81198b46c3596f99eb9a5ed2536ed0cc18594792109aec6e36e91bc4be60f5cc5750b98c4add46ecc407ac4502f7c7fb66313f710c673ddfcec10f13bcb99ac9
1
+ c0081527b1fa7a3cea51e8c56321165cf7295dc351def86ca6c102b3a73e26efc3e8ab765e1ccf625fb4df2d17252d6d1aff03c471c4dfd173db32456880f652
Binary file
package/Detox-ios-src.tbz CHANGED
Binary file
Binary file
@@ -9,11 +9,7 @@ import com.facebook.react.animated.NativeAnimatedNodesManager
9
9
  import com.facebook.react.bridge.ReactContext
10
10
  import com.wix.detox.common.DetoxErrors
11
11
  import com.wix.detox.common.DetoxLog.Companion.LOG_TAG
12
- import com.wix.detox.common.KotlinReflectUtils
13
- import com.wix.detox.reactnative.ReactNativeInfo
14
12
  import com.wix.detox.reactnative.idlingresources.DetoxIdlingResource
15
- import kotlin.reflect.full.memberProperties
16
- import kotlin.reflect.jvm.isAccessible
17
13
 
18
14
  class AnimatedModuleIdlingResource(private val reactContext: ReactContext) : DetoxIdlingResource(),
19
15
  Choreographer.FrameCallback {
@@ -31,8 +27,7 @@ class AnimatedModuleIdlingResource(private val reactContext: ReactContext) : Det
31
27
  return false
32
28
  }
33
29
 
34
- if (animatedModule.hasQueuedAnimations() ||
35
- animatedModule.hasActiveAnimations()) {
30
+ if (animatedModule.hasActiveAnimations()) {
36
31
  Choreographer.getInstance().postFrameCallback(this)
37
32
  return false
38
33
  }
@@ -56,7 +51,7 @@ class AnimatedModuleIdlingResource(private val reactContext: ReactContext) : Det
56
51
  }
57
52
 
58
53
  private fun getAnimatedModule(): AnimatedModuleFacade? =
59
- if (animatedModule != null) {
54
+ if (animatedModule != null) {
60
55
  animatedModule
61
56
  } else {
62
57
  reactContext.getNativeModule(NativeAnimatedModule::class.java)?.let {
@@ -68,50 +63,11 @@ class AnimatedModuleIdlingResource(private val reactContext: ReactContext) : Det
68
63
  }
69
64
 
70
65
  private class AnimatedModuleFacade(private val animatedModule: NativeAnimatedModule) {
71
- private val operationsQueue: OperationsQueueReflected
72
- private val preOperationsQueue: OperationsQueueReflected
73
- private val nodesManager: NativeAnimatedNodesManager
74
-
75
- init {
76
- val operationsQueueName = if (ReactNativeInfo.rnVersion().minor > 79) "operations" else "mOperations"
77
- val preOperationsQueueName = if (ReactNativeInfo.rnVersion().minor > 79) "preOperations" else "mPreOperations"
78
-
79
-
80
- operationsQueue = (NativeAnimatedModule::class.memberProperties.find { it.name == operationsQueueName } ?:
81
- throw DetoxErrors.DetoxIllegalStateException("$operationsQueueName property cannot be accessed")).let {
82
-
83
- it.isAccessible = true
84
- OperationsQueueReflected(it.get(animatedModule) as Any)
85
- }
86
-
87
- preOperationsQueue = (NativeAnimatedModule::class.memberProperties.find { it.name == preOperationsQueueName } ?:
88
- throw DetoxErrors.DetoxIllegalStateException("$preOperationsQueueName property cannot be accessed")).let {
89
-
90
- it.isAccessible = true
91
- OperationsQueueReflected(it.get(animatedModule) as Any)
92
- }
93
-
94
- nodesManager = animatedModule.nodesManager ?:
95
- throw DetoxErrors.DetoxIllegalStateException("AnimatedModule exists but nodesManager is null")
96
- }
97
-
98
- @UiThread
99
- fun hasQueuedAnimations(): Boolean =
100
- !preOperationsQueue.isEmpty() ||
101
- !operationsQueue.isEmpty()
66
+ private val nodesManager: NativeAnimatedNodesManager = animatedModule.nodesManager
67
+ ?: throw DetoxErrors.DetoxIllegalStateException("AnimatedModule exists but nodesManager is null")
102
68
 
103
69
  @UiThread
104
70
  fun hasActiveAnimations(): Boolean {
105
71
  return nodesManager.hasActiveAnimations()
106
72
  }
107
73
  }
108
-
109
- class OperationsQueueReflected(private val operationsQueue: Any) {
110
- fun isEmpty(): Boolean {
111
- KotlinReflectUtils.getPropertyValueWithCustomGetter<Boolean>(operationsQueue, "isEmpty")?.let {
112
- return it
113
- }
114
-
115
- throw DetoxErrors.DetoxIllegalStateException("isEmpty method/property cannot be reached")
116
- }
117
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "detox",
3
3
  "description": "E2E tests and automation for mobile",
4
- "version": "20.44.0",
4
+ "version": "20.45.1",
5
5
  "bin": {
6
6
  "detox": "local-cli/cli.js"
7
7
  },
@@ -120,5 +120,5 @@
120
120
  "browserslist": [
121
121
  "node 14"
122
122
  ],
123
- "gitHead": "fb5940dbdf93e56185fed10f4adefecff37fcc77"
123
+ "gitHead": "43b45aefe4249aebe34622f63389b363591362ae"
124
124
  }
@@ -1 +0,0 @@
1
- 8742023668a8e532cf18692cad091938
@@ -1 +0,0 @@
1
- ad0bb17a22af68dececf00e90f2b6ddb0faade67
@@ -1 +0,0 @@
1
- cb9a4c6ad50b011b5ac72ffb30b66866af988d647bcffd645b3f38f589add79e
@@ -1 +0,0 @@
1
- 532b3de4c23855a7bf62dbddf8406e5656bf81a3435a39adad9645fd019b679c0e16e699ce1e8085c9401dda8e8ffa661904e586f3c3897eddf7e143ae06dbbe
@@ -1 +0,0 @@
1
- 288bdce8c1fccf5fcf9fc72e8b4ee44d
@@ -1 +0,0 @@
1
- 93430b9679720bfa8934353c250fba1595144469
@@ -1 +0,0 @@
1
- 843856839476df2363fc390f8fbf1a524099990b4ce2eba11b21ca9a77e34e1c
@@ -1 +0,0 @@
1
- b56d42e400cb99d711c73de989b12b3fb7dcdf369929ff0ffdd5539fd5cbf299657c3aa7e75991ee0b4b6198c0792ec5fc7f671b3dbb7381f6fbf6e4d94afde1
@@ -1 +0,0 @@
1
- 7760c7533c59d591c05ba1f3b13b8b4a
@@ -1 +0,0 @@
1
- c39734d13b51edebee43ca52381e1e85a8a80878
@@ -1 +0,0 @@
1
- 48ab199f2609d9fedac60f29efe20b95a797f380fa116e6e29e22f7d3f9fde6a
@@ -1 +0,0 @@
1
- ce99db5cea5d30288834e7209bd6dfcfe63301ac6d992db7fd39dca4145741db5839f20dbbed53b198711cf79ca5d83f1efea28f03173205173181ad219cdcc8