diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 0886210..35eb1dd 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,6 +2,5 @@ - \ No newline at end of file diff --git a/NotePad2/.gitignore b/NotePad2/.gitignore deleted file mode 100644 index aa724b7..0000000 --- a/NotePad2/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/caches -/.idea/libraries -/.idea/modules.xml -/.idea/workspace.xml -/.idea/navEditor.xml -/.idea/assetWizardSettings.xml -.DS_Store -/build -/captures -.externalNativeBuild -.cxx -local.properties diff --git a/NotePad2/.idea/.gitignore b/NotePad2/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/NotePad2/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/NotePad2/.idea/.name b/NotePad2/.idea/.name deleted file mode 100644 index 6f001b6..0000000 --- a/NotePad2/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -NotePad \ No newline at end of file diff --git a/NotePad2/.idea/compiler.xml b/NotePad2/.idea/compiler.xml deleted file mode 100644 index b589d56..0000000 --- a/NotePad2/.idea/compiler.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/NotePad2/.idea/deploymentTargetDropDown.xml b/NotePad2/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 0c0c338..0000000 --- a/NotePad2/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/NotePad2/.idea/gradle.xml b/NotePad2/.idea/gradle.xml deleted file mode 100644 index 0897082..0000000 --- a/NotePad2/.idea/gradle.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/NotePad2/.idea/kotlinc.xml b/NotePad2/.idea/kotlinc.xml deleted file mode 100644 index fdf8d99..0000000 --- a/NotePad2/.idea/kotlinc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/NotePad2/.idea/migrations.xml b/NotePad2/.idea/migrations.xml deleted file mode 100644 index f8051a6..0000000 --- a/NotePad2/.idea/migrations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/NotePad2/.idea/misc.xml b/NotePad2/.idea/misc.xml deleted file mode 100644 index 0ad17cb..0000000 --- a/NotePad2/.idea/misc.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/NotePad2/Android_A b/NotePad2/Android_A deleted file mode 160000 index 9b0e4df..0000000 --- a/NotePad2/Android_A +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9b0e4dfd39a0d809871cce76e037daca604882d8 diff --git a/NotePad2/app/.gitignore b/NotePad2/app/.gitignore deleted file mode 100644 index 42afabf..0000000 --- a/NotePad2/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build \ No newline at end of file diff --git a/NotePad2/app/build.gradle.kts b/NotePad2/app/build.gradle.kts deleted file mode 100644 index bb61997..0000000 --- a/NotePad2/app/build.gradle.kts +++ /dev/null @@ -1,58 +0,0 @@ -plugins { - alias(libs.plugins.androidApplication) - alias(libs.plugins.jetbrainsKotlinAndroid) -} - -android { - namespace = "com.example.notepad" - compileSdk = 34 - - defaultConfig { - applicationId = "com.example.notepad" - minSdk = 24 - 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" - ) - } - } - compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - } - kotlinOptions { - jvmTarget = "1.8" - } - android { - buildFeatures { - dataBinding = true // 데이터 바인딩 - } - - buildFeatures { - viewBinding = true // 뷰 바인딩 - } - } -} - -dependencies { - - implementation(libs.androidx.core.ktx) - implementation(libs.androidx.appcompat) - implementation(libs.material) - implementation(libs.androidx.activity) - implementation(libs.androidx.constraintlayout) - testImplementation(libs.junit) - androidTestImplementation(libs.androidx.junit) - androidTestImplementation(libs.androidx.espresso.core) - -} \ No newline at end of file diff --git a/NotePad2/app/proguard-rules.pro b/NotePad2/app/proguard-rules.pro deleted file mode 100644 index 481bb43..0000000 --- a/NotePad2/app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# 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 \ No newline at end of file diff --git a/NotePad2/app/src/androidTest/java/com/example/notepad/ExampleInstrumentedTest.kt b/NotePad2/app/src/androidTest/java/com/example/notepad/ExampleInstrumentedTest.kt deleted file mode 100644 index d472507..0000000 --- a/NotePad2/app/src/androidTest/java/com/example/notepad/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,24 +0,0 @@ -package com.example.notepad - -import androidx.test.platform.app.InstrumentationRegistry -import androidx.test.ext.junit.runners.AndroidJUnit4 - -import org.junit.Test -import org.junit.runner.RunWith - -import org.junit.Assert.* - -/** - * Instrumented test, which will execute on an Android device. - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -@RunWith(AndroidJUnit4::class) -class ExampleInstrumentedTest { - @Test - fun useAppContext() { - // Context of the app under test. - val appContext = InstrumentationRegistry.getInstrumentation().targetContext - assertEquals("com.example.notepad", appContext.packageName) - } -} \ No newline at end of file diff --git a/NotePad2/app/src/main/AndroidManifest.xml b/NotePad2/app/src/main/AndroidManifest.xml deleted file mode 100644 index 1cd44a1..0000000 --- a/NotePad2/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/NotePad2/app/src/main/java/com/example/notepad/MainActivity.kt b/NotePad2/app/src/main/java/com/example/notepad/MainActivity.kt deleted file mode 100644 index b42b9fb..0000000 --- a/NotePad2/app/src/main/java/com/example/notepad/MainActivity.kt +++ /dev/null @@ -1,56 +0,0 @@ -package com.example.notepad - -import android.content.Intent -import android.os.Bundle -import android.view.LayoutInflater -import android.widget.Button -import androidx.appcompat.app.AlertDialog -import androidx.appcompat.app.AppCompatActivity -import com.example.notepad.databinding.ActivityMainBinding - -class MainActivity : AppCompatActivity() { - - lateinit var binding : ActivityMainBinding - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - binding = ActivityMainBinding.inflate(layoutInflater) - setContentView(binding.root) - - } - - override fun onStart() { - super.onStart() - binding.button.setOnClickListener { - val intent = Intent(this, MemoActivity::class.java) - val sharedPreferences = this.getSharedPreferences("memo", AppCompatActivity.MODE_PRIVATE) - val tempMemo = sharedPreferences.getString("tempMemo", null) - - if(tempMemo != null) { - val dialogView = LayoutInflater.from(this).inflate(R.layout.dialog, null) - val builder = AlertDialog.Builder(this) - .setView(dialogView) - .setTitle("메모 복원하기") - - val alertDialog = builder.show() - val yesBtn = alertDialog.findViewById