From 6a052d47ab681debfecdc86f060f30f0ef690fa2 Mon Sep 17 00:00:00 2001 From: Sandaru Lashan Herman <165351637+SandaruEARL@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:34:29 +0530 Subject: [PATCH 1/4] Create pubspec.lock --- packages/zulip_plugin/pubspec.lock | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 packages/zulip_plugin/pubspec.lock diff --git a/packages/zulip_plugin/pubspec.lock b/packages/zulip_plugin/pubspec.lock new file mode 100644 index 0000000000..e4de75859b --- /dev/null +++ b/packages/zulip_plugin/pubspec.lock @@ -0,0 +1,6 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: {} +sdks: + dart: ">=3.4.0-256.0.dev <4.0.0" + flutter: ">=3.3.0" From e23d63d1b255dd5f004b0f904a37652afaa5ed65 Mon Sep 17 00:00:00 2001 From: Sandaru Lashan Herman <165351637+SandaruEARL@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:04:05 +0530 Subject: [PATCH 2/4] Add files via upload --- assets/app-icons/zulip-combined_.png | Bin 0 -> 13169 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 assets/app-icons/zulip-combined_.png diff --git a/assets/app-icons/zulip-combined_.png b/assets/app-icons/zulip-combined_.png new file mode 100644 index 0000000000000000000000000000000000000000..4433ad0e19f82cba0c1eb4983d6ea1ac3ebf6fda GIT binary patch literal 13169 zcmeHt2|SeB`}n-?3}$R$$`Yc4gp4GLP>MuUvP&a3DHSS9WW2WA7HujcTe`(9+n_9= zd8KqkDA~7Bp|VX`vd`~~ZuegO`TuVB`@75U^SeHu<9+A6&v~}yVV4CgO-f7;!0yTetRw*cgftf?w$;G`}KR>XBhAuz_0;k z1Ns%oOduxjZ&A$wH3vVExxc0NO+d-mpSk`l*)Nzz=8${_)89m?8~sInGmy;G;kOAs zQ_+7vJOA3nv|IfB6EVZW{(g48!7f7m*GfYm2nh_b?in82Q1x}}`Nc!O(zM#k-$tm} zq2_S*FLC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}yA6n|4_ znNWBUM10T5H76V7nO7{{TI}EF0;!eXf0A^1f$|R?PyG^_u*0h^A@8~y4`;@9WfRi^ zqd6%(9vi?aVly6dV~VI5_i6vl`Xm_w)$vlYoyUY^%Dr)|bfTR5IK87~yC7-ZP}5fb zrU}dQbsv(e_>7;`@a^xvIUjV}JUqac+h}m43YVrMe%rqS#0p-m;J*7qjhXG;UJoBs z@kNb&2NoZb%6apRuer5eB@TzSiYV(o+6QRGy^4!3jb7!oC<##N?Oj;IrwnvTF}3rU z?^JO&xqp#HU^ji$9W%>Pb{=EcWhs%QTR-y1G3wmz&@@)n``3c&_>{99^LE+J7w#d3T(1m$KugP03DswtEKpu5GF?ldpQ$uc0z8 z3XRv*OrKoqE@F)in)4M#=6JDIob(*~*su70Nt=Jb(KU_>#;P5Mj(%Je`y@}z1*)!0 z7i)Z9Z@x38(|LGU-6|lc%&Qo9(u>h##n3%j!)I7bN*m-90D|`k|;;BMBIePLr8!B(O zjVB*fPqPe=n%`+$H)!+vN+vP)Knc$x#Q`fc zKtmc-fNS+o!6}*v8OP2Y6&yuuLB}o^$cgVPlEG6r3dv_~q{%apdHQhLf%;q%4brZBk!3jrTHC4?*Ek2^e^)= zhsx&={6Esp+zH<-7Z$&Z(w|~$k5BmA?Y<`~z-oMjhk% zH-md|3~n-@S1?v!=X4>?jC=l>l_dXJHO|l1?q4C9dCUE!F6b+u+3SAl0_Xi)7c>*e zSC{Uy->1((iCQ9)6=}N9Iik^M8<`8@>^G{&s zU%UAKc=2C35&x}SDE3rC1Q3Fd>#X#3H;6%OPyX!9Gb;xElv1~Es3H1NhVvzC%&EkG zYYu1Db@`^DZsObCI4Go%?w5|h?oJPSM7jJSr2 l Date: Tue, 18 Mar 2025 23:07:01 +0530 Subject: [PATCH 3/4] Update pubspec.yaml --- pubspec.yaml | 190 +++++++++------------------------------------------ 1 file changed, 33 insertions(+), 157 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 8f5cf8f9bd..e8a48b7a23 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,157 +1,33 @@ -# For docs on this file format, see: -# https://dart.dev/tools/pub/pubspec -# https://docs.flutter.dev/tools/pubspec -# https://github.com/flutter/flutter/blob/main/packages/flutter_tools/templates/app/pubspec.yaml.tmpl - -name: zulip -description: A Zulip client for Android and iOS -publish_to: 'none' - -# Keep the last two numbers equal; see docs/release.md. -version: 0.0.27+27 - -environment: - # We use a recent version of Flutter from its main channel, and - # the corresponding recent version of the Dart SDK. - # Feel free to update these regularly; see README.md for instructions. - sdk: '>=3.8.0-133.0.dev <4.0.0' - flutter: '>=3.30.0-1.0.pre.428' # 99bf419997accdfe6013c1732ce6bc873b01d45f - -# To update dependencies, see instructions in README.md. -dependencies: - flutter: - sdk: flutter - flutter_localizations: - sdk: flutter - - # For some packages that are pinned by the Flutter SDK, we write no - # constraint, to avoid unnecessarily breaking when Flutter takes a - # new version. (This risks getting a new version that really is - # incompatible; but that's true of Flutter itself on each upgrade.) - # We only do this for packages with a history of major-version bumps - # that caused more churn than real incompatibilities. - intl: any # pinned by flutter_localizations; churn history: - # https://github.com/dart-lang/i18n/issues/458#issuecomment-1513231235 - # https://github.com/dart-lang/i18n/issues/759#issuecomment-1864316701 - # https://github.com/flutter/flutter/issues/117163 - - app_settings: ^5.0.0 - collection: ^1.17.2 - convert: ^3.1.1 - crypto: ^3.0.3 - device_info_plus: ^11.2.0 - drift: ^2.23.0 - file_picker: ^9.0.2 - firebase_core: ^3.3.0 - firebase_messaging: ^15.0.1 - flutter_color_models: ^1.3.3+2 - html: ^0.15.1 - http: ^1.0.0 - http_parser: ^4.0.2 - image_picker: ^1.0.0 - json_annotation: ^4.9.0 - mime: ^2.0.0 - package_info_plus: ^8.0.0 - path: ^1.8.3 - path_provider: ^2.0.13 - share_plus: ^10.1.3 - share_plus_platform_interface: ^5.0.2 - sqlite3: ^2.4.0 - sqlite3_flutter_libs: ^0.5.13 - url_launcher: ^6.1.11 - url_launcher_android: ">=6.1.0" - video_player: ^2.8.3 - wakelock_plus: ^1.2.8 - zulip_plugin: - path: ./packages/zulip_plugin - # Keep list sorted when adding dependencies; it helps prevent merge conflicts. - -dependency_overrides: - # TODO(#918) remove this and `flutter_color_models` when `flutter_color_models` accommodates - # wide-gamut adjustments to Flutter's `Color`. A PR to `flutter_color_models` is already open: - # https://github.com/james-alex/color_models/pull/10 - color_models: - git: - url: https://github.com/gaaclarke/color_models.git - ref: wide-gamut - path: color_models - flutter_color_models: - git: - url: https://github.com/gaaclarke/color_models.git - ref: wide-gamut - path: flutter_color_models - - -dev_dependencies: - flutter_driver: - sdk: flutter - flutter_test: - sdk: flutter - integration_test: - sdk: flutter - - args: ^2.5.0 - build_runner: ^2.3.3 - checks: ^0.3.0 - clock: ^1.1.1 - drift_dev: ^2.5.2 - fake_async: ^1.3.1 - flutter_checks: ^0.1.1 - flutter_lints: ^5.0.0 - ini: ^2.1.0 - json_serializable: ^6.5.4 - legacy_checks: ^0.1.0 - pigeon: ^24.2.1 - plugin_platform_interface: ^2.1.8 - stack_trace: ^1.11.1 - test: ^1.23.1 - test_api: ^0.7.3 - video_player_platform_interface: ^6.2.2 - # Keep list sorted when adding dependencies; it helps prevent merge conflicts. - -flutter: - generate: true - uses-material-design: true - - assets: - - assets/Noto_Color_Emoji/LICENSE - - assets/Pygments/AUTHORS.txt - - assets/Pygments/LICENSE.txt - - assets/Source_Code_Pro/LICENSE.md - - assets/Source_Sans_3/LICENSE.md - - fonts: - # Google's emoji font. (Web uses these emoji for the "Google" emojiset.) - # - # This should not be used on iOS. - # iOS doesn't support any of the formats this font is available in, - # and if we use it on iOS (whether as a primary font or a fallback) - # we'll get blank spaces where we could have had Apple-style emojis. - # - # Also, in text that might contain non-emoji glyphs, this should - # always come after a non-emoji font in the chain of font-family - # fallbacks. Letting this font handle e.g. space characters will - # make text look weird. - # TODO don't bundle this on iOS; it wastes several MB because it's unused. - - family: Noto Color Emoji - fonts: - - asset: assets/Noto_Color_Emoji/Noto-COLRv1.ttf - - - family: Source Code Pro - fonts: - - asset: assets/Source_Code_Pro/SourceCodeVF-Upright.otf - - asset: assets/Source_Code_Pro/SourceCodeVF-Italic.otf - style: italic - - - family: Source Sans 3 - fonts: - - asset: assets/Source_Sans_3/SourceSans3VF-Upright.otf - - asset: assets/Source_Sans_3/SourceSans3VF-Italic.otf - style: italic - - # Zulip's custom icons. To use or edit, see class ZulipIcons. - - family: Zulip Icons - fonts: - - asset: assets/icons/ZulipIcons.ttf - - # If adding a font, remember to account for its license in lib/licenses.dart. +Description: +This PR adds a custom splash screen to the Zulip app using the flutter_native_splash package. The splash screen includes: + +A light blue (#ADD8E6) background. +A custom Zulip logo (assets/app-icons/zulip-combined_.png). +A fullscreen splash screen layout for a better user experience. +Android 12-specific configurations with an icon background color. +Disabled web splash screen (can be enabled later if needed). +Changes Made: +Updated pubspec.yaml +Configured flutter_native_splash settings. +Specified the image, background color, and Android 12 settings. +Ran the Splash Screen Generation Command: +sh +Copy +Edit +flutter pub run flutter_native_splash:create +This generates the required splash screen assets and updates platform-specific files. +How to Test: +Fetch the branch and run the app: +sh +Copy +Edit +flutter clean +flutter pub get +flutter run +Observe the splash screen before navigating to the main app. +Screenshots: +(Attach screenshots of the splash screen on Android and iOS if possible.) + +Future Improvements: +Consider adding a fade animation for a smoother transition. +Explore using a gradient background instead of a solid color. From db648232d807ec5f526e5809c45a308ad34072be Mon Sep 17 00:00:00 2001 From: Sandaru Lashan Herman <165351637+SandaruEARL@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:51:37 +0530 Subject: [PATCH 4/4] Update pubspec.yaml --- pubspec.yaml | 217 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 184 insertions(+), 33 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index e8a48b7a23..94d531226e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,33 +1,184 @@ -Description: -This PR adds a custom splash screen to the Zulip app using the flutter_native_splash package. The splash screen includes: - -A light blue (#ADD8E6) background. -A custom Zulip logo (assets/app-icons/zulip-combined_.png). -A fullscreen splash screen layout for a better user experience. -Android 12-specific configurations with an icon background color. -Disabled web splash screen (can be enabled later if needed). -Changes Made: -Updated pubspec.yaml -Configured flutter_native_splash settings. -Specified the image, background color, and Android 12 settings. -Ran the Splash Screen Generation Command: -sh -Copy -Edit -flutter pub run flutter_native_splash:create -This generates the required splash screen assets and updates platform-specific files. -How to Test: -Fetch the branch and run the app: -sh -Copy -Edit -flutter clean -flutter pub get -flutter run -Observe the splash screen before navigating to the main app. -Screenshots: -(Attach screenshots of the splash screen on Android and iOS if possible.) - -Future Improvements: -Consider adding a fade animation for a smoother transition. -Explore using a gradient background instead of a solid color. +# For docs on this file format, see: +# https://dart.dev/tools/pub/pubspec +# https://docs.flutter.dev/tools/pubspec +# https://github.com/flutter/flutter/blob/main/packages/flutter_tools/templates/app/pubspec.yaml.tmpl + +name: zulip +description: A Zulip client for Android and iOS +publish_to: 'none' + +# Keep the last two numbers equal; see docs/release.md. +version: 0.0.26+26 + +environment: + # We use a recent version of Flutter from its main channel, and + # the corresponding recent version of the Dart SDK. + # Feel free to update these regularly; see README.md for instructions. + sdk: '>=3.8.0-133.0.dev <4.0.0' + flutter: '>=3.30.0-1.0.pre.428' # 99bf419997accdfe6013c1732ce6bc873b01d45f + +# To update dependencies, see instructions in README.md. +dependencies: + flutter: + sdk: flutter + shared_preferences: ^2.2.2 + flutter_native_splash: ^2.3.5 + + flutter_localizations: + sdk: flutter + + # For some packages that are pinned by the Flutter SDK, we write no + # constraint, to avoid unnecessarily breaking when Flutter takes a + # new version. (This risks getting a new version that really is + # incompatible; but that's true of Flutter itself on each upgrade.) + # We only do this for packages with a history of major-version bumps + # that caused more churn than real incompatibilities. + intl: any # pinned by flutter_localizations; churn history: + # https://github.com/dart-lang/i18n/issues/458#issuecomment-1513231235 + # https://github.com/dart-lang/i18n/issues/759#issuecomment-1864316701 + # https://github.com/flutter/flutter/issues/117163 + + app_settings: ^5.0.0 + collection: ^1.17.2 + convert: ^3.1.1 + crypto: ^3.0.3 + device_info_plus: ^11.2.0 + drift: ^2.23.0 + file_picker: ^9.0.2 + firebase_core: ^3.3.0 + firebase_messaging: ^15.0.1 + flutter_color_models: ^1.3.3+2 + html: ^0.15.1 + http: ^1.0.0 + http_parser: ^4.0.2 + image_picker: ^1.0.0 + json_annotation: ^4.9.0 + mime: ^2.0.0 + package_info_plus: ^8.0.0 + path: ^1.8.3 + path_provider: ^2.0.13 + share_plus: ^10.1.3 + share_plus_platform_interface: ^5.0.2 + sqlite3: ^2.4.0 + sqlite3_flutter_libs: ^0.5.13 + url_launcher: ^6.1.11 + url_launcher_android: ">=6.1.0" + video_player: ^2.8.3 + wakelock_plus: ^1.2.8 + zulip_plugin: + path: ./packages/zulip_plugin + # Keep list sorted when adding dependencies; it helps prevent merge conflicts. + + +flutter_native_splash: + color: "#ADD8E6" # Light blue background color + # Alternatively, use a gradient: + # background_image: "assets/background.png" # can create a gradient background image + + image: assets/app-icons/zulip-combined_.png # Zulip custom screen image + fullscreen: true + # The following are optional parameters + # branding: assets/branding.png + # branding_mode: bottom + + # Customize the splash screen for different platforms + android_12: + image: assets/app-icons/zulip-combined_.png #Zulip custom screen image + icon_background_color: "#ADD8E6" + + web: false # Set to true if you want splash screen on web + + # For a gradient effect on iOS, use a background image instead of color + # ios_content_mode: center + + +dependency_overrides: + # TODO(#918) remove this and `flutter_color_models` when `flutter_color_models` accommodates + # wide-gamut adjustments to Flutter's `Color`. A PR to `flutter_color_models` is already open: + # https://github.com/james-alex/color_models/pull/10 + color_models: + git: + url: https://github.com/gaaclarke/color_models.git + ref: wide-gamut + path: color_models + flutter_color_models: + git: + url: https://github.com/gaaclarke/color_models.git + ref: wide-gamut + path: flutter_color_models + + +dev_dependencies: + flutter_driver: + sdk: flutter + flutter_test: + sdk: flutter + integration_test: + sdk: flutter + + args: ^2.5.0 + build_runner: ^2.3.3 + checks: ^0.3.0 + clock: ^1.1.1 + drift_dev: ^2.5.2 + sqlite3_flutter_libs: ^0.5.0 + fake_async: ^1.3.1 + flutter_checks: ^0.1.1 + flutter_lints: ^5.0.0 + ini: ^2.1.0 + json_serializable: ^6.5.4 + legacy_checks: ^0.1.0 + pigeon: 22.7.2 + plugin_platform_interface: ^2.1.8 + stack_trace: ^1.11.1 + test: ^1.23.1 + test_api: ^0.7.3 + video_player_platform_interface: ^6.2.2 + # Keep list sorted when adding dependencies; it helps prevent merge conflicts. + +flutter: + generate: true + uses-material-design: true + + assets: + - assets/Noto_Color_Emoji/LICENSE + - assets/Pygments/AUTHORS.txt + - assets/Pygments/LICENSE.txt + - assets/Source_Code_Pro/LICENSE.md + - assets/Source_Sans_3/LICENSE.md + + fonts: + # Google's emoji font. (Web uses these emoji for the "Google" emojiset.) + # + # This should not be used on iOS. + # iOS doesn't support any of the formats this font is available in, + # and if we use it on iOS (whether as a primary font or a fallback) + # we'll get blank spaces where we could have had Apple-style emojis. + # + # Also, in text that might contain non-emoji glyphs, this should + # always come after a non-emoji font in the chain of font-family + # fallbacks. Letting this font handle e.g. space characters will + # make text look weird. + # TODO don't bundle this on iOS; it wastes several MB because it's unused. + - family: Noto Color Emoji + fonts: + - asset: assets/Noto_Color_Emoji/Noto-COLRv1.ttf + + - family: Source Code Pro + fonts: + - asset: assets/Source_Code_Pro/SourceCodeVF-Upright.otf + - asset: assets/Source_Code_Pro/SourceCodeVF-Italic.otf + style: italic + + - family: Source Sans 3 + fonts: + - asset: assets/Source_Sans_3/SourceSans3VF-Upright.otf + - asset: assets/Source_Sans_3/SourceSans3VF-Italic.otf + style: italic + + # Zulip's custom icons. To use or edit, see class ZulipIcons. + - family: Zulip Icons + fonts: + - asset: assets/icons/ZulipIcons.ttf + + # If adding a font, remember to account for its license in lib/licenses.dart.