Skip to content

Commit

Permalink
first add
Browse files Browse the repository at this point in the history
  • Loading branch information
importer committed May 6, 2021
1 parent 15c3344 commit 13f46ca
Show file tree
Hide file tree
Showing 406 changed files with 14,560 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
83 changes: 83 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion "30.0.3"
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}

// **兼容Android6.0系统所需,如果这句话报错,可在dependencies标签下使用compile 'cn.bmob.android:http-legacy:1.0'**
// useLibrary 'org.apache.http.legacy'

defaultConfig {
applicationId "com.bigbig.ding"
minSdkVersion 24
targetSdkVersion 28
versionCode 4
versionName "2.0.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:cardview-v7:25.1.0'
testCompile 'junit:junit:4.12'

// litePal 数据库框架 地址:https://github.com/LitePalFramework/LitePal
compile 'org.litepal.android:core:1.4.1'

// butterknife
compile 'com.jakewharton:butterknife:8.6.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'

// BaseRecyclerViewAdapterHelper
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.16'

// glide
compile 'com.github.bumptech.glide:glide:3.7.0'

// logger
compile 'com.orhanobut:logger:1.15'

//https://github.com/Blankj/AndroidUtilCode
compile 'com.blankj:utilcode:1.7.1'

//bmob-sdk:Bmob的android sdk包,包含了Bmob的数据存储、文件等服务,以下是最新的bmob-sdk:
//3.5.5:请务必查看下面注释[1]
compile 'cn.bmob.android:bmob-sdk:3.7.7'
//如果你想应用能够兼容Android6.0,请添加此依赖(org.apache.http.legacy.jar)
// compile 'cn.bmob.android:http-legacy:1.0'
implementation "io.reactivex.rxjava2:rxjava:2.2.2"
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation 'com.squareup.okio:okio:2.1.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'

implementation files('libs/MiPush_SDK_Client_3_6_19.jar')

// 以下是图片加载器
compile 'com.github.piasy:BigImageViewer:1.3.1'
// load with glide
// compile 'com.github.piasy:GlideImageLoader:1.3.1'
// load with fresco
compile 'com.github.piasy:FrescoImageLoader:1.3.1'

// photoView https://github.com/chrisbanes/PhotoView
compile 'com.github.chrisbanes:PhotoView:2.1.2'
}
Binary file added app/libs/MiPush_SDK_Client_3_6_19.jar
Binary file not shown.
25 changes: 25 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\ec\android sdk_4_5_6/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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
1 change: 1 addition & 0 deletions app/release/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":4,"versionName":"2.0.2","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.bigbig.fadainote;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation 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() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.fadai.fadainote", appContext.getPackageName());
}
}
174 changes: 174 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bigbig.ding">

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<!--以下是Bmob需要的权限-->
<!--允许联网 -->
<uses-permission android:name="android.permission.INTERNET" />
<!--获取GSM(2g)、WCDMA(联通3g)等网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!--获取wifi网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!--保持CPU 运转,屏幕和键盘灯有可能是关闭的,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!--获取sd卡写的权限,用于文件上传和下载-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!--允许读取手机状态 用于创建BmobInstallation-->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />


<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_TASKS"/>

<permission
android:name="com.bigbig.ding.permission.MIPUSH_RECEIVE"
android:protectionLevel="signature" />

<uses-permission android:name="com.bigbig.ding.permission.MIPUSH_RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />


<application
android:name="com.bigbig.ding.MainApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_circle"
android:supportsRtl="true"
android:theme="@style/NoActionBar">
<activity
android:name="com.bigbig.ding.module.notes.main.NoteMainActivity"
android:label="@string/app_name"
android:theme="@style/NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider
android:name="cn.bmob.v3.util.BmobContentProvider"
android:authorities="com.bigbig.ding.BmobContentProvider">
</provider>
<!--FileProvider共享文件-->
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.bigbig.ding.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"/>
</provider>

<activity android:name="com.bigbig.ding.module.notes.edit.EditNoteActivity"
android:windowSoftInputMode="stateHidden|stateAlwaysHidden"/>

<activity android:name="com.bigbig.ding.module.notes.Image.ImageInfoActivity"/>

<activity android:name="com.bigbig.ding.module.notes.share.ShareActivity"/>

<activity android:name="com.bigbig.ding.module.notes.folder.FolderActivity"/>

<activity android:name="com.bigbig.ding.module.lock.verification.LockActivity" />

<activity android:name="com.bigbig.ding.module.lock.modification.LockModificationActivity" />

<activity android:name="com.bigbig.ding.module.setting.main.SettingMainActivity" />

<activity android:name="com.bigbig.ding.module.setting.lock.LockSettingActivity">
<intent-filter>
<action android:name="com.app.fadai.supernote.LOCK_SETTING" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<activity android:name="com.bigbig.ding.module.setting.about.AppAboutActivity">
<intent-filter>
<action android:name="com.app.fadai.supernote.APP_ABOUT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>

<activity android:name="com.bigbig.ding.module.setting.feedback.FeedbackActivity"
android:windowSoftInputMode="stateHidden|stateAlwaysHidden">

<intent-filter>
<action android:name="com.app.fadai.supernote.FEEDBACK"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>

<activity android:name="com.bigbig.ding.module.setting.developer.DeveloperActivity">

<intent-filter>
<action android:name="com.app.fadai.supernote.DEVELOPER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>

<!--小米推送开始-->
<service
android:name="com.xiaomi.push.service.XMJobService"
android:enabled="true"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE"
android:process=":pushservice" />

<service
android:name="com.xiaomi.push.service.XMPushService"
android:enabled="true"
android:process=":pushservice" />

<service
android:name="com.xiaomi.mipush.sdk.PushMessageHandler"
android:enabled="true"
android:exported="true" />
<service
android:name="com.xiaomi.mipush.sdk.MessageHandleService"
android:enabled="true" />

<receiver
android:name="com.bigbig.ding.utils.DemoMessageReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.xiaomi.mipush.RECEIVE_MESSAGE" />
</intent-filter>
<intent-filter>
<action android:name="com.xiaomi.mipush.MESSAGE_ARRIVED" />
</intent-filter>
<intent-filter>
<action android:name="com.xiaomi.mipush.ERROR" />
</intent-filter>
</receiver>
<receiver
android:name="com.xiaomi.push.service.receivers.NetworkStatusReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver
android:name="com.xiaomi.push.service.receivers.PingReceiver"
android:exported="false"
android:process=":pushservice">
<intent-filter>
<action android:name="com.xiaomi.push.PING_TIMER" />
</intent-filter>
</receiver>

<!--小米推送结束-->


</application>

</manifest>
50 changes: 50 additions & 0 deletions app/src/main/assets/litepal.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<litepal>
<!--
Define the database name of your application.
By default each database name should be end with .db.
If you didn't name your database end with .db,
LitePal would plus the suffix automaticly for you.
For example:
<dbname value="demo" ></dbname>
-->
<dbname value="Note" ></dbname>

<!--
Define the version of your database. Each time you want
to upgrade your database, the version tag would helps.
Modify the models you defined in the mapping tag, and just
make the version value plus one, the upgrade of database
will be processed automaticly without concern.
For example:
<version value="1" ></version>
-->
<version value="1" ></version>

<!--
Define your models in the list with mapping tag, LitePal will
create tables for each mapping class. The supported fields
defined in models will be mapped into columns.
For example:
<list>
<mapping class="com.test.model.Reader"></mapping>
<mapping class="com.test.model.Magazine"></mapping>
</list>
-->
<list>
<mapping class="com.bigbig.ding.bean.Note"></mapping>
<mapping class="com.bigbig.ding.bean.NoteFolder"></mapping>
</list>

<!--
Define where the .db file should be. "internal" means the .db file
will be stored in the database folder of internal storage which no
one can access. "external" means the .db file will be stored in the
path to the directory on the primary external storage device where
the application can place persistent files it owns which everyone
can access. "internal" will act as default.
For example:
<storage value="external"></storage>
-->

</litepal>
Binary file added app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 13f46ca

Please sign in to comment.