Skip to content

Latest commit

 

History

History
93 lines (89 loc) · 4.65 KB

README-EN.md

File metadata and controls

93 lines (89 loc) · 4.65 KB

Mobile App for BYR BBS

bbs.byr.cn

中文|EN

Compile and Run

  • Install Flutter, version ^2.2.0
  • Configure Secrets
    • Apply for clientIDOAuth URLidentifier, etc under open api board of BYR BBS
    • Create a new repository of name Secrets with following project structure
      lib/secrets.dart
      pubspec.yaml
      
      Save the following content in lib/secrets.dart, fields start with ! should be acquired from BBS Admin mentioned above
      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
      }
      
    • replace the following content in /pubspec.yaml of this repository with the URL of the repository from above step
      secrets:
      git:
          url: ssh://[email protected]/BYR-App-Dev/secrets.git
      
  • Run flutter pub get under the root of project to fetch dependencies
  • Run application
    • Debug flutter run --debug
    • Release flutter run --release
    • Build iOS ./ios_build_cmd.sh
    • Build Android ./android_build_cmd.sh

Project Structure

Open Source Library Credits