pull/22/head
包尔俊 1 month ago
parent ce1ba3055d
commit 248ca0a147

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -0,0 +1,28 @@
<?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.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1769005612568</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

@ -44,22 +44,27 @@ dependencies {
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
// RecyclerView依赖
implementation("androidx.recyclerview:recyclerview:1.3.2")
implementation("androidx.cursoradapter:cursoradapter:1.0.0")
// 部分需要重新修改
// 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("D:\\college\\studying\\studying\\2025.09\\SE\\android\\client\\lib\\httpclient-osgi-4.5.14.jar"))
implementation(files("D:\\college\\studying\\studying\\2025.09\\SE\\android\\client\\lib\\httpclient-win-4.5.14.jar"))
implementation(files("D:\\college\\studying\\studying\\2025.09\\SE\\android\\client\\lib\\httpcore-4.4.16.jar"))
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
}
}
// ==================== 条件编译配置 ====================
// 暂时禁用Google Tasks同步功能保留代码为未来开发准备
//
// gtask包说明
// - gtask包中包含Google Tasks同步相关代码
// - 依赖Apache HttpClient 4.5.14库(已移除)
// - AndroidManifest.xml中已注释GTaskSyncService
//
// 未来若需启用同步功能,请执行以下步骤:
// 1. 重命名或删除gtask包重命名为gtask.disabled避免编译
// 2. 在dependencies块中添加以下依赖替换路径为实际路径
// implementation(files("<your_path>/httpclient-osgi-4.5.14.jar"))
// implementation(files("<your_path>/httpclient-win-4.5.14.jar"))
// implementation(files("<your_path>/httpcore-4.4.16.jar"))
// 3. 在AndroidManifest.xml中取消注释GTaskSyncService第85-90行

@ -182,12 +182,16 @@
android:windowSoftInputMode="stateVisible|adjustResize">
</activity>
<!-- ==================== 同步服务 ==================== -->
<!-- Google任务同步服务用于与Google Tasks同步数据 -->
<service
android:name="net.micode.notes.gtask.remote.GTaskSyncService"
android:exported="false" >
</service>
<!-- ==================== 同步服务 ==================== -->
<!-- Google任务同步服务用于与Google Tasks同步数据 -->
<!-- 暂时禁用同步功能,为未来云同步开发暂留代码 -->
<!-- 若需启用请在build.gradle.kts中移除sourceSets.exclude("**/gtask/**")并添加Apache HttpClient依赖 -->
<!--
<service
android:name="net.micode.notes.gtask.remote.GTaskSyncService"
android:exported="false" >
</service>
-->
<!-- ==================== 搜索元数据 ==================== -->
<!-- 指定默认的搜索活动为NoteEditActivity -->

Loading…
Cancel
Save