@momo-kits/native-kits 0.162.2-debug → 0.162.2-sp.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/.claude/settings.local.json +55 -0
- package/ios/Application/Components.swift +34 -43
- package/ios/Application/FloatingButton.swift +10 -8
- package/ios/Application/Navigation/BottomTab/BottomTab.swift +102 -0
- package/ios/Application/Navigation/BottomTab/BottomTabBar.swift +215 -0
- package/ios/Application/Navigation/BottomTab/CurvedContainer.swift +65 -0
- package/ios/Application/Navigation/HeaderBackProps.swift +66 -0
- package/ios/Application/Navigation/HeaderTitle.swift +57 -0
- package/ios/Application/Navigation/HeaderUser.swift +209 -0
- package/ios/Application/Navigation/NavigationContainer.swift +151 -0
- package/ios/Application/Navigation/NavigationOptions.swift +109 -0
- package/ios/Application/Navigation/Navigator.swift +360 -0
- package/ios/Application/Navigation/Overplay/BottomSheet.swift +176 -0
- package/ios/Application/Navigation/Overplay/ModalScreen.swift +68 -0
- package/ios/Application/Navigation/Overplay/SnackBar.swift +144 -0
- package/ios/Application/Navigation/component/Header.swift +178 -0
- package/ios/Application/Navigation/component/HeaderBackground.swift +83 -0
- package/ios/Application/Navigation/component/HeaderColor.swift +65 -0
- package/ios/Application/StackScreen.swift +449 -0
- package/ios/Avatar/Avatar.swift +193 -0
- package/ios/Badge/Badge.swift +11 -13
- package/ios/Badge/BadgeRibbon.swift +12 -19
- package/ios/BaselineView/BaselineView.swift +163 -0
- package/ios/Button/Button.swift +62 -23
- package/ios/Carousel/Carousel.swift +181 -0
- package/ios/Checkbox/Checkbox.swift +14 -12
- package/ios/Chip/Chip.swift +23 -9
- package/ios/Collapse/Collapse.swift +182 -0
- package/ios/Colors+Radius+Spacing/Colors.swift +1 -1
- package/ios/Colors+Radius+Spacing/Theme.swift +295 -0
- package/ios/DateTimePicker/DateTimePicker.swift +210 -0
- package/ios/DateTimePicker/DateTimePickerTypes.swift +55 -0
- package/ios/DateTimePicker/DateTimePickerUtils.swift +167 -0
- package/ios/DateTimePicker/WheelPicker.swift +161 -0
- package/ios/Divider/Divider.swift +16 -0
- package/ios/Icon/Icon.swift +6 -1
- package/ios/IconButton/IconButton.swift +112 -0
- package/ios/Information/Information.swift +151 -0
- package/ios/Input/Input.swift +42 -25
- package/ios/Input/InputPhoneNumber.swift +21 -19
- package/ios/Input/InputSearch.swift +101 -45
- package/ios/Input/InputTextArea.swift +67 -40
- package/ios/InputDropDown/InputDropDown.swift +198 -0
- package/ios/InputMoney/InputMoney.swift +335 -0
- package/ios/InputOTP/InputOTP.swift +210 -0
- package/ios/Loader/Loader.swift +113 -0
- package/ios/MoMoUIKits.podspec +5 -0
- package/ios/OTPKeyboard/KeyboardButton.swift +1 -1
- package/ios/Pagination/PaginationDot.swift +61 -0
- package/ios/Pagination/PaginationNumber.swift +35 -0
- package/ios/Pagination/PaginationScroll.swift +101 -0
- package/ios/Pagination/PaginationWhiteDot.swift +37 -0
- package/ios/Popup/PopupDisplay.swift +10 -12
- package/ios/Popup/PopupInput.swift +2 -6
- package/ios/Popup/PopupNotify.swift +219 -0
- package/ios/ProgressInfo/ProgressInfo.swift +294 -0
- package/ios/Radio/Radio.swift +70 -0
- package/ios/Rating/Rating.swift +82 -0
- package/ios/Skeleton/Skeleton.swift +99 -0
- package/ios/Slider/Slider.swift +237 -0
- package/ios/Stepper/Stepper.swift +220 -0
- package/ios/Steps/Steps.swift +451 -0
- package/ios/SuggestAction/SuggestAction.swift +97 -0
- package/ios/Swipeable/SwipeCell.swift +185 -0
- package/ios/Swipeable/SwipeCellModel.swift +21 -0
- package/ios/TabView/TabView.swift +530 -0
- package/ios/Tag/Tag.swift +98 -0
- package/ios/Template/TrustBanner/TrustBanner.swift +2 -0
- package/ios/Title/Title.swift +269 -0
- package/ios/Tooltip/Tooltip.swift +482 -0
- package/ios/Typography/Text.swift +77 -5
- package/ios/Typography/Typography.swift +9 -0
- package/ios/Uploader/Uploader.swift +183 -0
- package/ios/native-kits.podspec +58 -8
- package/ios-demo/MoMoUIKitsDemo.podspec +18 -0
- package/ios-demo/Resources/dot_loading.json +558 -0
- package/ios-demo/Resources/icon.json +4052 -0
- package/ios-demo/Resources/lottie_circle_loader.json +1 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/DemoScaffold.swift +48 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsBadgeDemoView.swift +25 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsButtonDemoView.swift +26 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsCheckboxDemoView.swift +19 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsChipDemoView.swift +33 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsInputDemoView.swift +48 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsPopupDemoView.swift +21 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsRadioDemoView.swift +17 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsTypographyDemoView.swift +28 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoContext.swift +31 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoFactory.swift +72 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AnimatedHeaderDemo.swift +110 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AvatarDemo.swift +93 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BadgeDemo.swift +269 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BaselineView.swift +117 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BottomTabDemo.swift +89 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ButtonDemo.swift +100 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CarouselDemo.swift +126 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CheckboxDemo.swift +63 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ChipDemo.swift +20 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CollapseDemo.swift +93 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ContentView.swift +107 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DateTimePickerDemo.swift +124 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DividerDemo.swift +14 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/HeaderUserDemo.swift +49 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +261 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconButtonDemo.swift +58 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ImageDemo.swift +78 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InformationDemo.swift +138 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDemo.swift +111 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDropDownDemo.swift +136 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputMoneyDemo.swift +107 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputOTPDemo.swift +73 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputPhoneNumberDemo.swift +100 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputSearchDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputTextAreaDemo.swift +57 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LoaderDemo.swift +70 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +227 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PaginationDemo.swift +72 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupDisplayDemo.swift +175 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +121 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupPromotionDemo.swift +76 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ProgressInfoDemo.swift +89 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RadioDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RatingDemo.swift +56 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SkeletonDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SliderDemo.swift +150 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SnackBarDemo.swift +138 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepperDemo.swift +103 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepsDemo.swift +94 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SuggestActionDemo.swift +79 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwipeDemo.swift +152 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwitchDemo.swift +33 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TabViewDemo.swift +190 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TagDemo.swift +34 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ThemeDemo.swift +182 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TitleDemo.swift +109 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TooltipDemo.swift +187 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TypographyDemo.swift +87 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/UploaderDemo.swift +131 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +50 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoModels.swift +15 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoRegistry.swift +73 -0
- package/package.json +1 -1
- package/publish.sh +50 -0
- package/scripts/gen-ios-color.mjs +136 -0
- package/build.gradle.kts +0 -11
- package/compose/build.gradle.kts +0 -186
- package/compose/build.gradle.kts.backup +0 -186
- package/compose/compose.podspec +0 -47
- package/compose/src/androidMain/kotlin/vn/momo/kits/navigation/ScrollToTop.android.kt +0 -6
- package/compose/src/androidMain/kotlin/vn/momo/kits/platform/Platform.android.kt +0 -123
- package/compose/src/commonMain/composeResources/font/momosignature.otf +0 -0
- package/compose/src/commonMain/composeResources/font/momotrustdisplay.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_black.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_black.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_bold.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_heavy.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_light.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_medium.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_regular.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_semibold.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_thin.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_thin.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_ultralight.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_ultralight.ttf +0 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/AnimationSearchInput.kt +0 -57
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +0 -109
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/FloatingButton.kt +0 -201
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Header.kt +0 -222
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderAnimated.kt +0 -48
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderBackground.kt +0 -86
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderDefault.kt +0 -76
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderExtended.kt +0 -76
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderRight.kt +0 -305
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderTitle.kt +0 -33
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/LiteScreen.kt +0 -921
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +0 -121
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +0 -403
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/useHeaderSearchAnimation.kt +0 -69
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Avatar.kt +0 -157
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +0 -85
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeDot.kt +0 -32
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeRibbon.kt +0 -340
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BaselineView.kt +0 -198
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +0 -357
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Carousel.kt +0 -123
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +0 -94
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Chip.kt +0 -136
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Collapse.kt +0 -224
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CupertinoOverscroll.kt +0 -543
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Divider.kt +0 -23
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +0 -76
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +0 -148
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +0 -188
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Information.kt +0 -116
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +0 -452
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputDropDown.kt +0 -172
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +0 -255
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputOTP.kt +0 -235
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputPhoneNumber.kt +0 -233
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +0 -259
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +0 -241
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/LazyColumnWithBouncing.kt +0 -364
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Loader.kt +0 -108
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationDot.kt +0 -56
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationNumber.kt +0 -41
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationScroll.kt +0 -92
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationWhiteDot.kt +0 -40
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +0 -352
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupPromotion.kt +0 -103
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ProgressInfo.kt +0 -338
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +0 -70
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Rating.kt +0 -87
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +0 -17
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Skeleton.kt +0 -96
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Slider.kt +0 -348
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Stepper.kt +0 -256
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Steps.kt +0 -494
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/SuggestAction.kt +0 -131
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Swipe.kt +0 -215
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +0 -96
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/TabView.kt +0 -531
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +0 -92
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +0 -135
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Title.kt +0 -214
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tooltip.kt +0 -590
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/TrustBanner.kt +0 -177
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Uploader.kt +0 -192
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePicker.kt +0 -205
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerTypes.kt +0 -29
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerUtils.kt +0 -239
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/WheelPicker.kt +0 -191
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Colors.kt +0 -306
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Radius.kt +0 -12
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Spacing.kt +0 -16
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +0 -188
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +0 -285
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Card.kt +0 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +0 -35
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Section.kt +0 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/AutomationId.kt +0 -57
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Clickable.kt +0 -68
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Conditional.kt +0 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/DeprecatedModifier.kt +0 -14
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Shadow.kt +0 -50
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Size.kt +0 -51
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/BottomSheet.kt +0 -253
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ModalScreen.kt +0 -133
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +0 -104
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +0 -145
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +0 -345
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ScrollToTop.kt +0 -8
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +0 -556
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTab.kt +0 -161
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +0 -243
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/CurvedContainer.kt +0 -86
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/FloatingButton.kt +0 -187
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +0 -315
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderBackground.kt +0 -80
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderRight.kt +0 -306
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderTitle.kt +0 -34
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderUser.kt +0 -370
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SnackBar.kt +0 -131
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/tracking/ScreenTracker.kt +0 -167
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ComposeLottieAnimation.kt +0 -72
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +0 -66
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Icons.kt +0 -1329
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Resources.kt +0 -70
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Tracking.kt +0 -15
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Utils.kt +0 -105
- package/compose/src/iosMain/kotlin/vn/momo/kits/navigation/ScrollToTop.ios.kt +0 -33
- package/compose/src/iosMain/kotlin/vn/momo/kits/platform/Platform.ios.kt +0 -186
- package/gradle/libs.versions.toml +0 -67
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -8
- package/gradle.properties +0 -26
- package/gradlew +0 -252
- package/gradlew.bat +0 -94
- package/settings.gradle.kts +0 -64
package/publish.sh
CHANGED
|
@@ -76,6 +76,54 @@ if [ "$MODE" == "beta" ] && [ "$BUMP_MINOR" = true ]; then
|
|
|
76
76
|
echo "⚠️ Note: --bump is ignored in beta mode (beta version comes from package.json)."
|
|
77
77
|
fi
|
|
78
78
|
|
|
79
|
+
PODSPEC_VERSION_FILES=(
|
|
80
|
+
"ios/native-kits.podspec"
|
|
81
|
+
"ios-demo/MoMoUIKitsDemo.podspec"
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
PODSPEC_DEBUG_VERSION_FILES=(
|
|
85
|
+
"compose/compose.podspec"
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
update_podspec_file_version() {
|
|
89
|
+
local PODSPEC_FILE="$1"
|
|
90
|
+
local PODSPEC_VERSION="$2"
|
|
91
|
+
|
|
92
|
+
if [ ! -f "$PODSPEC_FILE" ]; then
|
|
93
|
+
echo " ⚠️ Skipped missing podspec: $PODSPEC_FILE"
|
|
94
|
+
return
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
CURRENT_PODSPEC_VERSION=$(grep -E "^[[:space:]]*[A-Za-z_]+\.version[[:space:]]*=" "$PODSPEC_FILE" | head -n 1 | sed -E "s/.*['\"]([^'\"]+)['\"].*/\1/")
|
|
98
|
+
|
|
99
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
100
|
+
sed -i '' -E "s/^([[:space:]]*[A-Za-z_]+\.version[[:space:]]*=[[:space:]]*)['\"][^'\"]+['\"]/\1'$PODSPEC_VERSION'/" "$PODSPEC_FILE"
|
|
101
|
+
else
|
|
102
|
+
sed -i -E "s/^([[:space:]]*[A-Za-z_]+\.version[[:space:]]*=[[:space:]]*)['\"][^'\"]+['\"]/\1'$PODSPEC_VERSION'/" "$PODSPEC_FILE"
|
|
103
|
+
fi
|
|
104
|
+
|
|
105
|
+
UPDATED_PODSPEC_VERSION=$(grep -E "^[[:space:]]*[A-Za-z_]+\.version[[:space:]]*=" "$PODSPEC_FILE" | head -n 1 | sed -E "s/.*['\"]([^'\"]+)['\"].*/\1/")
|
|
106
|
+
|
|
107
|
+
if [ "$UPDATED_PODSPEC_VERSION" != "$PODSPEC_VERSION" ]; then
|
|
108
|
+
echo "❌ Error: Failed to update $PODSPEC_FILE to version $PODSPEC_VERSION"
|
|
109
|
+
exit 1
|
|
110
|
+
fi
|
|
111
|
+
|
|
112
|
+
echo " $PODSPEC_FILE version updated: $CURRENT_PODSPEC_VERSION → $UPDATED_PODSPEC_VERSION"
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
update_podspec_versions() {
|
|
116
|
+
echo "📝 Updating podspec versions..."
|
|
117
|
+
|
|
118
|
+
for PODSPEC_FILE in "${PODSPEC_VERSION_FILES[@]}"; do
|
|
119
|
+
update_podspec_file_version "$PODSPEC_FILE" "$VERSION"
|
|
120
|
+
done
|
|
121
|
+
|
|
122
|
+
for PODSPEC_FILE in "${PODSPEC_DEBUG_VERSION_FILES[@]}"; do
|
|
123
|
+
update_podspec_file_version "$PODSPEC_FILE" "${VERSION}-debug"
|
|
124
|
+
done
|
|
125
|
+
}
|
|
126
|
+
|
|
79
127
|
# ============================================================================
|
|
80
128
|
# PHASE 1: CHECK AND UPDATE VERSION
|
|
81
129
|
# ============================================================================
|
|
@@ -219,6 +267,8 @@ phase_check_version() {
|
|
|
219
267
|
|
|
220
268
|
echo " Gradle version updated: $CURRENT_GRADLE_VERSION → $VERSION"
|
|
221
269
|
|
|
270
|
+
update_podspec_versions
|
|
271
|
+
|
|
222
272
|
export VERSION="$VERSION"
|
|
223
273
|
export NPM_TAG="$NPM_TAG"
|
|
224
274
|
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { mkdirSync, writeFileSync } from "fs";
|
|
2
|
+
import { join } from "path";
|
|
3
|
+
|
|
4
|
+
// ── 1. Paste your resolved flat color values here ──────────────────────────
|
|
5
|
+
// (or import them if your script setup supports TS)
|
|
6
|
+
|
|
7
|
+
const lightTheme = {
|
|
8
|
+
// text group
|
|
9
|
+
"text-default": "#303233",
|
|
10
|
+
"text-secondary": "#484848",
|
|
11
|
+
"text-hint": "#727272",
|
|
12
|
+
"text-disable": "#c6c6c6",
|
|
13
|
+
// background group
|
|
14
|
+
"background-default": "#f2f2f6",
|
|
15
|
+
"background-surface": "#ffffff",
|
|
16
|
+
"background-tonal": "#fdeaf4",
|
|
17
|
+
"background-pressed": "#dfdfe6",
|
|
18
|
+
"background-selected": "#fef4fa",
|
|
19
|
+
"background-disable": "#ebebf2",
|
|
20
|
+
// border group
|
|
21
|
+
"border-default": "#e8e8e8",
|
|
22
|
+
"border-disable": "#f9f9f9",
|
|
23
|
+
// semantic
|
|
24
|
+
primary: "#eb2f96",
|
|
25
|
+
secondary: "#f7acd5",
|
|
26
|
+
gradient: "#FDCADE",
|
|
27
|
+
// success / warning / error / highlight / interactive ...
|
|
28
|
+
"success-primary": "#34c759",
|
|
29
|
+
"success-secondary": "#aee9bd",
|
|
30
|
+
"success-container": "#d6f4de",
|
|
31
|
+
// ... add remaining tokens
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const darkTheme = {
|
|
35
|
+
"text-default": "#ffffff",
|
|
36
|
+
"text-secondary": "#b0b0b0",
|
|
37
|
+
"text-hint": "#727272",
|
|
38
|
+
"text-disable": "#505050",
|
|
39
|
+
"background-default": "#121212",
|
|
40
|
+
"background-surface": "#1e1e1e",
|
|
41
|
+
"background-tonal": "#fef4fa",
|
|
42
|
+
"background-pressed": "#1a1a1a",
|
|
43
|
+
"background-selected": "#fef8fc",
|
|
44
|
+
"background-disable": "#303030",
|
|
45
|
+
"border-default": "#2a2a2a",
|
|
46
|
+
"border-disable": "#242424",
|
|
47
|
+
primary: "#ed43a0",
|
|
48
|
+
secondary: "#fbd5ea",
|
|
49
|
+
gradient: "#FDCADE",
|
|
50
|
+
"success-primary": "#34c759",
|
|
51
|
+
"success-secondary": "#aee9bd",
|
|
52
|
+
"success-container": "#d6f4de",
|
|
53
|
+
// ... match all light keys
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// ── 2. Helpers ─────────────────────────────────────────────────────────────
|
|
57
|
+
|
|
58
|
+
function hexToComponents(hex) {
|
|
59
|
+
const clean = hex.replace("#", "");
|
|
60
|
+
const full =
|
|
61
|
+
clean.length === 3
|
|
62
|
+
? clean
|
|
63
|
+
.split("")
|
|
64
|
+
.map((c) => c + c)
|
|
65
|
+
.join("")
|
|
66
|
+
: clean;
|
|
67
|
+
return {
|
|
68
|
+
red: `0x${full.slice(0, 2).toUpperCase()}`,
|
|
69
|
+
green: `0x${full.slice(2, 4).toUpperCase()}`,
|
|
70
|
+
blue: `0x${full.slice(4, 6).toUpperCase()}`,
|
|
71
|
+
alpha: "1.000",
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function makeColorEntry(hex, isDark) {
|
|
76
|
+
const entry = {
|
|
77
|
+
color: {
|
|
78
|
+
"color-space": "srgb",
|
|
79
|
+
components: hexToComponents(hex),
|
|
80
|
+
},
|
|
81
|
+
idiom: "universal",
|
|
82
|
+
};
|
|
83
|
+
if (isDark) {
|
|
84
|
+
entry.appearances = [{ appearance: "luminosity", value: "dark" }];
|
|
85
|
+
}
|
|
86
|
+
return entry;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function generateColorSet(name, lightHex, darkHex, outputDir) {
|
|
90
|
+
const colorsetDir = join(outputDir, `${name}.colorset`);
|
|
91
|
+
mkdirSync(colorsetDir, { recursive: true });
|
|
92
|
+
|
|
93
|
+
const contents = {
|
|
94
|
+
colors: [
|
|
95
|
+
makeColorEntry(lightHex, false),
|
|
96
|
+
...(darkHex ? [makeColorEntry(darkHex, true)] : []),
|
|
97
|
+
],
|
|
98
|
+
info: { author: "xcode", version: 1 },
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
writeFileSync(
|
|
102
|
+
join(colorsetDir, "Contents.json"),
|
|
103
|
+
JSON.stringify(contents, null, 2),
|
|
104
|
+
);
|
|
105
|
+
console.log(`✅ ${name}.colorset`);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// ── 3. Output path ─────────────────────────────────────────────────────────
|
|
109
|
+
|
|
110
|
+
const XCASSETS = new URL(
|
|
111
|
+
"../sample/iosApp/iosApp/Assets.xcassets/ThemeColors", // ← group folder
|
|
112
|
+
import.meta.url,
|
|
113
|
+
).pathname;
|
|
114
|
+
|
|
115
|
+
mkdirSync(XCASSETS, { recursive: true });
|
|
116
|
+
|
|
117
|
+
// Write a group Contents.json (tells Xcode this is a namespace folder)
|
|
118
|
+
writeFileSync(
|
|
119
|
+
join(XCASSETS, "Contents.json"),
|
|
120
|
+
JSON.stringify(
|
|
121
|
+
{
|
|
122
|
+
info: { author: "xcode", version: 1 },
|
|
123
|
+
properties: { "provides-namespace": true },
|
|
124
|
+
},
|
|
125
|
+
null,
|
|
126
|
+
2,
|
|
127
|
+
),
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
// ── 4. Generate all color sets ─────────────────────────────────────────────
|
|
131
|
+
|
|
132
|
+
for (const name of Object.keys(lightTheme)) {
|
|
133
|
+
generateColorSet(name, lightTheme[name], darkTheme[name], XCASSETS);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
console.log("\n🎉 Done! Open Xcode to verify the color sets.");
|
package/build.gradle.kts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
plugins {
|
|
2
|
-
// this is necessary to avoid the plugins to be loaded multiple times
|
|
3
|
-
// in each subproject's classloader
|
|
4
|
-
alias(libs.plugins.android.application) apply false
|
|
5
|
-
alias(libs.plugins.android.library) apply false
|
|
6
|
-
alias(libs.plugins.compose) apply false
|
|
7
|
-
alias(libs.plugins.kotlin.compose.compiler) apply false
|
|
8
|
-
alias(libs.plugins.jetbrains.kotlin.multiplatform) apply false
|
|
9
|
-
alias(libs.plugins.jetbrains.kotlin.serialization) apply false
|
|
10
|
-
alias(libs.plugins.vanniktech.mavenPublish) apply false
|
|
11
|
-
}
|
package/compose/build.gradle.kts
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
// import com.vanniktech.maven.publish.JavadocJar
|
|
2
|
-
// import com.vanniktech.maven.publish.KotlinMultiplatform
|
|
3
|
-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
4
|
-
|
|
5
|
-
plugins {
|
|
6
|
-
alias(libs.plugins.jetbrains.kotlin.multiplatform)
|
|
7
|
-
alias(libs.plugins.android.library)
|
|
8
|
-
alias(libs.plugins.compose)
|
|
9
|
-
alias(libs.plugins.kotlin.compose.compiler)
|
|
10
|
-
// alias(libs.plugins.vanniktech.mavenPublish)
|
|
11
|
-
id(libs.plugins.jetbrains.kotlin.cocoapods.get().pluginId)
|
|
12
|
-
kotlin("plugin.serialization")
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
val gitlabName: String? = findProperty("name") as String? ?: ""
|
|
16
|
-
val gitlabRepo: String? = findProperty("repo") as String? ?: ""
|
|
17
|
-
val gitlabUrl: String? = findProperty("url") as String? ?: ""
|
|
18
|
-
val gitlabGroup: String? = findProperty("group") as String? ?: ""
|
|
19
|
-
val gitlabArtifactId: String = findProperty("artifact.id") as String? ?: ""
|
|
20
|
-
val gitlabVersion: String? = findProperty("version") as String? ?: ""
|
|
21
|
-
val gitlabUser: String? = findProperty("gitlab.user") as String? ?: ""
|
|
22
|
-
val gitlabKey: String? = findProperty("gitlab.password") as String? ?: ""
|
|
23
|
-
|
|
24
|
-
kotlin {
|
|
25
|
-
androidTarget {
|
|
26
|
-
compilerOptions {
|
|
27
|
-
jvmTarget.set(JvmTarget.JVM_17)
|
|
28
|
-
}
|
|
29
|
-
publishLibraryVariants("release")
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
val fwName = gitlabArtifactId
|
|
33
|
-
val iosTargets = listOf(iosArm64(), iosSimulatorArm64())
|
|
34
|
-
iosTargets.forEach {
|
|
35
|
-
it.binaries.framework {
|
|
36
|
-
baseName = fwName
|
|
37
|
-
binaryOption("bundleId", "$gitlabGroup.$fwName")
|
|
38
|
-
isStatic = true
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
cocoapods {
|
|
43
|
-
version = "0.162.2-debug"
|
|
44
|
-
summary = "IOS Shared module"
|
|
45
|
-
homepage = "https://momo.vn"
|
|
46
|
-
ios.deploymentTarget = "15.0"
|
|
47
|
-
|
|
48
|
-
framework {
|
|
49
|
-
baseName = fwName
|
|
50
|
-
isStatic = true
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
pod("lottie-ios") {
|
|
54
|
-
moduleName = "Lottie"
|
|
55
|
-
version = "4.4.3"
|
|
56
|
-
extraOpts += listOf("-compiler-option", "-fmodules")
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
sourceSets {
|
|
61
|
-
commonMain.dependencies {
|
|
62
|
-
implementation(compose.runtime)
|
|
63
|
-
implementation(compose.material)
|
|
64
|
-
implementation(compose.material3)
|
|
65
|
-
implementation(compose.components.resources)
|
|
66
|
-
implementation(libs.compose.ui.backhandler)
|
|
67
|
-
implementation(libs.ktor.client.core)
|
|
68
|
-
implementation(libs.jetbrains.coroutines.core)
|
|
69
|
-
implementation(libs.navigation.multiplatform)
|
|
70
|
-
implementation(libs.coil.multiplatform.compose)
|
|
71
|
-
implementation(libs.coil.multiplatform.core)
|
|
72
|
-
implementation(libs.coil.multiplatform.network.ktor)
|
|
73
|
-
implementation(libs.jetbrains.serialization.json)
|
|
74
|
-
implementation(libs.kotlinx.datetime)
|
|
75
|
-
api(libs.native.max.api)
|
|
76
|
-
implementation(libs.compottie)
|
|
77
|
-
}
|
|
78
|
-
androidMain.dependencies {
|
|
79
|
-
implementation(libs.ktor.client.okhttp)
|
|
80
|
-
implementation(libs.airbnb.lottie)
|
|
81
|
-
}
|
|
82
|
-
iosMain.dependencies {
|
|
83
|
-
implementation(libs.ktor.client.darwin)
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
android {
|
|
89
|
-
namespace = "vn.momo.kits.kits"
|
|
90
|
-
compileSdk = 35
|
|
91
|
-
compileOptions {
|
|
92
|
-
sourceCompatibility = JavaVersion.VERSION_17
|
|
93
|
-
targetCompatibility = JavaVersion.VERSION_17
|
|
94
|
-
}
|
|
95
|
-
defaultConfig {
|
|
96
|
-
minSdk = 24
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
dependencies {
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
repositories {
|
|
104
|
-
google {
|
|
105
|
-
mavenContent {
|
|
106
|
-
includeGroupAndSubgroups("androidx")
|
|
107
|
-
includeGroupAndSubgroups("com.android")
|
|
108
|
-
includeGroupAndSubgroups("com.google")
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
mavenCentral()
|
|
112
|
-
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
|
|
113
|
-
maven {
|
|
114
|
-
url = uri("https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven")
|
|
115
|
-
credentials {username = "download_packages"; password = "gldt-bjDqLpU_sPcHDuXau2ws" }
|
|
116
|
-
}
|
|
117
|
-
maven {
|
|
118
|
-
url = uri("https://artifacts.mservice.com.vn/repository/maven-momo-app/")
|
|
119
|
-
credentials {
|
|
120
|
-
username = "viewer"
|
|
121
|
-
password = "viewer"
|
|
122
|
-
}
|
|
123
|
-
isAllowInsecureProtocol = true
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
compose {
|
|
128
|
-
resources {
|
|
129
|
-
publicResClass = true
|
|
130
|
-
packageOfResClass = "vn.momo.uikits.resources"
|
|
131
|
-
generateResClass = always
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// publishing {
|
|
136
|
-
// repositories {
|
|
137
|
-
// maven {
|
|
138
|
-
// name = "${gitlabRepo}Packages"
|
|
139
|
-
// credentials {
|
|
140
|
-
// username = gitlabUser
|
|
141
|
-
// password = gitlabKey
|
|
142
|
-
// }
|
|
143
|
-
// url = uri("$gitlabUrl")
|
|
144
|
-
// }
|
|
145
|
-
// }
|
|
146
|
-
// }
|
|
147
|
-
|
|
148
|
-
// mavenPublishing {
|
|
149
|
-
// configure(
|
|
150
|
-
// KotlinMultiplatform(
|
|
151
|
-
// javadocJar = JavadocJar.Empty(),
|
|
152
|
-
// sourcesJar = true,
|
|
153
|
-
// androidVariantsToPublish = listOf("release")
|
|
154
|
-
// )
|
|
155
|
-
// )
|
|
156
|
-
//
|
|
157
|
-
// repositories {
|
|
158
|
-
// maven {
|
|
159
|
-
// name = "${gitlabRepo}Packages"
|
|
160
|
-
// credentials { username = gitlabUser; password = gitlabKey }
|
|
161
|
-
// url = uri("$gitlabUrl")
|
|
162
|
-
// }
|
|
163
|
-
// }
|
|
164
|
-
//
|
|
165
|
-
// coordinates(gitlabGroup.toString(), gitlabArtifactId, gitlabVersion.toString())
|
|
166
|
-
//
|
|
167
|
-
// pom {
|
|
168
|
-
// name = "$gitlabName Klib"
|
|
169
|
-
// description = "$gitlabName"
|
|
170
|
-
// url = "https://gitlab.mservice.com.vn"
|
|
171
|
-
// licenses {
|
|
172
|
-
// license {
|
|
173
|
-
// name = "The Apache License, Version 2.0"
|
|
174
|
-
// url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
175
|
-
// distribution = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
176
|
-
// }
|
|
177
|
-
// }
|
|
178
|
-
// developers {
|
|
179
|
-
// developer {
|
|
180
|
-
// id = "kotlin-hands-on"
|
|
181
|
-
// name = "Kotlin Developer Advocate"
|
|
182
|
-
// url = "https://github.com/kotlin-hands-on/"
|
|
183
|
-
// }
|
|
184
|
-
// }
|
|
185
|
-
// }
|
|
186
|
-
// }
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import com.vanniktech.maven.publish.JavadocJar
|
|
2
|
-
import com.vanniktech.maven.publish.KotlinMultiplatform
|
|
3
|
-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
4
|
-
|
|
5
|
-
plugins {
|
|
6
|
-
alias(libs.plugins.jetbrains.kotlin.multiplatform)
|
|
7
|
-
alias(libs.plugins.android.library)
|
|
8
|
-
alias(libs.plugins.compose)
|
|
9
|
-
alias(libs.plugins.kotlin.compose.compiler)
|
|
10
|
-
alias(libs.plugins.vanniktech.mavenPublish)
|
|
11
|
-
id(libs.plugins.jetbrains.kotlin.cocoapods.get().pluginId)
|
|
12
|
-
kotlin("plugin.serialization")
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
val gitlabName: String? = findProperty("name") as String? ?: ""
|
|
16
|
-
val gitlabRepo: String? = findProperty("repo") as String? ?: ""
|
|
17
|
-
val gitlabUrl: String? = findProperty("url") as String? ?: ""
|
|
18
|
-
val gitlabGroup: String? = findProperty("group") as String? ?: ""
|
|
19
|
-
val gitlabArtifactId: String = findProperty("artifact.id") as String? ?: ""
|
|
20
|
-
val gitlabVersion: String? = findProperty("version") as String? ?: ""
|
|
21
|
-
val gitlabUser: String? = findProperty("gitlab.user") as String? ?: ""
|
|
22
|
-
val gitlabKey: String? = findProperty("gitlab.password") as String? ?: ""
|
|
23
|
-
|
|
24
|
-
kotlin {
|
|
25
|
-
androidTarget {
|
|
26
|
-
compilerOptions {
|
|
27
|
-
jvmTarget.set(JvmTarget.JVM_17)
|
|
28
|
-
}
|
|
29
|
-
publishLibraryVariants("release")
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
val fwName = gitlabArtifactId
|
|
33
|
-
val iosTargets = listOf(iosArm64(), iosSimulatorArm64())
|
|
34
|
-
iosTargets.forEach {
|
|
35
|
-
it.binaries.framework {
|
|
36
|
-
baseName = fwName
|
|
37
|
-
binaryOption("bundleId", "$gitlabGroup.$fwName")
|
|
38
|
-
isStatic = true
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
cocoapods {
|
|
43
|
-
version = gitlabVersion
|
|
44
|
-
summary = "IOS Shared module"
|
|
45
|
-
homepage = "https://momo.vn"
|
|
46
|
-
ios.deploymentTarget = "15.0"
|
|
47
|
-
|
|
48
|
-
framework {
|
|
49
|
-
baseName = fwName
|
|
50
|
-
isStatic = true
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
pod("lottie-ios") {
|
|
54
|
-
moduleName = "Lottie"
|
|
55
|
-
version = "4.4.3"
|
|
56
|
-
extraOpts += listOf("-compiler-option", "-fmodules")
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
sourceSets {
|
|
61
|
-
commonMain.dependencies {
|
|
62
|
-
implementation(compose.runtime)
|
|
63
|
-
implementation(compose.material)
|
|
64
|
-
implementation(compose.material3)
|
|
65
|
-
implementation(compose.components.resources)
|
|
66
|
-
implementation(libs.compose.ui.backhandler)
|
|
67
|
-
implementation(libs.ktor.client.core)
|
|
68
|
-
implementation(libs.jetbrains.coroutines.core)
|
|
69
|
-
implementation(libs.navigation.multiplatform)
|
|
70
|
-
implementation(libs.coil.multiplatform.compose)
|
|
71
|
-
implementation(libs.coil.multiplatform.core)
|
|
72
|
-
implementation(libs.coil.multiplatform.network.ktor)
|
|
73
|
-
implementation(libs.jetbrains.serialization.json)
|
|
74
|
-
implementation(libs.kotlinx.datetime)
|
|
75
|
-
api(libs.native.max.api)
|
|
76
|
-
implementation(libs.compottie)
|
|
77
|
-
}
|
|
78
|
-
androidMain.dependencies {
|
|
79
|
-
implementation(libs.ktor.client.okhttp)
|
|
80
|
-
implementation(libs.airbnb.lottie)
|
|
81
|
-
}
|
|
82
|
-
iosMain.dependencies {
|
|
83
|
-
implementation(libs.ktor.client.darwin)
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
android {
|
|
89
|
-
namespace = "$gitlabGroup.$gitlabArtifactId"
|
|
90
|
-
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
91
|
-
compileOptions {
|
|
92
|
-
sourceCompatibility = JavaVersion.VERSION_17
|
|
93
|
-
targetCompatibility = JavaVersion.VERSION_17
|
|
94
|
-
}
|
|
95
|
-
defaultConfig {
|
|
96
|
-
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
dependencies {
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
repositories {
|
|
104
|
-
google {
|
|
105
|
-
mavenContent {
|
|
106
|
-
includeGroupAndSubgroups("androidx")
|
|
107
|
-
includeGroupAndSubgroups("com.android")
|
|
108
|
-
includeGroupAndSubgroups("com.google")
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
mavenCentral()
|
|
112
|
-
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
|
|
113
|
-
maven {
|
|
114
|
-
url = uri("https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven")
|
|
115
|
-
credentials {username = "download_packages"; password = "gldt-bjDqLpU_sPcHDuXau2ws" }
|
|
116
|
-
}
|
|
117
|
-
maven {
|
|
118
|
-
url = uri("https://artifacts.mservice.com.vn/repository/maven-momo-app/")
|
|
119
|
-
credentials {
|
|
120
|
-
username = "viewer"
|
|
121
|
-
password = "viewer"
|
|
122
|
-
}
|
|
123
|
-
isAllowInsecureProtocol = true
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
compose {
|
|
128
|
-
resources {
|
|
129
|
-
publicResClass = true
|
|
130
|
-
packageOfResClass = "vn.momo.uikits.resources"
|
|
131
|
-
generateResClass = always
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
publishing {
|
|
136
|
-
repositories {
|
|
137
|
-
maven {
|
|
138
|
-
name = "${gitlabRepo}Packages"
|
|
139
|
-
credentials {
|
|
140
|
-
username = gitlabUser
|
|
141
|
-
password = gitlabKey
|
|
142
|
-
}
|
|
143
|
-
url = uri("$gitlabUrl")
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
mavenPublishing {
|
|
149
|
-
configure(
|
|
150
|
-
KotlinMultiplatform(
|
|
151
|
-
javadocJar = JavadocJar.Empty(),
|
|
152
|
-
sourcesJar = true,
|
|
153
|
-
androidVariantsToPublish = listOf("release")
|
|
154
|
-
)
|
|
155
|
-
)
|
|
156
|
-
|
|
157
|
-
repositories {
|
|
158
|
-
maven {
|
|
159
|
-
name = "${gitlabRepo}Packages"
|
|
160
|
-
credentials { username = gitlabUser; password = gitlabKey }
|
|
161
|
-
url = uri("$gitlabUrl")
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
coordinates(gitlabGroup.toString(), gitlabArtifactId, gitlabVersion.toString())
|
|
166
|
-
|
|
167
|
-
pom {
|
|
168
|
-
name = "$gitlabName Klib"
|
|
169
|
-
description = "$gitlabName"
|
|
170
|
-
url = "https://gitlab.mservice.com.vn"
|
|
171
|
-
licenses {
|
|
172
|
-
license {
|
|
173
|
-
name = "The Apache License, Version 2.0"
|
|
174
|
-
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
175
|
-
distribution = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
developers {
|
|
179
|
-
developer {
|
|
180
|
-
id = "kotlin-hands-on"
|
|
181
|
-
name = "Kotlin Developer Advocate"
|
|
182
|
-
url = "https://github.com/kotlin-hands-on/"
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
package/compose/compose.podspec
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
Pod::Spec.new do |spec|
|
|
2
|
-
spec.name = 'compose'
|
|
3
|
-
spec.version = '0.161.2-beta.15'
|
|
4
|
-
spec.homepage = 'https://momo.vn'
|
|
5
|
-
spec.source = { :http=> ''}
|
|
6
|
-
spec.authors = ''
|
|
7
|
-
spec.license = ''
|
|
8
|
-
spec.summary = 'IOS Shared module'
|
|
9
|
-
spec.vendored_frameworks = 'build/cocoapods/framework/kits.framework'
|
|
10
|
-
spec.libraries = 'c++'
|
|
11
|
-
spec.ios.deployment_target = '15.0'
|
|
12
|
-
spec.dependency 'lottie-ios', '4.4.3'
|
|
13
|
-
if !Dir.exist?('build/cocoapods/framework/kits.framework') || Dir.empty?('build/cocoapods/framework/kits.framework')
|
|
14
|
-
raise "
|
|
15
|
-
Kotlin framework 'kits' doesn't exist yet, so a proper Xcode project can't be generated.
|
|
16
|
-
'pod install' should be executed after running ':generateDummyFramework' Gradle task:
|
|
17
|
-
./gradlew :compose:generateDummyFramework
|
|
18
|
-
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
|
|
19
|
-
end
|
|
20
|
-
spec.xcconfig = {
|
|
21
|
-
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
|
|
22
|
-
}
|
|
23
|
-
spec.pod_target_xcconfig = {
|
|
24
|
-
'KOTLIN_PROJECT_PATH' => ':compose',
|
|
25
|
-
'PRODUCT_MODULE_NAME' => 'kits',
|
|
26
|
-
}
|
|
27
|
-
spec.script_phases = [
|
|
28
|
-
{
|
|
29
|
-
:name => 'Build compose',
|
|
30
|
-
:execution_position => :before_compile,
|
|
31
|
-
:shell_path => '/bin/sh',
|
|
32
|
-
:script => <<-SCRIPT
|
|
33
|
-
if [ "YES" = "$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED" ]; then
|
|
34
|
-
echo "Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \"YES\""
|
|
35
|
-
exit 0
|
|
36
|
-
fi
|
|
37
|
-
set -ev
|
|
38
|
-
REPO_ROOT="$PODS_TARGET_SRCROOT"
|
|
39
|
-
"$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \
|
|
40
|
-
-Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \
|
|
41
|
-
-Pkotlin.native.cocoapods.archs="$ARCHS" \
|
|
42
|
-
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
|
|
43
|
-
SCRIPT
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
spec.resources = ['build/compose/cocoapods/compose-resources']
|
|
47
|
-
end
|