Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/liplum/mimir
Browse files Browse the repository at this point in the history
  • Loading branch information
Amazefcc233 committed May 6, 2024
2 parents 9c9dff5 + aa66639 commit 8936b64
Show file tree
Hide file tree
Showing 386 changed files with 16,724 additions and 6,658 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_dispatch
permissions: write-all

env:
flutter_version: '3.19.4'
flutter_version: '3.19.6'

jobs:
build_android:
Expand All @@ -27,16 +27,16 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Install and set Flutter version
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true

- name: Restore packages
- name: Setup Flutter
run: |
flutter pub get
flutter config --no-cli-animations
- name: Build APK
run: |
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
path: build/upload-artifacts/SITLife-${{ steps.get_git_info.outputs.RESOLVED_VERSION }}.apk

build_ios:
runs-on: macos-latest
runs-on: macos-14 # macos-latest is macos-12 actually, and iOS 17+ SDK not supported
if: github.ref == 'refs/heads/master'

steps:
Expand Down Expand Up @@ -105,16 +105,16 @@ jobs:
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
- name: Install and set Flutter version
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true

- name: Restore packages
- name: Setup Flutter
run: |
flutter pub get
flutter config --no-cli-animations
- name: Build iOS
run: |
Expand Down Expand Up @@ -169,6 +169,7 @@ jobs:
echo "RESOLVED_VERSION="$(git tag --sort=-v:refname | head -n 1) >> "$GITHUB_OUTPUT"
- name: Get iOS Artifact
if: github.repository == 'liplum-dev/mimir'
uses: actions/download-artifact@v4
with:
name: SITLife-iOS-release
Expand All @@ -187,3 +188,8 @@ jobs:
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}

- name: Send Message to Group
continue-on-error: true
run: |
curl -G -s --connect-timeout 5 ${{ secrets.gocq_sendgroupmsg_url }} --data-urlencode "group_id=${{ secrets.gocq_group_number }}" --data-urlencode "message=新测试版(${{ steps.get_git_info.outputs.RESOLVED_VERSION }})已完成构建,请通过Github Actions下载。或等待开发者操作完成后,前往群文件/TestFlight下载。"
25 changes: 25 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Web
on: workflow_dispatch
permissions: write-all

env:
flutter_version: '3.19.6'

jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true

- uses: bluefireteam/flutter-gh-pages@v8
with:
baseHref: /mimir/
34 changes: 34 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Windows
on: workflow_dispatch

env:
flutter_version: '3.19.6'

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true

- name: Setup Flutter
run: |
flutter config --no-cli-animations
- name: Build Windows
run: |
flutter pub run build_runner build --delete-conflicting-outputs
dart run msix:create
- name: Upload building
uses: actions/upload-artifact@v4
with:
name: SITLife-Windows-release
path: build\windows\x64\runner\Release\SIT-Life.msix
66 changes: 66 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Changelog

## v2.4.1
- Changed the custom URL and provided backward compatibility:
- scheme: from `life.mysit` to `sit-life`.
- Added host, `timetable`, for timetable-related data.
- Changed timetable file format and provided backward compatibility.
- Fixed QR code scanner issue.
- [Dev] Added debug deep link tile in developer options.
- Timetable *Out of Range* issue.

## v2.4.0
- Redesigned the expense statistics page.
- Redesigned the network tool page.
- Changed duration of skipping update up to 7 days.
- Changed web icons.
- Timetable background support on web.
- Fixed: Gif image not working in timetable wallpaper
- Allowed to join QQ group on desktop and web.
- [Demo mode] Attended activity mock service in class 2nd.
- Timetable issue inspection.
- Prompt user to save changes before quit.
- Timetable courses can be hidden now.
- Toggle haptic feedback in game settings.
- Toggle quick look lesson on tap feature in timetable settings.
- Improved zh-Hans and zh-Hant localization.
- Timetable patch for moving, copying, swapping and removing lessons of days.
- Shrunk the size of .ics file exported from timetable.
- Redesigned entities of proxy.
- [BREAKING CHANGES] New QR code formats of timetable palette and proxy.
- Share timetable in QR code.
- [Migration] Proxy settings and timetable background.
- [iOS] Shortcut for importing .ics file to Calendar app.
- Redesigned pull down menu.

## v2.3.0
- The 2048 game supports save/load feature.
- You can add, delete, and edit courses in the timetable.
- The Timetable is now more colorful than ever.
- Improved "Classic" timetable color palette.
- A new page for customizing theme colors has been added.
- You can withdraw applications of second class activities.
- The Cache is no longer cleared when the device runs out of storage space.
- Other minor UI improvements and localizations.

## v2.2.0
- The Minesweeper game was introduced.
- Login-related error dialogs now have detailed description.
- [Bug fix] Wrong localization text.
- UI and performance improvement.

## v2.1.3
- More types of OA login errors can be recognized.
- Except for iOS and macOS, the app automatically checks update on startup.
- By following school changes, electricity price rises from 0.61 to 0.636.
- [iOS] It's supported to scan QR code generated from this app with Camera app.
- [Bug fix] In some cases, OA captcha is infinitely asking for input, but the login doesn't work.

## v2.1.2
- GPA calculator was added.
- Library searching and borrowing list were added.
- HTTP and HTTPS proxy settings page was added.
- The UI of some pages was redesigned.
- ICP licence was added.
- [Bug Fix] Applying for a second classroom activity would make a double-application.
- [Bug Fix] In some cases, it is not possible to load the activities already attended in the second class.
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
30 changes: 14 additions & 16 deletions specifications/CONTRIBUTION_GUIDE.md → CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
# Contribution Guide

Please also check:

- [The terms](TERM.md)
- [The project structure](STRUCTURE.MD)
- [The abbreviations](ABBREVIATION.md)
- [The internationalization protocol](I18N_PROTOCOL.md)
# Contributing

## Getting Started

Expand All @@ -26,23 +19,24 @@ flutter pub run build_runner build
Finally, build the SIT Life based on your platform.

```shell
# For Android
# On Windows, macOS, or Linux
flutter build apk # build for Android
# For Windows
# On Windows
flutter build winodws # build for Windows
# For macOS
# On macOS
flutter build macos # build for macOS
flutter build ios # build for iOS
# For Linux
# On Linux
flutter build linux # build for Linux
# On Windows, macOS, or Linux
flutter build web # build for web
```

### iOS Build

SIT Life for iOS requires `Xcode 13.4.1`, the latest Xcode 13.
You can download it [here](https://developer.apple.com/download/all/?q=Xcode%2013.4.1).

Be aware that Xcode 14 or higher doesn't work due to the compatibility issue of some dependencies.
SIT Life for iOS requires at least `Xcode 14.3.1`.
You can search and download it [here](https://developer.apple.com/download/all/?q=Xcode),
or install it on macOS App Store.

## Dependency

Expand Down Expand Up @@ -95,3 +89,7 @@ python ./tool/main.py

Build tool will locate the project automatically,
so you can run the [main.py](/tool/main.py) anywhere.

### Web icon

Generated on https://realfavicongenerator.net/
Loading

0 comments on commit 8936b64

Please sign in to comment.