-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from SukiEva/dev-compose
Dev compose
- Loading branch information
Showing
69 changed files
with
1,484 additions
and
211 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,158 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# This is a configuration file for ProGuard. | ||
# http://proguard.sourceforge.net/index.html#manual/usage.html | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
# Starting with version 2.2 of the Android plugin for Gradle, this file is distributed together with | ||
# the plugin and unpacked at build-time. The files in $ANDROID_HOME are no longer maintained and | ||
# will be ignored by new version of the Android plugin for Gradle. | ||
|
||
#-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
-verbose | ||
|
||
# Optimization is turned off by default. Dex does not like code run | ||
# through the ProGuard optimize and preverify steps (and performs some | ||
# of these optimizations on its own). | ||
# -dontoptimize | ||
-optimizationpasses 5 | ||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable,!class/unboxing/enum | ||
-repackageclasses com.absinthe.libchecker | ||
|
||
-dontpreverify | ||
|
||
# Preserve some attributes that may be required for reflection. | ||
-keepattributes *Annotation*,Signature,InnerClasses,EnclosingMethod | ||
|
||
-keep class * extends androidx.fragment.app.Fragment{} | ||
-dontnote com.android.vending.licensing.ILicensingService | ||
-dontnote com.google.vending.licensing.ILicensingService | ||
-dontnote com.google.android.vending.licensing.ILicensingService | ||
|
||
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native | ||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
# Keep setters in Views so that animations can still work. | ||
-keepclassmembers public class * extends android.view.View { | ||
void set*(***); | ||
*** get*(); | ||
} | ||
|
||
# We want to keep methods in Activity that could be used in the XML attribute onClick. | ||
# -keepclassmembers class * extends android.app.Activity { | ||
# public void *(android.view.View); | ||
# } | ||
|
||
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations | ||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keepclassmembers class * implements android.os.Parcelable { | ||
public static final ** CREATOR; | ||
} | ||
|
||
-keepclassmembers class **.R$* { | ||
public static <fields>; | ||
} | ||
|
||
|
||
#保留annotation, 例如 @JavascriptInterface 等 annotation | ||
-keepattributes *Annotation* | ||
#保留跟 javascript相关的属性 | ||
-keepattributes JavascriptInterface | ||
#保留JavascriptInterface中的方法 | ||
-keepclassmembers class * { | ||
@android.webkit.JavascriptInterface <methods>; | ||
} | ||
#这个根据自己的project来设置,这个类用来与js交互,所以这个类中的 字段 ,方法, 等尽量保持 | ||
-keepclassmembers public class github.sukieva.hhu.ui.activity.config.ConfigViewModel{ | ||
<fields>; | ||
<methods>; | ||
public *; | ||
private *; | ||
} | ||
-keepclassmembers public class github.sukieva.hhu.ui.components.InJavaScriptLocalObj{ | ||
<fields>; | ||
<methods>; | ||
public *; | ||
private *; | ||
} | ||
# The support libraries contains references to newer platform versions. | ||
# Don't warn about those in case this app is linking against an older | ||
# platform version. We know about them, and they are safe. | ||
-dontnote android.support.** | ||
-dontwarn android.support.** | ||
|
||
-dontwarn javax.annotation.** | ||
|
||
# Understand the @Keep support annotation. | ||
-keep class androidx.annotation.Keep | ||
-keep @androidx.annotation.Keep class * {*;} | ||
|
||
-keepclasseswithmembers class * { | ||
@androidx.annotation.Keep <methods>; | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
@androidx.annotation.Keep <fields>; | ||
} | ||
|
||
-keepclasseswithmembers class * { | ||
@androidx.annotation.Keep <init>(...); | ||
} | ||
|
||
-assumenosideeffects class kotlin.jvm.internal.Intrinsics { | ||
static void checkParameterIsNotNull(java.lang.Object, java.lang.String); | ||
static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String); | ||
static void checkNotNullExpressionValue(java.lang.Object, java.lang.String); | ||
static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String); | ||
static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String); | ||
static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String); | ||
static void checkFieldIsNotNull(java.lang.Object, java.lang.String); | ||
static void checkNotNull(java.lang.Object, java.lang.String); | ||
static void checkNotNullParameter(java.lang.Object, java.lang.String); | ||
} | ||
|
||
-dontwarn org.xmlpull.v1.XmlPullParser | ||
-dontwarn org.xmlpull.v1.XmlSerializer | ||
-keep class org.xmlpull.v1.* {*;} | ||
|
||
## Android architecture components: Lifecycle | ||
# LifecycleObserver's empty constructor is considered to be unused by proguard | ||
-keepclassmembers class * implements androidx.lifecycle.LifecycleObserver { | ||
<init>(...); | ||
} | ||
# ViewModel's empty constructor is considered to be unused by proguard | ||
-keepclassmembers class * extends androidx.lifecycle.ViewModel { | ||
<init>(...); | ||
} | ||
# keep methods annotated with @OnLifecycleEvent even if they seem to be unused | ||
# (Mostly for LiveData.LifecycleBoundObserver.onStateChange(), but who knows) | ||
-keepclassmembers class * { | ||
@androidx.lifecycle.OnLifecycleEvent *; | ||
} | ||
|
||
-keep public class github.sukieva.hhu.* { *; } | ||
|
||
# Gson uses generic type information stored in a class file when working with fields. Proguard | ||
# removes such information by default, so configure it to keep all of it. | ||
-keepattributes Signature,InnerClasses | ||
-keepattributes SourceFile,LineNumberTable | ||
-renamesourcefileattribute SourceFile | ||
|
||
-dontwarn java.lang.ClassValue | ||
|
||
# OkHttp | ||
-dontwarn org.conscrypt.** | ||
-dontwarn org.conscrypt.ConscryptHostnameVerifier | ||
-dontwarn okhttp3.internal.platform.ConscryptPlatform | ||
|
||
-dontwarn org.bouncycastle.jsse.BCSSLParameters | ||
-dontwarn org.bouncycastle.jsse.BCSSLSocket | ||
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider | ||
|
||
-dontwarn org.openjsse.javax.net.ssl.SSLParameters | ||
-dontwarn org.openjsse.javax.net.ssl.SSLSocket | ||
-dontwarn org.openjsse.net.ssl.OpenJSSE |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "com.github.sukieva.hhuer", | ||
"variantName": "release", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 1011, | ||
"versionName": "1.0.0", | ||
"outputFile": "app-release.apk" | ||
} | ||
], | ||
"elementType": "File" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package github.sukieva.hhu.data.bean | ||
|
||
|
||
data class Course( | ||
var courseName: String, | ||
var courseAttributeName: String, // 必修 or 选修 | ||
var courseScore: String, // 成绩 | ||
var gradePointScore:String, // 成绩绩点 | ||
var credit: String, // 学分 | ||
var academicYearCode: String, //学年 2019-2020 | ||
) { | ||
constructor() : this( | ||
"课程名", "必修", | ||
"100.0", "5.0", "1.0", | ||
"2019-2020" | ||
) | ||
} |
2 changes: 1 addition & 1 deletion
2
...sukieva/hhu/data/entity/bean/LoginData.kt → ...github/sukieva/hhu/data/bean/LoginData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package github.sukieva.hhu.data.entity.bean | ||
package github.sukieva.hhu.data.bean | ||
|
||
|
||
import java.math.BigInteger | ||
|
2 changes: 1 addition & 1 deletion
2
.../sukieva/hhu/data/entity/bean/PostData.kt → .../github/sukieva/hhu/data/bean/PostData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package github.sukieva.hhu.data.entity.bean | ||
package github.sukieva.hhu.data.bean | ||
|
||
|
||
data class PostData( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package github.sukieva.hhu.data.bean | ||
|
||
data class Rank( | ||
var name: String, | ||
var major: String, | ||
var majorNum: String, | ||
var averageGradePoint: String, | ||
var averageGrade: String, | ||
var averageRank: String, | ||
var gradePoint: String, | ||
var grade: String, | ||
var rank: String | ||
) { | ||
constructor() : this( | ||
"Error", "Error", "999", "5.0", "100.0", "1", "5.0", "100.0", "1" | ||
) | ||
} | ||
|
11 changes: 0 additions & 11 deletions
11
app/src/main/java/github/sukieva/hhu/data/entity/bean/Course.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
app/src/main/java/github/sukieva/hhu/data/entity/bean/Rank.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/src/main/java/github/sukieva/hhu/data/remote/retrofit/Api.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.