diff --git a/README1.md b/README1.md new file mode 100644 index 0000000..df985a4 --- /dev/null +++ b/README1.md @@ -0,0 +1 @@ +https://drive.google.com/file/d/1Y29mUbT7SdB0wNvERwrHrhxpqKsgpoJH/view?usp=sharing \ No newline at end of file diff --git a/just for fun/.gitignore b/just for fun/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/just for fun/.gitignore @@ -0,0 +1,15 @@ +*.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/just for fun/.idea/.gitignore b/just for fun/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/just for fun/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/just for fun/.idea/.name b/just for fun/.idea/.name new file mode 100644 index 0000000..b3405b3 --- /dev/null +++ b/just for fun/.idea/.name @@ -0,0 +1 @@ +My Application \ No newline at end of file diff --git a/just for fun/.idea/AndroidProjectSystem.xml b/just for fun/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/just for fun/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/just for fun/.idea/compiler.xml b/just for fun/.idea/compiler.xml new file mode 100644 index 0000000..b86273d --- /dev/null +++ b/just for fun/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/deploymentTargetSelector.xml b/just for fun/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..b268ef3 --- /dev/null +++ b/just for fun/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/deviceManager.xml b/just for fun/.idea/deviceManager.xml new file mode 100644 index 0000000..91f9558 --- /dev/null +++ b/just for fun/.idea/deviceManager.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/gradle.xml b/just for fun/.idea/gradle.xml new file mode 100644 index 0000000..97f0a8e --- /dev/null +++ b/just for fun/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/migrations.xml b/just for fun/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/just for fun/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/misc.xml b/just for fun/.idea/misc.xml new file mode 100644 index 0000000..74dd639 --- /dev/null +++ b/just for fun/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/runConfigurations.xml b/just for fun/.idea/runConfigurations.xml new file mode 100644 index 0000000..16660f1 --- /dev/null +++ b/just for fun/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/just for fun/.idea/vcs.xml b/just for fun/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/just for fun/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/just for fun/.kotlin/errors/errors-1775398114718.log b/just for fun/.kotlin/errors/errors-1775398114718.log new file mode 100644 index 0000000..1219b50 --- /dev/null +++ b/just for fun/.kotlin/errors/errors-1775398114718.log @@ -0,0 +1,4 @@ +kotlin version: 2.0.21 +error message: The daemon has terminated unexpectedly on startup attempt #1 with error code: 0. The daemon process output: + 1. Kotlin compile daemon is ready + diff --git a/just for fun/app/.gitignore b/just for fun/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/just for fun/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/just for fun/app/build.gradle.kts b/just for fun/app/build.gradle.kts new file mode 100644 index 0000000..5362365 --- /dev/null +++ b/just for fun/app/build.gradle.kts @@ -0,0 +1,49 @@ +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.kotlin.android) +} + +android { + namespace = "com.example.myapplication" + compileSdk = 36 + + defaultConfig { + applicationId = "com.example.myapplication" + minSdk = 24 + targetSdk = 36 + 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_11 + targetCompatibility = JavaVersion.VERSION_11 + } + kotlinOptions { + jvmTarget = "11" + } +} + +dependencies { + implementation("com.squareup.okhttp3:okhttp:4.12.0") + implementation("com.github.bumptech.glide:glide:4.16.0") + 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/just for fun/app/proguard-rules.pro b/just for fun/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/just for fun/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# 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/just for fun/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt b/just for fun/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..e9283cf --- /dev/null +++ b/just for fun/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.myapplication + +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.myapplication", appContext.packageName) + } +} \ No newline at end of file diff --git a/just for fun/app/src/main/AndroidManifest.xml b/just for fun/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..5636a37 --- /dev/null +++ b/just for fun/app/src/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/just for fun/app/src/main/java/com/example/myapplication/MainActivity.kt b/just for fun/app/src/main/java/com/example/myapplication/MainActivity.kt new file mode 100644 index 0000000..84a8810 --- /dev/null +++ b/just for fun/app/src/main/java/com/example/myapplication/MainActivity.kt @@ -0,0 +1,80 @@ +package com.example.coffeemood + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import android.widget.* +import okhttp3.* +import org.json.JSONObject +import java.io.IOException +import com.bumptech.glide.Glide + +class MainActivity : AppCompatActivity() { + + private val client = OkHttpClient() + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val quote = findViewById(R.id.kanyeQuote) + val advice = findViewById(R.id.advice) + val dogImage = findViewById(R.id.dogImage) + val avatar = findViewById(R.id.avatar) + val btn = findViewById