Skip to content

Commit

Permalink
Merge pull request #23 from ZoeMeow1027/draft - v2.0-draft16
Browse files Browse the repository at this point in the history
Merge draft to stable - v2.0-draft16
  • Loading branch information
ZoeMeow1027 authored Mar 2, 2024
2 parents d4058f9 + eb7bd65 commit 4ef00cd
Show file tree
Hide file tree
Showing 62 changed files with 3,980 additions and 2,532 deletions.
26 changes: 26 additions & 0 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 21 additions & 23 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@
## Known issues:
- `Your current wallpaper` option in app background settings will be disabled on Android 14. You can check why in `Issue` tab in repository.

## 2.0-draft16 (1063)
- AccountActivity:
- Add option to refresh login when previous is failed.
- SubjectInformation and SubjectFee will now show current school year and semester.

- SettingsActivity:
- Add LanguageActivity for switching language. On Android 13 and later, this will open System App Language instead.

- Others:
- Fixed permissions are required incorrectly in Android 14.
- Reduce codes about permissions.
- Renamed ~~NewsUpdateService~~ to `NewsBackgroundUpdateService~~.
- Merge `PermissionItem` and `PermissionList` into one.
- Update dependencies to latest version.
- Add multi language support.
- This feature is not done yet.
- Default is English (en-US).
- Merge all DUT repositories into one.
- Notification history
- This feature is not done yet.

## 2.0-draft15 (971)
- Others:
- NewsBackgroundUpdateService will now start if phone is booted.
Expand Down
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# DutSchedule

A unofficial Android app about Da Nang University of technology to provide better UI from [sv.dut.udn.vn](http://sv.dut.udn.vn) on mobile.
A unofficial Android app to provide better UI from [sv.dut.udn.vn](http://sv.dut.udn.vn).

# Version

- Release version: [![https://github.com/ZoeMeow1027/DutSchedule](https://img.shields.io/github/v/release/ZoeMeow1027/DutSchedule)](https://github.com/ZoeMeow1027/DutSchedule/releases)
- Pre-release version: [![https://github.com/ZoeMeow1027/DutSchedule/tree/draft](https://img.shields.io/github/v/tag/ZoeMeow1027/DutSchedule?label=pre-release%20tag)](https://github.com/ZoeMeow1027/DutSchedule/tree/draft)
- You can [view change log](CHANGELOG.md) for this project.
- Badge provided by [https://shields.io/](https://shields.io/).

# Features & Screenshots?
Expand All @@ -19,9 +18,10 @@ A unofficial Android app about Da Nang University of technology to provide bette

# Build app yourself

- If you open project with Android Studio, make sure your IDE support [Gradle 8.0 or latest](https://gradle.org/releases/). This can be fixed by upgrading your IDE. After that, just build and run app normally as you do with another Android project.

- If you want to build app without IDE, just type command as you build another gradle project (note that you need to install [Gradle 8.0 or latest](https://gradle.org/releases/) first, otherwise this didn't work):
- Required Gradle: 8.5
- Older version of Gradle will be failed while building.
- If you open project with Android Studio, make sure your IDE support Gradle [Gradle](https://gradle.org/releases/) above, which can be fixed by upgrading your IDE. After that, just build and run app normally as you do with another Android project.
- If you want to build app without IDE, just type command as you build another gradle project (note that you need to [Gradle](https://gradle.org/releases/) installed first):

```
Build: gradlew build
Expand All @@ -32,19 +32,30 @@ For Powershell: ./gradlew build

### Where can I found app changelog?

- [Here](https://github.com/ZoeMeow1027/DutSchedule/commits). You will need to change branch if you want to view changelog for stable/draft version.
If you want to:
- View major changes: [Click here](CHANGELOG.md).
- View entire source code changes, [click here](https://github.com/ZoeMeow1027/DutSchedule/commits).
- You will need to change branch if you want to view changelog for stable/draft version.

### Why some news in application is different from sv.dut.udn.vn?

- This app is only crawl data from sv.dut.udn.vn (web) and modify to friendly view. To make sure you can read news cache when you are offline, app will need save current news and compare to web. So, if news from web deleted, news in app will still here.

### I need to clear old news. What should I do?

- You just need to refresh news and this will clear and get latest one automatically.
- You just need to refresh news and this will clear old and get latest one automatically.

### I'm got issue with this app. Which place can I reproduce issue for you?

- You can report issue via [Issue tab](https://github.com/ZoeMeow1027/DutSchedule/issues) on this repository. Thank you for your support!
- You can report issue via [Issue tab](https://github.com/ZoeMeow1027/DutSchedule/issues) on this repository.

# Known issues

If you found a issue, you can report this via [issue tab](https://github.com/ZoeMeow1027/DutSchedule/issues) on this repository.
- Global news and subject news were shown not correctly.
- You just need to refresh news and this will clear old and get latest one automatically.
- Can't get current wallpaper as my app background wallpaper.
- On Android 14, Google is restricted for getting current wallpaper on Android 14 or later. This issue will be delayed very loong until a posible fix. You can [see why here](https://github.com/ZoeMeow1027/DutSchedule/issues/19).

# Credits, changelog and license?
- [Changelog](CHANGELOG.md)
Expand Down
10 changes: 8 additions & 2 deletions SCREENSHOT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# DutSchedule App Screenshots

## SubjectNotifier (old name) v1.0-beta11
<img src="img/Screenshot_20220904-155315_DUT.png" alt="drawing" style="width:200px;"/><img src="img/Screenshot_20220904-155317_DUT.png" alt="drawing" style="width:200px;"/><img src="img/Screenshot_20220904-155327_DUT.png" alt="drawing" style="width:200px;"/><img src="img/Screenshot_20220904-155331_DUT.png" alt="drawing" style="width:200px;"/><img src="img/Screenshot_20220904-155346_DUT.png" alt="drawing" style="width:200px;"/><img src="img/Screenshot_20220904-155406_DUT.png" alt="drawing" style="width:200px;"/><img src="img/Screenshot_20220904-155451_DUT.png" alt="drawing" style="width:200px;"/>
<details open>
<summary>DutSchedule v2.0-beta16</summary>
<img src="img/v2.0-beta16/Screenshot_20240302-152459_DutSchedule.png" alt="drawing" style="width:200px;"/><img src="img/v2.0-beta16/Screenshot_20240302-152455_DutSchedule.png" alt="drawing" style="width:200px;"/><img src="img/v2.0-beta16/Screenshot_20240302-152449_DutSchedule.png" alt="drawing" style="width:200px;"/><img src="img/v2.0-beta16/Screenshot_20240302-152511_DutSchedule.png" alt="drawing" style="width:200px;"/><img src="img/v2.0-beta16/Screenshot_20240302-152525_DutSchedule.png" alt="drawing" style="width:200px;"/><img src="img/v2.0-beta16/Screenshot_20240302-152539_DutSchedule.png" alt="drawing" style="width:200px;"/><img src="img/v2.0-beta16/Screenshot_20240302-152549_DutSchedule.png" alt="drawing" style="width:200px;"/>
</details>
<details>
<summary>SubjectNotifier (old name) v1.0-beta11</summary>
<img src="img/v1.0-beta11/Screenshot_20220904-155315_DUT.png" alt="drawing" style="width:200px;"/><img src="img/v1.0-beta11/Screenshot_20220904-155317_DUT.png" alt="drawing" style="width:200px;"/><img src="img/v1.0-beta11/Screenshot_20220904-155327_DUT.png" alt="drawing" style="width:200px;"/><img src="img/v1.0-beta11/Screenshot_20220904-155331_DUT.png" alt="drawing" style="width:200px;"/><img src="img/v1.0-beta11/Screenshot_20220904-155346_DUT.png" alt="drawing" style="width:200px;"/><img src="img/v1.0-beta11/Screenshot_20220904-155406_DUT.png" alt="drawing" style="width:200px;"/><img src="img/v1.0-beta11/Screenshot_20220904-155451_DUT.png" alt="drawing" style="width:200px;"/>
</details>
27 changes: 15 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId "io.zoemeow.dutschedule"
minSdk 21
targetSdkVersion 34
versionCode 971
versionName "2.0-draft15"
versionCode 1064
versionName "2.0-draft16"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -55,43 +55,46 @@ dependencies {
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation platform('androidx.compose:compose-bom:2023.10.01')
implementation "androidx.compose.ui:ui:1.6.0-rc01"
implementation "androidx.compose.ui:ui-tooling-preview:1.6.0-rc01"
implementation "androidx.compose.ui:ui:1.6.1"
implementation "androidx.compose.ui:ui-tooling-preview:1.6.1"
implementation 'androidx.compose.material3:material3'
implementation platform('androidx.compose:compose-bom:2023.10.01')
implementation 'androidx.compose.ui:ui-graphics'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation platform('androidx.compose:compose-bom:2023.10.01')
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.6.0-rc01"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.6.1"
androidTestImplementation platform('androidx.compose:compose-bom:2023.10.01')
debugImplementation "androidx.compose.ui:ui-tooling:1.6.0-rc01"
debugImplementation "androidx.compose.ui:ui-test-manifest:1.6.0-rc01"
debugImplementation "androidx.compose.ui:ui-tooling:1.6.1"
debugImplementation "androidx.compose.ui:ui-test-manifest:1.6.1"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.appcompat:appcompat-resources:1.6.1"


// implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'

// https://mvnrepository.com/artifact/androidx.navigation/navigation-compose
implementation 'androidx.navigation:navigation-compose:2.7.6'
implementation 'androidx.navigation:navigation-compose:2.7.7'

// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-viewmodel-ktx
runtimeOnly 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0'
// https://mvnrepository.com/artifact/androidx.lifecycle/lifecycle-viewmodel-compose
runtimeOnly 'androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0'

// https://mvnrepository.com/artifact/androidx.fragment/fragment-ktx
runtimeOnly 'androidx.fragment:fragment-ktx:1.7.0-alpha08'
runtimeOnly 'androidx.fragment:fragment-ktx:1.7.0-alpha10'

// https://mvnrepository.com/artifact/androidx.compose.material3/material3
runtimeOnly 'androidx.compose.material3:material3:1.2.0-beta02'
runtimeOnly 'androidx.compose.material3:material3:1.2.0'

// AlarmManager for restart service after closed
// Required to avoid crash on Android 12 - API 31
implementation 'androidx.work:work-runtime:2.9.0'
implementation 'androidx.work:work-runtime-ktx:2.9.0'

// https://mvnrepository.com/artifact/androidx.compose.material/material-icons-extended
runtimeOnly 'androidx.compose.material:material-icons-extended:1.6.0-rc01'
runtimeOnly 'androidx.compose.material:material-icons-extended:1.6.1'

// Google Dagger/Hilt
implementation 'com.google.dagger:hilt-android:2.49'
Expand All @@ -118,7 +121,7 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'

// Android Browser (use WebView in app) - https://mvnrepository.com/artifact/androidx.browser/browser
implementation 'androidx.browser:browser:1.8.0-beta01'
implementation 'androidx.browser:browser:1.8.0-beta02'

// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.12'
Expand Down
Loading

0 comments on commit 4ef00cd

Please sign in to comment.