BYR-App-Dev / Byr_mobile_app
Licence: apache-2.0
open-source mobile app of bbs.byr.cn
Stars: ✭ 141
Programming Languages
dart
5743 projects
北邮人论坛手机客户端
中文|EN
编译并运行
- 安装Flutter,中国大陆地区用户可访问官方中国大陆地区网站,版本1.17.5
- 配置Secrets
- 在北邮人论坛相关版面申请clientID、认证链接、identifier等信息
- 新建一个私有仓库命名为Secrets包含如下文件结构
在lib/secrets.dart pubspec.yaml
lib/secrets.dart
保存如下内容,!起始的是需要向论坛管理员申请的内容class Secrets { static const String clientID = !CLIENT ID static const String appleID = APPLE ID static const String bundleID = BUNDLE ID static const String identifier = !IDENTIFIER static const String welcomeSalt = !WELCOME SALT static const String tokenDir = !OAUTH URL static const String androidDevUpdateLink = ANDROID APP DEV UPDATE LINK static const String androidStableUpdateLink = ANDROID APP STABLE UPDATE LINK static const String androidVersionsLink = ANDROID VERSIONS LINK }
- 替换此项目
/pubspec.yaml
的如下内容为上步所建仓库的URLsecrets: git: url: ssh://[email protected]/BYR-App-Dev/secrets.git
- 项目根目录执行
flutter pub get
以获取依赖 - 运行
- Debug
flutter run --debug
- Release
flutter run --release
- Build iOS
./ios_build_cmd.sh
- Build Android
./android_build_cmd.sh
- Debug
项目文件结构
-
resources/
- 项目相关的资源文件
-
lib/
- configurations/ 应用的配置
- customizations/ 应用的定制化 如配色、语言等
- data_structures/ 应用内部用到的数据类
- helper/ 辅助性函数
- local_objects/ 本地数据存储
- networking/ 网络请求函数
- nforum/ NForum接口相关的函数和数据类
- pages/ 页面显示相关类
- reusable_components/ 在页面中使用的组件
- shared_objects/ 运行时应用内共享的数据
- tasks/ 应用启动时的任务
- main.dart 应用入口
使用的开源库
- hive
- get
- flutter_cache_manager
- universal_platform
- transparent_image
- cached_network_image
- font_awesome_flutter
- pull_to_refresh
- flutter_gifimage
- shimmer
- qr_flutter
- fast_gbk
- image_picker
- extended_text_field
- extended_image
- audioplayers
- file_picker
- permission_handler
- flutter_audio_recorder
- flutter_staggered_grid_view
- flutter_icons
- ota_update
- uni_links
- modal_bottom_sheet
- toast
- speech_recognition
- like_button
- gallery_saver
- scroll_to_index
- tinycolor
- filesize
- screenshot
- overlay_widget
- pull_to_refresh_notification
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].