@momo-kits/native-kits 0.158.1-test.3-debug → 0.158.1-test.4-debug
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/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |spec|
|
|
2
2
|
spec.name = 'compose'
|
|
3
|
-
spec.version = '0.
|
|
3
|
+
spec.version = '0.158.1-test.3'
|
|
4
4
|
spec.homepage = 'https://momo.vn'
|
|
5
5
|
spec.source = { :http=> ''}
|
|
6
6
|
spec.authors = ''
|
|
@@ -10,27 +10,20 @@ Pod::Spec.new do |spec|
|
|
|
10
10
|
spec.libraries = 'c++'
|
|
11
11
|
spec.ios.deployment_target = '15.0'
|
|
12
12
|
spec.dependency 'lottie-ios', '4.4.3'
|
|
13
|
-
|
|
14
13
|
if !Dir.exist?('build/cocoapods/framework/kits.framework') || Dir.empty?('build/cocoapods/framework/kits.framework')
|
|
15
14
|
raise "
|
|
16
|
-
|
|
17
15
|
Kotlin framework 'kits' doesn't exist yet, so a proper Xcode project can't be generated.
|
|
18
16
|
'pod install' should be executed after running ':generateDummyFramework' Gradle task:
|
|
19
|
-
|
|
20
17
|
./gradlew :compose:generateDummyFramework
|
|
21
|
-
|
|
22
18
|
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
|
|
23
19
|
end
|
|
24
|
-
|
|
25
20
|
spec.xcconfig = {
|
|
26
21
|
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
|
|
27
22
|
}
|
|
28
|
-
|
|
29
23
|
spec.pod_target_xcconfig = {
|
|
30
24
|
'KOTLIN_PROJECT_PATH' => ':compose',
|
|
31
25
|
'PRODUCT_MODULE_NAME' => 'kits',
|
|
32
26
|
}
|
|
33
|
-
|
|
34
27
|
spec.script_phases = [
|
|
35
28
|
{
|
|
36
29
|
:name => 'Build compose',
|
|
@@ -38,8 +31,8 @@ Pod::Spec.new do |spec|
|
|
|
38
31
|
:shell_path => '/bin/sh',
|
|
39
32
|
:script => <<-SCRIPT
|
|
40
33
|
if [ "YES" = "$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED" ]; then
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
echo "Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \"YES\""
|
|
35
|
+
exit 0
|
|
43
36
|
fi
|
|
44
37
|
set -ev
|
|
45
38
|
REPO_ROOT="$PODS_TARGET_SRCROOT"
|
|
@@ -51,4 +44,4 @@ Pod::Spec.new do |spec|
|
|
|
51
44
|
}
|
|
52
45
|
]
|
|
53
46
|
spec.resources = ['build/compose/cocoapods/compose-resources']
|
|
54
|
-
end
|
|
47
|
+
end
|
|
@@ -9,7 +9,7 @@ import androidx.compose.ui.semantics.semantics
|
|
|
9
9
|
import androidx.compose.ui.semantics.testTag
|
|
10
10
|
import vn.momo.kits.platform.getPlatformName
|
|
11
11
|
|
|
12
|
-
fun Modifier.setAutomationId(accessibilityId: String, label: String? = null, mergeDescendants: Boolean =
|
|
12
|
+
fun Modifier.setAutomationId(accessibilityId: String, label: String? = null, mergeDescendants: Boolean = true): Modifier {
|
|
13
13
|
return if (getPlatformName() == "Android") {
|
|
14
14
|
semantics {
|
|
15
15
|
contentDescription = accessibilityId
|
|
@@ -19,7 +19,8 @@ fun Modifier.setAutomationId(accessibilityId: String, label: String? = null, mer
|
|
|
19
19
|
testTag = accessibilityId
|
|
20
20
|
contentDescription = label ?: accessibilityId
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* Alternative for [setAutomationId]
|
package/gradle.properties
CHANGED