-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
182 changed files
with
14,259 additions
and
4 deletions.
There are no files selected for viewing
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-12/"/> | ||
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> | ||
<classpathentry kind="output" path="bin/default"/> | ||
</classpath> |
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 @@ | ||
/build |
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>app</name> | ||
<comment>Project app created by Buildship.</comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.buildship.core.gradleprojectbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> | ||
</natures> | ||
</projectDescription> |
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,2 @@ | ||
connection.project.dir=.. | ||
eclipse.preferences.version=1 |
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,76 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 31 | ||
lintOptions { | ||
checkReleaseBuilds false | ||
// Or, if you prefer, you can continue to check for errors in release builds, | ||
// but continue the build even when errors are found: | ||
abortOnError false | ||
} | ||
defaultConfig { | ||
applicationId "tk.louisstudio.daily_notes" | ||
minSdkVersion 19 | ||
targetSdkVersion 31 | ||
versionCode 13 | ||
multiDexEnabled true | ||
vectorDrawables.useSupportLibrary = true | ||
versionName "3.0.1" | ||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled true | ||
shrinkResources true | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
multiDexKeepProguard file('multidex-config.pro') | ||
} | ||
debug { | ||
minifyEnabled false | ||
shrinkResources false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
multiDexKeepProguard file('multidex-config.pro') | ||
} | ||
} | ||
packagingOptions { | ||
exclude 'META-INF/DEPENDENCIES.txt' | ||
exclude 'META-INF/LICENSE.txt' | ||
exclude 'META-INF/NOTICE.txt' | ||
exclude 'META-INF/NOTICE' | ||
exclude 'META-INF/LICENSE' | ||
exclude 'META-INF/DEPENDENCIES' | ||
exclude 'META-INF/notice.txt' | ||
exclude 'META-INF/license.txt' | ||
exclude 'META-INF/dependencies.txt' | ||
exclude 'META-INF/LGPL2.1' | ||
exclude 'META-INF/LICENSE-LGPL-3.txt' | ||
exclude 'META-INF/LICENSE-LGPL-2.1.txt' | ||
exclude 'META-INF/LICENSE-W3C-TEST' | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation 'androidx.appcompat:appcompat:1.1.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | ||
implementation 'androidx.preference:preference:1.1.1' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'androidx.test.ext:junit:1.1.1' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' | ||
implementation 'com.github.bumptech.glide:glide:4.10.0' | ||
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0' | ||
implementation 'com.baoyz.pullrefreshlayout:library:1.2.0' | ||
implementation 'com.andrognito.pinlockview:pinlockview:2.1.0' | ||
implementation 'com.google.android.material:material:1.1.0' | ||
implementation 'com.thegrizzlylabs.sardine-android:sardine-android:0.4' | ||
implementation 'com.rengwuxian.materialedittext:library:2.1.4' | ||
implementation 'com.android.support:multidex:1.0.3' | ||
implementation 'com.flipboard:bottomsheet-core:1.5.3' | ||
implementation 'com.github.chrisbanes:PhotoView:2.3.0' | ||
implementation 'gdut.bsx:share2:0.9.3' | ||
implementation 'ws.vinta:pangu:1.1.0' | ||
} |
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,4 @@ | ||
-keep class tk.louisstudio.** { *; } | ||
-dontwarn org.xmlpull.v1.XmlPullParser | ||
-dontwarn org.xmlpull.v1.XmlSerializer | ||
-keep class org.xmlpull.v1.* {*;} |
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,24 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# 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 | ||
-dontwarn org.xmlpull.v1.XmlPullParser | ||
-dontwarn org.xmlpull.v1.XmlSerializer | ||
-keep class org.xmlpull.v1.* {*;} |
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 @@ | ||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":13,"versionName":"3.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}] |
25 changes: 25 additions & 0 deletions
25
app/src/androidTest/java/tk/louisstudio/daily_notes/ExampleInstrumentedTest.java
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,25 @@ | ||
package tk.louisstudio.daily_notes; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import android.content.Context; | ||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
import androidx.test.platform.app.InstrumentationRegistry; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); | ||
|
||
assertEquals("tk.louisstudio.dailynotes", appContext.getPackageName()); | ||
} | ||
} |
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,82 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="tk.louisstudio.daily_notes"> | ||
|
||
<uses-permission android:name="android.permission.WAKE_LOCK"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | ||
<uses-permission android:name="android.permission.CAMERA"/> | ||
|
||
<uses-feature | ||
android:name="android.hardware.camera" | ||
android:required="true"/> | ||
<uses-feature android:name="android.hardware.camera.autofocus"/> | ||
|
||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> | ||
|
||
<application | ||
android:allowBackup="false" | ||
android:icon="@mipmap/ic_launcher_round" | ||
android:label="@string/app_name" | ||
android:networkSecurityConfig="@xml/network_secureity_config" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
tools:replace="android:allowBackup"> | ||
<activity | ||
android:name=".IntroActivity" | ||
android:theme="@style/AppTheme.NoActionBar"> | ||
</activity> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.SettingsActivity" | ||
android:label="@string/title_activity_settings" | ||
android:parentActivityName="tk.louisstudio.daily_notes.MainActivity" | ||
android:theme="@style/AppTheme.Settings"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value="tk.louisstudio.daily_notes.MainActivity"/> | ||
</activity> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.AddActivity" | ||
android:label="@string/add" | ||
android:theme="@style/AppTheme.NoActionBar"/> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.LoginActivity" | ||
android:theme="@style/AppTheme.NoActionBar"/> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.RegeisterActivity" | ||
android:theme="@style/AppTheme.NoActionBar"/> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.SetPinActivity" | ||
android:theme="@style/AppTheme.NoActionBar"/> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.PinLockActivity" | ||
android:theme="@style/AppTheme.NoActionBar"/> | ||
<activity | ||
android:name="tk.louisstudio.daily_notes.MainActivity" | ||
android:configChanges="uiMode" | ||
android:launchMode="singleTask" | ||
android:theme="@style/AppTheme.NoActionBar"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
<meta-data | ||
android:name="android.app.shortcuts" | ||
android:resource="@xml/shortcuts"/> | ||
</activity> | ||
<provider | ||
android:name="androidx.core.content.FileProvider" | ||
android:authorities="tk.louisstudio.daily_notes.FileProvider" | ||
android:exported="false" | ||
android:grantUriPermissions="true"> | ||
<meta-data | ||
android:name="android.support.FILE_PROVIDER_PATHS" | ||
android:resource="@xml/provider_paths"/> | ||
</provider> | ||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.