Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# generated files
bin/
gen/

.gradle/
build/
app/build/
.idea/
# Local configuration file (sdk path, etc)
local.properties
project.properties
.settings/
.classpath
.project

# Local agent workspace
.codex
.codex/

# Local agent instructions
AGENT.md
58 changes: 58 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
plugins {
id("com.android.application")
id("com.google.devtools.ksp")
id("org.jetbrains.kotlin.plugin.compose")
}

android {
namespace = "net.micode.notes"
compileSdk = 37

defaultConfig {
applicationId = "net.micode.notes"
minSdk = 26
targetSdk = 37
versionCode = 1
versionName = "0.1"
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

buildFeatures {
compose = true
}
}

dependencies {


implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("androidx.core:core-ktx:1.18.0")
implementation("androidx.room:room-runtime:2.8.4")
implementation("androidx.room:room-ktx:2.8.4")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.10.0")
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.10.0")
implementation("androidx.activity:activity-compose:1.13.0")
implementation("androidx.compose.ui:ui:1.11.0")
implementation("androidx.compose.foundation:foundation:1.11.0")
implementation("androidx.compose.material3:material3:1.4.0")
implementation("androidx.compose.ui:ui-tooling-preview:1.11.0")
implementation("androidx.glance:glance:1.1.1")
implementation("androidx.glance:glance-appwidget:1.1.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
debugImplementation("androidx.compose.ui:ui-tooling:1.11.0")
ksp("androidx.room:room-compiler:2.8.4")
}
1 change: 1 addition & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Project-specific ProGuard rules.
53 changes: 16 additions & 37 deletions AndroidManifest.xml → app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@
limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.micode.notes"
android:versionCode="1"
android:versionName="0.1" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk android:minSdkVersion="14" />

<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" />
Expand All @@ -31,18 +25,18 @@
<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" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application
android:icon="@drawable/icon_app"
android:label="@string/app_name" >
<activity
android:name=".ui.NotesListActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/NoteTheme"
android:uiOptions="splitActionBarWhenNarrow"
android:windowSoftInputMode="adjustPan" >
android:theme="@style/NoteListComposeTheme"
android:windowSoftInputMode="adjustResize" >

<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -53,8 +47,9 @@
<activity
android:name=".ui.NoteEditActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/NoteTheme" >
android:theme="@style/NoteComposeTheme" >

<intent-filter>
<action android:name="android.intent.action.VIEW" />
Expand All @@ -70,23 +65,11 @@
<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:exported="true"
android:label="@string/app_widget2x2" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
Expand All @@ -100,6 +83,7 @@
</receiver>
<receiver
android:name=".widget.NoteWidgetProvider_4x"
android:exported="true"
android:label="@string/app_widget4x4" >

<intent-filter>
Expand All @@ -113,38 +97,33 @@
android:resource="@xml/widget_4x_info" />
</receiver>

<receiver android:name=".ui.AlarmInitReceiver" >
<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:exported="false"
android:process=":remote" >
</receiver>

<activity
android:name=".ui.AlarmAlertActivity"
android:label="@string/app_name"
android:exported="false"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
</activity>

<activity
android:name="net.micode.notes.ui.NotesPreferenceActivity"
android:exported="false"
android:label="@string/preferences_title"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Holo.Light" >
android:theme="@style/NoteComposeTheme" >
</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" />
</application>
</manifest>
Loading