Skip to content

Commit

Permalink
Merge pull request #34 from NEO-TAT/dev
Browse files Browse the repository at this point in the history
1.3.0
新功能!! - 資訊系統查詢
可直接在 TAT 上開啟整個北科i學園
包括防疫通行證,查詢成績,iPlus,圖書館,webmail,選課等等
省去所有麻煩的登入過程,i學園一機在手

新功能!! - 老師課表查詢
現在老師帳號也能查詢課表

新功能!! - 訊息推播功能
新功能!! - 修改入口網站密碼

修正影片查看並增加影片倍數播放
修正一些登入問題
修正密碼延長功能
修正成績計算的總平均小數點位數
修正開發人員工具的一些問題

修復其他已知問題
  • Loading branch information
Xanonymous-GitHub authored Feb 2, 2021
2 parents f5da551 + 3d4c1ec commit f083896
Show file tree
Hide file tree
Showing 229 changed files with 45,834 additions and 7,010 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
.last_build_id

# IntelliJ related
*.iml
Expand Down Expand Up @@ -39,3 +40,6 @@ lib/generated_plugin_registrant.dart
# Firebase
android/app/google-services.json
ios/Runner/GoogleService-Info.plist

# release build
*.symbols
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
## 貢獻者
- [morris13579](https://github.com/morris13579)
- [yaoandy107](https://github.com/yaoandy107)
- [Xanonymous](https://github.com/Xanonymous-GitHub)
- [DevilTea](https://github.com/DevilTea)

## 授權
Expand Down
1 change: 1 addition & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ gradle-wrapper.jar
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
*.jks
32 changes: 18 additions & 14 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
apply plugin: 'com.google.firebase.crashlytics'

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
Expand All @@ -35,7 +35,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
compileSdkVersion 29
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -50,11 +50,12 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "club.ntut.npc.tat"
minSdkVersion 16
targetSdkVersion 29
minSdkVersion 23
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}

signingConfigs {
Expand All @@ -71,10 +72,11 @@ android {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
shrinkResources true // To enable code shrinking with ProGuard
minifyEnabled true // 移除未使用的code, 簡化apk
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
shrinkResources false // To enable code shrinking with ProGuard
minifyEnabled false // remove unused code
proguardFiles getDefaultProguardFile(
'proguard-android.txt'
), 'proguard-rules.pro'
}
}
}
Expand All @@ -86,11 +88,13 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

implementation 'com.google.firebase:firebase-analytics:17.2.3'
implementation 'com.llew:reflect:1.0.1'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.code.gson:gson:2.8.6'
implementation "androidx.media:media:1.1.0"
implementation "androidx.media:media:1.2.1"
implementation 'com.google.firebase:firebase-analytics:18.0.1'
implementation 'com.google.firebase:firebase-crashlytics:17.3.0'
implementation 'com.google.firebase:firebase-messaging:21.0.1'
implementation "androidx.multidex:multidex:2.0.1"
}
5 changes: 3 additions & 2 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
-keep class tv.danmaku.ijk.media.player.** {*;}

-dontwarn io.flutter.embedding.**

Expand Down Expand Up @@ -34,4 +33,6 @@
}

## flutter_local_notification plugin rules
-keep class com.dexterous.** { *; }
-keep class com.dexterous.** { *; }

-keep class com.google.firebase.provider.FirebaseInitProvider
28 changes: 23 additions & 5 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>

<application
android:name="io.flutter.app.FlutterApplication"
android:name=".Application"
android:icon="@mipmap/ic_launcher"
android:label="TAT">
android:usesCleartextTraffic="true"
android:label="TAT"
tools:targetApi="m">

<activity
android:name=".MainActivity"
Expand All @@ -31,23 +34,29 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/splash" />
</activity>

<!--
<activity
android:name=".BootLoaderActivity"
android:theme="@style/LaunchTheme">
<!--
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
-->
</activity>
-->


<receiver android:name="widget.CourseWidgetProvider">
<intent-filter>
Expand All @@ -64,7 +73,7 @@
<meta-data
android:name="flutterEmbedding"
android:value="2" />

<!-- flutter open_file -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
Expand All @@ -86,5 +95,14 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
<provider
android:name="com.pichillilorenzo.flutter_inappwebview.InAppWebViewFileProvider"
android:authorities="${applicationId}.flutter_inappwebview.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
</application>
</manifest>

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f083896

Please sign in to comment.