@nativescript/core 9.0.0-next-09-24-2025-17985801416 → 9.0.0-next-10-06-2025-18277360121

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 (181) hide show
  1. package/inspector_modules.js +74 -47
  2. package/inspector_modules.js.map +1 -1
  3. package/package.json +1 -1
  4. package/platforms/android/include.gradle +51 -0
  5. package/platforms/android/java/org/nativescript/Process.java +59 -0
  6. package/platforms/android/java/org/nativescript/widgets/AbsoluteLayout.java +88 -0
  7. package/platforms/android/java/org/nativescript/widgets/AnimatorHelper.java +61 -0
  8. package/platforms/android/java/org/nativescript/widgets/Async.java +1356 -0
  9. package/platforms/android/java/org/nativescript/widgets/BorderDrawable.java +936 -0
  10. package/platforms/android/java/org/nativescript/widgets/BottomNavigationBar.java +308 -0
  11. package/platforms/android/java/org/nativescript/widgets/BoxShadowDrawable.java +175 -0
  12. package/platforms/android/java/org/nativescript/widgets/CSSValue.java +34 -0
  13. package/platforms/android/java/org/nativescript/widgets/CommonLayoutParams.java +456 -0
  14. package/platforms/android/java/org/nativescript/widgets/ContentLayout.java +85 -0
  15. package/platforms/android/java/org/nativescript/widgets/CustomTransition.java +135 -0
  16. package/platforms/android/java/org/nativescript/widgets/CustomTypefaceSpan.java +44 -0
  17. package/platforms/android/java/org/nativescript/widgets/Dock.java +15 -0
  18. package/platforms/android/java/org/nativescript/widgets/DockLayout.java +185 -0
  19. package/platforms/android/java/org/nativescript/widgets/FileHelper.java +815 -0
  20. package/platforms/android/java/org/nativescript/widgets/FlexLine.java +177 -0
  21. package/platforms/android/java/org/nativescript/widgets/FlexboxLayout.java +2769 -0
  22. package/platforms/android/java/org/nativescript/widgets/FragmentBase.java +14 -0
  23. package/platforms/android/java/org/nativescript/widgets/GridLayout.java +1172 -0
  24. package/platforms/android/java/org/nativescript/widgets/GridUnitType.java +10 -0
  25. package/platforms/android/java/org/nativescript/widgets/HorizontalScrollView.java +256 -0
  26. package/platforms/android/java/org/nativescript/widgets/ImageView.java +423 -0
  27. package/platforms/android/java/org/nativescript/widgets/ItemSpec.java +56 -0
  28. package/platforms/android/java/org/nativescript/widgets/LayoutBase.java +98 -0
  29. package/platforms/android/java/org/nativescript/widgets/LinearGradientDefinition.java +46 -0
  30. package/platforms/android/java/org/nativescript/widgets/Orientation.java +9 -0
  31. package/platforms/android/java/org/nativescript/widgets/OriginPoint.java +74 -0
  32. package/platforms/android/java/org/nativescript/widgets/ScrollSavedState.java +63 -0
  33. package/platforms/android/java/org/nativescript/widgets/SegmentedBarColorDrawable.java +27 -0
  34. package/platforms/android/java/org/nativescript/widgets/StackLayout.java +231 -0
  35. package/platforms/android/java/org/nativescript/widgets/StyleableTextView.java +50 -0
  36. package/platforms/android/java/org/nativescript/widgets/TabIconRenderingMode.java +6 -0
  37. package/platforms/android/java/org/nativescript/widgets/TabItemSpec.java +15 -0
  38. package/platforms/android/java/org/nativescript/widgets/TabLayout.java +451 -0
  39. package/platforms/android/java/org/nativescript/widgets/TabStrip.java +294 -0
  40. package/platforms/android/java/org/nativescript/widgets/TabViewPager.java +64 -0
  41. package/platforms/android/java/org/nativescript/widgets/TabsBar.java +443 -0
  42. package/platforms/android/java/org/nativescript/widgets/Utils.java +546 -0
  43. package/platforms/android/java/org/nativescript/widgets/VerticalScrollView.java +258 -0
  44. package/platforms/android/java/org/nativescript/widgets/ViewHelper.java +564 -0
  45. package/platforms/android/java/org/nativescript/widgets/WrapLayout.java +252 -0
  46. package/platforms/android/java/org/nativescript/widgets/image/AsyncTask.java +679 -0
  47. package/platforms/android/java/org/nativescript/widgets/image/BitmapOwner.java +17 -0
  48. package/platforms/android/java/org/nativescript/widgets/image/Cache.java +471 -0
  49. package/platforms/android/java/org/nativescript/widgets/image/DiskLruCache.java +970 -0
  50. package/platforms/android/java/org/nativescript/widgets/image/Fetcher.java +747 -0
  51. package/platforms/android/java/org/nativescript/widgets/image/Utils.java +58 -0
  52. package/platforms/android/java/org/nativescript/widgets/image/Worker.java +571 -0
  53. package/platforms/ios/src/TNSWidgets/Info.plist +26 -0
  54. package/platforms/ios/src/TNSWidgets/NSData+Async.m +42 -0
  55. package/platforms/ios/src/TNSWidgets/NSFileHandle+Async.m +82 -0
  56. package/platforms/ios/src/TNSWidgets/NSObject+Swizzling.m +68 -0
  57. package/platforms/ios/src/TNSWidgets/NSString+Async.m +51 -0
  58. package/platforms/ios/src/TNSWidgets/TNSLabel.m +42 -0
  59. package/platforms/ios/src/TNSWidgets/UIImage+TNSBlocks.m +77 -0
  60. package/platforms/ios/src/TNSWidgets/UIView+PassThroughParent.m +53 -0
  61. package/platforms/ios/src/TNSWidgets/UIView+PropertyBag.m +72 -0
  62. package/platforms/ios/src/module.modulemap +5 -0
  63. package/platforms/android/widgets-release.aar +0 -0
  64. package/platforms/ios/TNSWidgets.xcframework/Info.plist +0 -102
  65. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  66. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  67. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  68. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  69. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  70. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  71. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  72. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  75. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  76. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  77. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  78. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  79. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  80. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  81. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  82. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  83. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  84. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  85. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  86. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +0 -60
  87. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +0 -24
  88. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +0 -22
  89. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +0 -25
  90. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +0 -16
  91. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +0 -29
  92. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +0 -25
  93. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +0 -26
  94. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +0 -17
  95. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +0 -6
  96. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +0 -17
  97. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +0 -18
  98. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +0 -52
  99. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  100. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +0 -60
  101. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +0 -24
  102. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +0 -22
  103. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +0 -25
  104. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +0 -16
  105. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +0 -29
  106. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +0 -25
  107. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +0 -26
  108. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +0 -17
  109. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +0 -6
  110. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +0 -17
  111. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +0 -18
  112. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +0 -52
  113. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  114. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  115. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  116. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  117. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  118. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  119. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  120. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  121. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  122. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  123. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  124. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  125. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  126. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  127. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  128. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  129. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  130. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  131. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  132. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  133. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  134. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  135. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  136. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  137. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  138. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  139. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  140. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  141. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  142. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  143. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  144. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  145. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  146. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  147. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  148. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  149. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  150. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  151. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  152. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  153. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  154. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  155. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  156. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  157. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  158. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  159. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  160. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  161. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  162. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  163. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  164. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  165. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  166. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  167. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  168. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  169. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  170. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  171. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  172. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  173. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSData+Async.h +0 -0
  174. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSFileHandle+Async.h +0 -0
  175. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders → src/TNSWidgets}/NSObject+Swizzling.h +0 -0
  176. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSString+Async.h +0 -0
  177. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/TNSLabel.h +0 -0
  178. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/TNSWidgets.h +0 -0
  179. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/UIImage+TNSBlocks.h +0 -0
  180. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/UIView+PassThroughParent.h +0 -0
  181. /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders → src/TNSWidgets}/UIView+PropertyBag.h +0 -0
@@ -2,21 +2,12 @@ import './globals';
2
2
  import './debugger/webinspector-network';
3
3
  import './debugger/webinspector-dom';
4
4
  import './debugger/webinspector-css';
5
- // require('./debugger/webinspector-network');
6
- // require('./debugger/webinspector-dom');
7
- // require('./debugger/webinspector-css');
8
- /**
9
- * Source map remapping for stack traces for the runtime in-flight error displays
10
- * Currently this is very slow. Need to find much faster way to remap stack traces.
11
- * NOTE: This likely should not be in core because errors can happen on boot before core is fully loaded. Ideally the runtime should provide this in full but unsure.
12
- */
13
5
  import { File, knownFolders } from './file-system';
14
6
  // import/destructure style helps commonjs/esm build issues
15
7
  import * as sourceMapJs from 'source-map-js';
16
8
  const { SourceMapConsumer } = sourceMapJs;
17
- // note: webpack config can by default use 'source-map' files with runtimes v9+
9
+ // note: bundlers can by default use 'source-map' files with runtimes v9+
18
10
  // helps avoid having to decode the inline base64 source maps
19
- // currently same performance on inline vs file source maps so file source maps may just be cleaner
20
11
  const usingSourceMapFiles = true;
21
12
  let loadedSourceMaps;
22
13
  let consumerCache;
@@ -26,9 +17,14 @@ function getConsumer(mapPath, sourceMap) {
26
17
  }
27
18
  let c = consumerCache.get(mapPath);
28
19
  if (!c) {
29
- // parse once
30
- c = new SourceMapConsumer(sourceMap);
31
- consumerCache.set(mapPath, c);
20
+ try {
21
+ c = new SourceMapConsumer(sourceMap);
22
+ consumerCache.set(mapPath, c);
23
+ }
24
+ catch (error) {
25
+ console.error(`Failed to create SourceMapConsumer for ${mapPath}:`, error);
26
+ return null;
27
+ }
32
28
  }
33
29
  return c;
34
30
  }
@@ -38,38 +34,45 @@ function loadAndExtractMap(mapPath) {
38
34
  loadedSourceMaps = new Map();
39
35
  }
40
36
  let mapText = loadedSourceMaps.get(mapPath);
41
- // Note: not sure if separate source map files or inline is better
42
- // need to test build times one way or other with webpack, vite and rspack
43
- // but this handles either way
44
37
  if (mapText) {
45
38
  return mapText; // already loaded
46
39
  }
47
40
  else {
48
41
  if (File.exists(mapPath)) {
49
- const contents = File.fromPath(mapPath).readTextSync();
50
- if (usingSourceMapFiles) {
51
- mapText = contents;
42
+ try {
43
+ const contents = File.fromPath(mapPath).readTextSync();
44
+ // Note: we may want to do this, keeping for reference if needed in future.
45
+ // Check size before processing (skip very large source maps)
46
+ // const maxSizeBytes = 10 * 1024 * 1024; // 10MB limit
47
+ // if (contents.length > maxSizeBytes) {
48
+ // console.warn(`Source map ${mapPath} is too large (${contents.length} bytes), skipping...`);
49
+ // return null;
50
+ // }
51
+ if (usingSourceMapFiles) {
52
+ mapText = contents;
53
+ }
54
+ else {
55
+ // parse out the inline base64
56
+ const match = contents.match(/\/\/[#@] sourceMappingURL=data:application\/json[^,]+,(.+)$/);
57
+ if (!match) {
58
+ console.warn(`Invalid source map format in ${mapPath}`);
59
+ return null;
60
+ }
61
+ const base64 = match[1];
62
+ const binary = atob(base64);
63
+ // this is the raw text of the source map
64
+ // seems to work without doing decodeURIComponent tricks
65
+ mapText = binary;
66
+ }
52
67
  }
53
- else {
54
- // parse out the inline base64
55
- const match = contents.match(/\/\/[#@] sourceMappingURL=data:application\/json[^,]+,(.+)$/);
56
- const base64 = match[1];
57
- const binary = atob(base64);
58
- // this is the raw text of the source map
59
- // seems to work without doing the decodeURIComponent trick
60
- mapText = binary;
61
- // // escape each char code into %XX and let decodeURIComponent build the UTF-8 string
62
- // mapText = decodeURIComponent(
63
- // binary
64
- // .split('')
65
- // .map(c => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2))
66
- // .join('')
67
- // );
68
+ catch (error) {
69
+ console.error(`Failed to load source map ${mapPath}:`, error);
70
+ return null;
68
71
  }
69
72
  }
70
73
  else {
71
74
  // no source maps
72
- return { source: null, line: 0, column: 0 };
75
+ return null;
73
76
  }
74
77
  }
75
78
  loadedSourceMaps.set(mapPath, mapText); // cache it
@@ -77,9 +80,10 @@ function loadAndExtractMap(mapPath) {
77
80
  }
78
81
  function remapFrame(file, line, column) {
79
82
  /**
80
- * webpack config can use source map files or inline.
83
+ * bundlers can use source map files or inline.
81
84
  * To use source map files, run with `--env.sourceMap=source-map`.
82
- * @nativescript/webpack 5.1 enables `source-map` files by default when using runtimes v9+.
85
+ * Notes:
86
+ * Starting with @nativescript/webpack 5.0.25, `source-map` files are used by default when using runtimes v9+.
83
87
  */
84
88
  const appPath = knownFolders.currentApp().path;
85
89
  let sourceMapFileExt = '';
@@ -87,10 +91,21 @@ function remapFrame(file, line, column) {
87
91
  sourceMapFileExt = '.map';
88
92
  }
89
93
  const mapPath = `${appPath}/${file.replace('file:///app/', '')}${sourceMapFileExt}`;
90
- // 3) hand it to the consumer
91
94
  const sourceMap = loadAndExtractMap(mapPath);
95
+ if (!sourceMap) {
96
+ return { source: null, line: 0, column: 0 };
97
+ }
92
98
  const consumer = getConsumer(mapPath, sourceMap);
93
- return consumer.originalPositionFor({ line, column });
99
+ if (!consumer) {
100
+ return { source: null, line: 0, column: 0 };
101
+ }
102
+ try {
103
+ return consumer.originalPositionFor({ line, column });
104
+ }
105
+ catch (error) {
106
+ console.error(`Failed to get original position for ${file}:${line}:${column}:`, error);
107
+ return { source: null, line: 0, column: 0 };
108
+ }
94
109
  }
95
110
  function remapStack(raw) {
96
111
  const lines = raw.split('\n');
@@ -98,21 +113,33 @@ function remapStack(raw) {
98
113
  const m = /\((.+):(\d+):(\d+)\)/.exec(line);
99
114
  if (!m)
100
115
  return line;
101
- const [_, file, l, c] = m;
102
- const orig = remapFrame(file, +l, +c);
103
- if (!orig.source)
104
- return line;
105
- return line.replace(/\(.+\)/, `(${orig.source}:${orig.line}:${orig.column})`);
116
+ try {
117
+ const [_, file, l, c] = m;
118
+ const orig = remapFrame(file, +l, +c);
119
+ if (!orig.source)
120
+ return line;
121
+ return line.replace(/\(.+\)/, `(${orig.source}:${orig.line}:${orig.column})`);
122
+ }
123
+ catch (error) {
124
+ console.error('Failed to remap stack frame:', line, error);
125
+ return line; // return original line if remapping fails
126
+ }
106
127
  });
107
128
  return out.join('\n');
108
129
  }
109
130
  /**
110
- * Added in 9.0 runtimes.
111
- * Allows the runtime to remap stack traces before displaying them in the in-flight error screens.
131
+ * Added with 9.0 runtimes.
132
+ * Allows the runtime to remap stack traces before displaying them via in-flight error screens.
112
133
  */
113
134
  global.__ns_remapStack = (rawStack) => {
114
135
  // console.log('Remapping stack trace...');
115
- return remapStack(rawStack);
136
+ try {
137
+ return remapStack(rawStack);
138
+ }
139
+ catch (error) {
140
+ console.error('Failed to remap stack trace, returning original:', error);
141
+ return rawStack; // fallback to original stack trace
142
+ }
116
143
  };
117
144
  /**
118
145
  * End of source map remapping for stack traces
@@ -1 +1 @@
1
- {"version":3,"file":"inspector_modules.js","sourceRoot":"","sources":["../../../packages/core/inspector_modules.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAC;AAEnB,OAAO,iCAAiC,CAAC;AACzC,OAAO,6BAA6B,CAAC;AACrC,OAAO,6BAA6B,CAAC;AACrC,8CAA8C;AAC9C,0CAA0C;AAC1C,0CAA0C;AAE1C;;;;GAIG;AACH,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACnD,2DAA2D;AAC3D,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,MAAM,EAAE,iBAAiB,EAAE,GAAG,WAAW,CAAC;AAE1C,+EAA+E;AAC/E,6DAA6D;AAC7D,mGAAmG;AACnG,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACjC,IAAI,gBAAkC,CAAC;AACvC,IAAI,aAA+B,CAAC;AAEpC,SAAS,WAAW,CAAC,OAAe,EAAE,SAAc;IACnD,IAAI,CAAC,aAAa,EAAE,CAAC;QACpB,aAAa,GAAG,IAAI,GAAG,EAAE,CAAC;IAC3B,CAAC;IACD,IAAI,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACnC,IAAI,CAAC,CAAC,EAAE,CAAC;QACR,aAAa;QACb,CAAC,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AC,CAAC;IACH,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC;AAED;;;GAGG;AACF,MAAc,CAAC,eAAe,GAAG,CAAC,QAAgB,EAAE,EAAE;IACtD,2CAA2C;IAC3C,IAAI,CAAC;QACJ,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,kDAAkD,EAAE,KAAK,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC,CAAC,mCAAmC;IACrD,CAAC;AACF,CAAC,CAAC;AACF;;GAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/core",
3
- "version": "9.0.0-next-09-24-2025-17985801416",
3
+ "version": "9.0.0-next-10-06-2025-18277360121",
4
4
  "description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
5
5
  "type": "module",
6
6
  "main": "index",
@@ -0,0 +1,51 @@
1
+
2
+ dependencies {
3
+ def androidXViewPagerVersion = "1.0.0"
4
+ if (project.hasProperty("androidXViewPager")) {
5
+ androidXViewPagerVersion = androidXViewPager
6
+ println "\t + using android X library androidx.viewpager2:viewpager2:$androidXViewPagerVersion"
7
+ }
8
+
9
+ def androidXFragmentVersion = "1.4.1"
10
+ if (project.hasProperty("androidXFragment")) {
11
+ androidXFragmentVersion = androidXFragment
12
+ println "\t + using android X library androidx.fragment:fragment:$androidXFragmentVersion"
13
+ }
14
+
15
+ def androidXTransitionVersion = "1.4.1"
16
+ if (project.hasProperty("androidXTransition")) {
17
+ androidXTransitionVersion = androidXTransition
18
+ println "\t + using android X library androidx.transition:transition:$androidXTransitionVersion"
19
+ }
20
+
21
+ def androidXExifInterfaceVersion = "1.3.3"
22
+ if (project.hasProperty("androidXExifInterface")) {
23
+ androidXExifInterfaceVersion = androidXExifInterface
24
+ println "\t + using android X library androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion"
25
+ }
26
+
27
+
28
+ def androidXAppCompatVersion = "1.4.1"
29
+ if (project.hasProperty("androidXAppCompat")) {
30
+ androidXAppCompatVersion = androidXAppCompat
31
+ println "\t + using android X library androidx.appcompat:appcompat:$androidXAppCompatVersion"
32
+ }
33
+
34
+ def androidXDocumentFileVersion = "1.0.1"
35
+ if (project.hasProperty("androidXDocumentFile")) {
36
+ androidXDocumentFileVersion = androidXDocumentFile
37
+ println "\t + using android X library androidx.documentfile:documentfile:$androidXDocumentFileVersion"
38
+ }
39
+
40
+
41
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
42
+
43
+ println 'Using android X'
44
+ // implementation 'androidx.viewpager:viewpager:' + androidxVersion
45
+ implementation "androidx.viewpager2:viewpager2:$androidXViewPagerVersion"
46
+ implementation "androidx.fragment:fragment:$androidXFragmentVersion"
47
+ implementation "androidx.transition:transition:$androidXTransitionVersion"
48
+ implementation "androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion"
49
+ implementation "androidx.appcompat:appcompat:$androidXAppCompatVersion"
50
+ implementation "androidx.documentfile:documentfile:$androidXDocumentFileVersion"
51
+ }
@@ -0,0 +1,59 @@
1
+ package org.nativescript;
2
+
3
+ import android.os.SystemClock;
4
+ import android.util.Log;
5
+
6
+ import java.io.BufferedReader;
7
+ import java.io.FileReader;
8
+
9
+ /**
10
+ * Created by cankov on 15/05/2017.
11
+ */
12
+ public class Process {
13
+ static long startTime = -1;
14
+
15
+ public static long getStartTime() {
16
+ if (startTime != -1) {
17
+ return startTime;
18
+ }
19
+
20
+ try {
21
+ int pid = android.os.Process.myPid();
22
+ final String path = "/proc/" + pid + "/stat";
23
+ final BufferedReader reader = new BufferedReader(new FileReader(path));
24
+ final String stat;
25
+ try {
26
+ stat = reader.readLine();
27
+ } finally {
28
+ reader.close();
29
+ }
30
+ final String field2End = ") ";
31
+ final String fieldSep = " ";
32
+ final int fieldStartTime = 20;
33
+ final int msInSec = 1000;
34
+
35
+ final String[] fields = stat.substring(stat.lastIndexOf(field2End)).split(fieldSep);
36
+ final long t = Long.parseLong(fields[fieldStartTime]);
37
+ int tckName;
38
+ try {
39
+ tckName = Class.forName("android.system.OsConstants").getField("_SC_CLK_TCK").getInt(null);
40
+ } catch (ClassNotFoundException e) {
41
+ tckName = Class.forName("libcore.io.OsConstants").getField("_SC_CLK_TCK").getInt(null);
42
+ }
43
+ final Object os = Class.forName("libcore.io.Libcore").getField("os").get(null);
44
+ final long tck = (Long) os.getClass().getMethod("sysconf", Integer.TYPE).invoke(os, tckName);
45
+ startTime = t * msInSec / tck;
46
+ } catch (Exception e) {
47
+ Log.v("JS", "Failed to get process start time. Using the current time as start time. Error: " + e);
48
+ startTime = SystemClock.elapsedRealtime();
49
+ }
50
+
51
+ return startTime;
52
+ }
53
+
54
+ public static long getUpTime() {
55
+ long startTime = getStartTime();
56
+ long currentTime = SystemClock.elapsedRealtime();
57
+ return currentTime - startTime;
58
+ }
59
+ }
@@ -0,0 +1,88 @@
1
+ /**
2
+ *
3
+ */
4
+ package org.nativescript.widgets;
5
+
6
+ import android.content.Context;
7
+ import android.view.View;
8
+ import android.util.AttributeSet;
9
+
10
+ /**
11
+ * @author hhristov
12
+ *
13
+ */
14
+ public class AbsoluteLayout extends LayoutBase {
15
+
16
+ public AbsoluteLayout(Context context) {
17
+ this(context, null);
18
+ }
19
+ public AbsoluteLayout(Context context, AttributeSet attrs) {
20
+ this(context, attrs, 0);
21
+ }
22
+ public AbsoluteLayout(Context context, AttributeSet attrs, int defStyleAttr) {
23
+ super(context, attrs, defStyleAttr);
24
+ }
25
+
26
+ @Override
27
+ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
28
+ CommonLayoutParams.adjustChildrenLayoutParams(this, widthMeasureSpec, heightMeasureSpec);
29
+
30
+ int measureWidth = 0;
31
+ int measureHeight = 0;
32
+ int childMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
33
+
34
+ for (int i = 0, count = this.getChildCount(); i < count; i++) {
35
+ View child = this.getChildAt(i);
36
+ if (child.getVisibility() == View.GONE) {
37
+ continue;
38
+ }
39
+
40
+ CommonLayoutParams.measureChild(child, childMeasureSpec, childMeasureSpec);
41
+ final int childMeasuredWidth = CommonLayoutParams.getDesiredWidth(child);
42
+ final int childMeasuredHeight = CommonLayoutParams.getDesiredHeight(child);
43
+
44
+ CommonLayoutParams childLayoutParams = (CommonLayoutParams) child.getLayoutParams();
45
+ measureWidth = Math.max(measureWidth, childLayoutParams.left + childMeasuredWidth);
46
+ measureHeight = Math.max(measureHeight, childLayoutParams.top + childMeasuredHeight);
47
+ }
48
+
49
+ // Add in our padding
50
+ measureWidth += this.getPaddingLeft() + this.getPaddingRight();
51
+ measureHeight += this.getPaddingTop() + this.getPaddingBottom();
52
+
53
+ // Check against our minimum height
54
+ measureWidth = Math.max(measureWidth, this.getSuggestedMinimumWidth());
55
+ measureHeight = Math.max(measureHeight, this.getSuggestedMinimumHeight());
56
+
57
+ int widthSizeAndState = resolveSizeAndState(measureWidth, widthMeasureSpec, 0);
58
+ int heightSizeAndState = resolveSizeAndState(measureHeight, heightMeasureSpec, 0);
59
+
60
+ this.setMeasuredDimension(widthSizeAndState, heightSizeAndState);
61
+ }
62
+
63
+ @Override
64
+ protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
65
+ int leftPadding = this.getPaddingLeft();
66
+ int topPadding = this.getPaddingTop();
67
+
68
+ for (int i = 0, count = this.getChildCount(); i < count; i++) {
69
+ View child = this.getChildAt(i);
70
+ if (child.getVisibility() == View.GONE) {
71
+ continue;
72
+ }
73
+
74
+ CommonLayoutParams childLayoutParams = (CommonLayoutParams) child.getLayoutParams();
75
+ int childWidth = child.getMeasuredWidth();
76
+ int childHeight = child.getMeasuredHeight();
77
+
78
+ int childLeft = leftPadding + childLayoutParams.left;
79
+ int childTop = topPadding + childLayoutParams.top;
80
+ int childRight = childLeft + childWidth + childLayoutParams.leftMargin + childLayoutParams.rightMargin;
81
+ int childBottom = childTop + childHeight + childLayoutParams.topMargin + childLayoutParams.bottomMargin;
82
+
83
+ CommonLayoutParams.layoutChild(child, childLeft, childTop, childRight, childBottom);
84
+ }
85
+
86
+ CommonLayoutParams.restoreOriginalParams(this);
87
+ }
88
+ }
@@ -0,0 +1,61 @@
1
+ package org.nativescript.widgets;
2
+
3
+ import android.animation.Animator;
4
+ import android.animation.AnimatorSet;
5
+ import android.animation.ObjectAnimator;
6
+
7
+ class AnimatorHelper {
8
+ static final int version = android.os.Build.VERSION.SDK_INT;
9
+ static final int exitFakeResourceId = -20;
10
+
11
+ static Animator createDummyAnimator(long duration) {
12
+ float[] alphaValues = new float[2];
13
+ alphaValues[0] = 1;
14
+ alphaValues[1] = 1;
15
+
16
+ Animator animator = ObjectAnimator.ofFloat(null, "alpha", alphaValues);
17
+ if (duration > 0) {
18
+ animator.setDuration(duration);
19
+ }
20
+
21
+ return animator;
22
+ }
23
+
24
+ static long getTotalDuration(Animator animator) {
25
+ if (animator instanceof AnimatorSet) {
26
+ return getAnimatorSetTotalDuration((AnimatorSet) animator);
27
+ } else {
28
+ return getAnimatorTotalDuration(animator);
29
+ }
30
+ }
31
+
32
+ static long getAnimatorTotalDuration(Animator animator) {
33
+ long totalDuration;
34
+ if (version >= 24) {
35
+ totalDuration = animator.getTotalDuration();
36
+ } else {
37
+ long duration = animator.getDuration();
38
+ if (duration == Animator.DURATION_INFINITE) {
39
+ totalDuration = Animator.DURATION_INFINITE;
40
+ } else {
41
+ totalDuration = animator.getStartDelay() + duration;
42
+ }
43
+ }
44
+
45
+ return totalDuration;
46
+ }
47
+
48
+ static long getAnimatorSetTotalDuration(AnimatorSet animatorSet) {
49
+ long totalDuration = 0;
50
+ if (version >= 24) {
51
+ totalDuration = animatorSet.getTotalDuration();
52
+ } else {
53
+ // TODO: this is only meaningful for "playTogether" animators
54
+ for (Animator animator : animatorSet.getChildAnimations()) {
55
+ totalDuration = Math.max(totalDuration, getTotalDuration(animator));
56
+ }
57
+ }
58
+
59
+ return totalDuration;
60
+ }
61
+ }