Compare commits
	
		
			5 Commits 
		
	
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | c8c2dd11e8 | 5 months ago | 
|  | 1812da74d7 | 5 months ago | 
|  | 99bc78ef77 | 5 months ago | 
|  | e5a2d8cbe5 | 5 months ago | 
|  | a41a20a14b | 6 months ago | 
| @ -0,0 +1,3 @@ | ||||
| # Default ignored files | ||||
| /shelf/ | ||||
| /workspace.xml | ||||
| @ -0,0 +1,19 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="deploymentTargetSelector"> | ||||
|     <selectionStates> | ||||
|       <SelectionState runConfigName="app"> | ||||
|         <option name="selectionMode" value="DROPDOWN" /> | ||||
|         <DialogSelection> | ||||
|           <targets> | ||||
|             <Target type="DEFAULT_BOOT"> | ||||
|               <handle> | ||||
|                 <DeviceId pluginId="LocalEmulator" identifier="path=C:\Users\Love AL Forever\.android\avd\Pixel_Fold_API_36.avd" /> | ||||
|               </handle> | ||||
|             </Target> | ||||
|           </targets> | ||||
|         </DialogSelection> | ||||
|       </SelectionState> | ||||
|     </selectionStates> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,17 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="DeviceTable"> | ||||
|     <option name="columnSorters"> | ||||
|       <list> | ||||
|         <ColumnSorterState> | ||||
|           <option name="column" value="API" /> | ||||
|           <option name="order" value="ASCENDING" /> | ||||
|         </ColumnSorterState> | ||||
|         <ColumnSorterState> | ||||
|           <option name="column" value="Name" /> | ||||
|           <option name="order" value="ASCENDING" /> | ||||
|         </ColumnSorterState> | ||||
|       </list> | ||||
|     </option> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,10 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ExternalStorageConfigurationManager" enabled="true" /> | ||||
|   <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK"> | ||||
|     <output url="file://$PROJECT_DIR$/build/classes" /> | ||||
|   </component> | ||||
|   <component name="ProjectType"> | ||||
|     <option name="id" value="Android" /> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="RenderSettings"> | ||||
|     <option name="showDecorations" value="true" /> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,3 @@ | ||||
| # Default ignored files | ||||
| /shelf/ | ||||
| /workspace.xml | ||||
| @ -0,0 +1,13 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="GradleSettings"> | ||||
|     <option name="linkedExternalProjectsSettings"> | ||||
|       <GradleProjectSettings> | ||||
|         <option name="testRunner" value="CHOOSE_PER_TEST" /> | ||||
|         <option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||||
|         <option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" /> | ||||
|         <option name="resolveExternalAnnotations" value="false" /> | ||||
|       </GradleProjectSettings> | ||||
|     </option> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,10 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ProjectMigrations"> | ||||
|     <option name="MigrateToGradleLocalJavaHome"> | ||||
|       <set> | ||||
|         <option value="$PROJECT_DIR$" /> | ||||
|       </set> | ||||
|     </option> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,10 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ExternalStorageConfigurationManager" enabled="true" /> | ||||
|   <component name="ProjectRootManager"> | ||||
|     <output url="file://$PROJECT_DIR$/build/classes" /> | ||||
|   </component> | ||||
|   <component name="ProjectType"> | ||||
|     <option name="id" value="Android" /> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,13 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="RunConfigurationProducerService"> | ||||
|     <option name="ignoredProducers"> | ||||
|       <set> | ||||
|         <option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" /> | ||||
|         <option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" /> | ||||
|         <option value="com.intellij.execution.junit.TestInClassConfigurationProducer" /> | ||||
|         <option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" /> | ||||
|       </set> | ||||
|     </option> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,26 @@ | ||||
| apply plugin: 'com.android.application' | ||||
| 
 | ||||
| android { | ||||
|     compileSdkVersion 34 | ||||
|     buildToolsVersion '30.0.2' | ||||
| 
 | ||||
|     defaultConfig { | ||||
|         applicationId "net.micode.notes" | ||||
|         namespace 'net.micode.notes' | ||||
|         minSdkVersion 33 | ||||
|         targetSdkVersion 34 | ||||
|     } | ||||
| 
 | ||||
|     buildTypes { | ||||
|         release { | ||||
|             minifyEnabled false | ||||
|             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| dependencies { | ||||
|     implementation fileTree(dir: 'G:\\notesmaster\\httpcomponents-client-4.5.14-bin', include: ['*.aar', '*.jar'], exclude: []) | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| @ -0,0 +1,59 @@ | ||||
| plugins { | ||||
|     alias(libs.plugins.android.application) | ||||
| } | ||||
| 
 | ||||
| android { | ||||
|     namespace = "net.micode.notes" | ||||
|     compileSdk = 34 | ||||
| 
 | ||||
|     defaultConfig { | ||||
|         applicationId = "net.micode.notes" | ||||
|         minSdk = 30 | ||||
|         targetSdk = 34 | ||||
|         versionCode = 1 | ||||
|         versionName = "1.0" | ||||
| 
 | ||||
|         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||||
|     } | ||||
| 
 | ||||
|     buildTypes { | ||||
|         release { | ||||
|             isMinifyEnabled = false | ||||
|             proguardFiles( | ||||
|                 getDefaultProguardFile("proguard-android-optimize.txt"), | ||||
|                 "proguard-rules.pro" | ||||
|             ) | ||||
|         } | ||||
|     } | ||||
|     packaging { | ||||
|         resources.excludes.add("META-INF/DEPENDENCIES"); | ||||
|         resources.excludes.add("META-INF/NOTICE"); | ||||
|         resources.excludes.add("META-INF/LICENSE"); | ||||
|         resources.excludes.add("META-INF/LICENSE.txt"); | ||||
|         resources.excludes.add("META-INF/NOTICE.txt"); | ||||
|     } | ||||
|     compileOptions { | ||||
|         sourceCompatibility = JavaVersion.VERSION_1_8 | ||||
|         targetCompatibility = JavaVersion.VERSION_1_8 | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| dependencies { | ||||
| 
 | ||||
|     implementation(libs.appcompat) | ||||
|     implementation(libs.material) | ||||
|     implementation(libs.activity) | ||||
|     implementation(libs.constraintlayout) | ||||
|     //    implementation(fileTree(mapOf( | ||||
| //        "dir" to "D:\\Code\\AndroidCode\\Notesmaster\\httpcomponents-client-4.5.14-bin\\lib", | ||||
| //        "include" to listOf("*.aar", "*.jar"), | ||||
| //        "exclude" to listOf("") | ||||
| //    ))) | ||||
|     //修改为如下代码: | ||||
|     implementation(files("G:\\notesmaster\\httpcomponents-client-4.5.14-bin\\lib\\httpclient-osgi-4.5.14.jar")) | ||||
|     implementation(files("G:\\notesmaster\\httpcomponents-client-4.5.14-bin\\lib\\httpclient-win-4.5.14.jar")) | ||||
|     implementation(files("G:\\notesmaster\\httpcomponents-client-4.5.14-bin\\lib\\httpcore-4.4.16.jar")) | ||||
|     testImplementation(libs.junit) | ||||
|     androidTestImplementation(libs.ext.junit) | ||||
|     androidTestImplementation(libs.espresso.core) | ||||
| } | ||||
| @ -0,0 +1,157 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools"> | ||||
| 
 | ||||
|     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||||
|     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> | ||||
|     <uses-permission android:name="android.permission.INTERNET" /> | ||||
|     <uses-permission android:name="android.permission.READ_CONTACTS" /> | ||||
|     <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> | ||||
|     <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> | ||||
|     <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | ||||
|     <uses-permission android:name="android.permission.USE_CREDENTIALS" /> | ||||
|     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||||
| 
 | ||||
|     <application | ||||
|         android:allowBackup="true" | ||||
|         android:dataExtractionRules="@xml/data_extraction_rules" | ||||
|         android:fullBackupContent="@xml/backup_rules" | ||||
|         android:icon="@mipmap/ic_launcher" | ||||
|         android:label="@string/app_name" | ||||
|         android:roundIcon="@mipmap/ic_launcher_round" | ||||
|         android:supportsRtl="true" | ||||
|         android:theme="@style/Theme.Notesmaster" | ||||
|         tools:targetApi="31"> | ||||
| 
 | ||||
|         <activity | ||||
|             android:name=".ui.NotesListActivity" | ||||
|             android:configChanges="keyboardHidden|orientation|screenSize" | ||||
|             android:label="@string/app_name" | ||||
|             android:launchMode="singleTop" | ||||
|             android:theme="@style/NoteTheme" | ||||
|             android:uiOptions="splitActionBarWhenNarrow" | ||||
|             android:windowSoftInputMode="adjustPan" | ||||
|             android:exported="true"> | ||||
| 
 | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.MAIN" /> | ||||
|                 <category android:name="android.intent.category.LAUNCHER" /> | ||||
|             </intent-filter> | ||||
|         </activity> | ||||
| 
 | ||||
|         <activity | ||||
|             android:name=".ui.NoteEditActivity" | ||||
|             android:configChanges="keyboardHidden|orientation|screenSize" | ||||
|             android:launchMode="singleTop" | ||||
|             android:theme="@style/NoteTheme" | ||||
|             android:exported="true"> | ||||
| 
 | ||||
|             <intent-filter > | ||||
|                 <action android:name="android.intent.action.VIEW" /> | ||||
|                 <category android:name="android.intent.category.DEFAULT" /> | ||||
|                 <data android:mimeType="vnd.android.cursor.item/text_note" /> | ||||
|                 <data android:mimeType="vnd.android.cursor.item/call_note" /> | ||||
|             </intent-filter >> | ||||
| 
 | ||||
|             <intent-filter > | ||||
|                 <action android:name="android.intent.action.INSERT_OR_EDIT" /> | ||||
|                 <category android:name="android.intent.category.DEFAULT" /> | ||||
|                 <data android:mimeType="vnd.android.cursor.item/text_note" /> | ||||
|                 <data android:mimeType="vnd.android.cursor.item/call_note" /> | ||||
|             </intent-filter> | ||||
| 
 | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.SEARCH" /> | ||||
|                 <category android:name="android.intent.category.DEFAULT" /> | ||||
|             </intent-filter> | ||||
| 
 | ||||
|             <meta-data | ||||
|                 android:name="android.app.searchable" | ||||
|                 android:resource="@xml/searchable" /> | ||||
|         </activity> | ||||
| 
 | ||||
| 
 | ||||
|         <provider | ||||
|             android:name="net.micode.notes.data.NotesProvider" | ||||
|             android:authorities="micode_notes" | ||||
|             android:multiprocess="true" /> | ||||
| 
 | ||||
|         <receiver | ||||
|             android:name=".widget.NoteWidgetProvider_2x" | ||||
|             android:label="@string/app_widget2x2" | ||||
|             android:exported="true"> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> | ||||
|                 <action android:name="android.appwidget.action.APPWIDGET_DELETED" /> | ||||
|                 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" /> | ||||
|             </intent-filter> | ||||
| 
 | ||||
|             <meta-data | ||||
|                 android:name="android.appwidget.provider" | ||||
|                 android:resource="@xml/widget_2x_info" /> | ||||
|         </receiver> | ||||
|         <receiver | ||||
|             android:name=".widget.NoteWidgetProvider_4x" | ||||
|             android:label="@string/app_widget4x4" | ||||
|             android:exported="true"> | ||||
| 
 | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> | ||||
|                 <action android:name="android.appwidget.action.APPWIDGET_DELETED" /> | ||||
|                 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" /> | ||||
|             </intent-filter> | ||||
| 
 | ||||
|             <meta-data | ||||
|                 android:name="android.appwidget.provider" | ||||
|                 android:resource="@xml/widget_4x_info" /> | ||||
|         </receiver> | ||||
| 
 | ||||
|         <receiver android:name=".ui.AlarmInitReceiver" | ||||
|             android:exported="true"> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.BOOT_COMPLETED" /> | ||||
|             </intent-filter> | ||||
|         </receiver> | ||||
| 
 | ||||
|         <receiver | ||||
|             android:name="net.micode.notes.ui.AlarmReceiver" | ||||
|             android:process=":remote" > | ||||
|         </receiver> | ||||
| 
 | ||||
|         <activity | ||||
|             android:name=".ui.AlarmAlertActivity" | ||||
|             android:label="@string/app_name" | ||||
|             android:launchMode="singleInstance" | ||||
|             android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" > | ||||
|         </activity> | ||||
| 
 | ||||
|         <activity | ||||
|             android:name="net.micode.notes.ui.NotesPreferenceActivity" | ||||
|             android:label="@string/preferences_title" | ||||
|             android:launchMode="singleTop" | ||||
|             android:theme="@android:style/Theme.Holo.Light" > | ||||
|         </activity> | ||||
| 
 | ||||
|         <service | ||||
|             android:name="net.micode.notes.gtask.remote.GTaskSyncService" | ||||
|             android:exported="false" > | ||||
|         </service> | ||||
| 
 | ||||
|         <meta-data | ||||
|             android:name="android.app.default_searchable" | ||||
|             android:value=".ui.NoteEditActivity" /> | ||||
| 
 | ||||
| 
 | ||||
|         <!--        <activity--> | ||||
|         <!--            android:name=".MainActivity"--> | ||||
|         <!--            android:exported="true">--> | ||||
|         <!--            <intent-filter>--> | ||||
|         <!--                <action android:name="android.intent.action.MAIN" />--> | ||||
| 
 | ||||
|         <!--                <category android:name="android.intent.category.LAUNCHER" />--> | ||||
|         <!--            </intent-filter>--> | ||||
|         <!--        </activity>--> | ||||
| 
 | ||||
|     </application> | ||||
| 
 | ||||
| </manifest> | ||||
| Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB | 
| Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 245 B | 
| Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB | 
| Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB | 
| Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB | 
| Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 443 B | 
| Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB | 
| Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB | 
| Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB | 
| Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB | 
| Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB | 
| Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB | 
| Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB | 
| Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB | 
| Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB | 
| Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB | 
| Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB | 
| Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB | 
| Before Width: | Height: | Size: 554 KiB After Width: | Height: | Size: 554 KiB | 
| Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB | 
| Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB | 
| Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB | 
| Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB | 
| Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB | 
| Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB | 
| Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB | 
| Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB | 
| Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB | 
| Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB | 
| Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB | 
| Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB | 
| Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB | 
| Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB | 
| Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB | 
| Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB | 
| Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB | 
| Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB | 
| Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |