From 50ea5ffc7aa120df109d17918b633508305a1aca Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 27 Aug 2021 00:54:05 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20Add=20Files=20Generated=20by=20Andr?= =?UTF-8?q?oid=20Studio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 14 ++ .idea/.gitignore | 3 + .idea/compiler.xml | 6 + .idea/deploymentTargetDropDown.xml | 17 ++ .idea/gradle.xml | 20 ++ .idea/misc.xml | 19 ++ .idea/vcs.xml | 6 + app/.gitignore | 1 + app/build.gradle | 41 ++++ app/proguard-rules.pro | 21 ++ app/src/main/AndroidManifest.xml | 24 +++ .../java/com/mylloon/mobidl/MainActivity.kt | 96 +++++++++ .../main/java/com/mylloon/mobidl/Scraper.kt | 79 +++++++ app/src/main/python/.env | 3 + app/src/main/python/main.py | 202 ++++++++++++++++++ app/src/main/python/requirements.txt | 3 + .../drawable-v24/ic_launcher_foreground.xml | 30 +++ .../res/drawable/ic_launcher_background.xml | 170 +++++++++++++++ app/src/main/res/drawable/ic_return.xml | 11 + app/src/main/res/drawable/ic_settings.xml | 10 + app/src/main/res/layout/activity_login.xml | 66 ++++++ app/src/main/res/layout/activity_main.xml | 18 ++ app/src/main/res/layout/activity_settings.xml | 18 ++ app/src/main/res/menu/menu_main.xml | 11 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + app/src/main/res/mipmap-hdpi/ic_launcher.webp | 3 + .../res/mipmap-hdpi/ic_launcher_round.webp | 3 + app/src/main/res/mipmap-mdpi/ic_launcher.webp | 3 + .../res/mipmap-mdpi/ic_launcher_round.webp | 3 + .../main/res/mipmap-xhdpi/ic_launcher.webp | 3 + .../res/mipmap-xhdpi/ic_launcher_round.webp | 3 + .../main/res/mipmap-xxhdpi/ic_launcher.webp | 3 + .../res/mipmap-xxhdpi/ic_launcher_round.webp | 3 + .../main/res/mipmap-xxxhdpi/ic_launcher.webp | 3 + .../res/mipmap-xxxhdpi/ic_launcher_round.webp | 3 + app/src/main/res/values-night/themes.xml | 16 ++ app/src/main/res/values/colors.xml | 10 + app/src/main/res/values/strings.xml | 7 + app/src/main/res/values/themes.xml | 16 ++ build.gradle | 18 ++ gradle.properties | 21 ++ gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59203 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 185 ++++++++++++++++ gradlew.bat | 89 ++++++++ settings.gradle | 10 + 47 files changed, 1307 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/deploymentTargetDropDown.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 app/.gitignore create mode 100644 app/build.gradle create mode 100644 app/proguard-rules.pro create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/com/mylloon/mobidl/MainActivity.kt create mode 100644 app/src/main/java/com/mylloon/mobidl/Scraper.kt create mode 100644 app/src/main/python/.env create mode 100644 app/src/main/python/main.py create mode 100644 app/src/main/python/requirements.txt create mode 100644 app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 app/src/main/res/drawable/ic_return.xml create mode 100644 app/src/main/res/drawable/ic_settings.xml create mode 100644 app/src/main/res/layout/activity_login.xml create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/layout/activity_settings.xml create mode 100644 app/src/main/res/menu/menu_main.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.webp create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.webp create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.webp create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.webp create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.webp create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.webp create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp create mode 100644 app/src/main/res/values-night/themes.xml create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/themes.xml create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..537f4a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..eaf91e2 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..7d7ec2e --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..9048a1c --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..93e6e10 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..33c5d48 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..9661ac7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..0c032b8 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,41 @@ +plugins { + id 'com.android.application' + id 'kotlin-android' +} + +android { + compileSdk 31 + + defaultConfig { + applicationId "com.mylloon.mobidl" + minSdk 21 + targetSdk 31 + versionCode 1 + versionName "0.1" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled 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' + } +} + +dependencies { + implementation 'androidx.core:core-ktx:1.6.0' + implementation 'androidx.appcompat:appcompat:1.3.1' + implementation 'com.google.android.material:material:1.4.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.0' + implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.30' + implementation 'com.github.kittinunf.fuel:fuel:2.3.1' +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/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/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..cca9c30 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/mylloon/mobidl/MainActivity.kt b/app/src/main/java/com/mylloon/mobidl/MainActivity.kt new file mode 100644 index 0000000..3b1d47d --- /dev/null +++ b/app/src/main/java/com/mylloon/mobidl/MainActivity.kt @@ -0,0 +1,96 @@ +package com.mylloon.mobidl + + +import android.Manifest +import android.content.pm.PackageManager +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import android.widget.Button +import android.widget.EditText +import android.text.Editable + +import android.text.TextWatcher +import android.view.MenuItem +import android.view.Menu +import android.widget.Toast +import androidx.core.content.ContextCompat + + +class MainActivity : AppCompatActivity() { + private var settingsButton: Menu? = null // before starting the app there is no settings button + private var inSettings: Boolean = false // by default your not in settings page + + private fun toggleSettingsButtonVisibility() { // Change Settings button visibility + val visibility: Boolean = settingsButton?.findItem(R.id.settingsButton)?.isVisible == true + settingsButton?.findItem(R.id.settingsButton)?.isVisible = !visibility + } + + override fun onCreate(savedInstanceState: Bundle?) { // Main function + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_login) // show login page + + val userInput = findViewById(R.id.usernameInput) + val passwordInput = findViewById(R.id.passwordInput) + val buttonInput = findViewById