Merge pull request #12 from Faraphel/base-nfc

Base nfc
This commit is contained in:
Faraphel 2023-11-28 23:00:55 +01:00 committed by GitHub
commit 395fbb8bdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 1334 additions and 1 deletions

15
.gitignore vendored Normal file
View file

@ -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

3
.idea/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

1
.idea/.name Normal file
View file

@ -0,0 +1 @@
Palto

6
.idea/compiler.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="17" />
</component>
</project>

20
.idea/gradle.xml Normal file
View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="jbr-17" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

6
.idea/kotlinc.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="KotlinJpsPluginSettings">
<option name="version" value="1.9.0" />
</component>
</project>

6
.idea/misc.xml Normal file
View file

@ -0,0 +1,6 @@
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

6
.idea/vcs.xml Normal file
View file

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

View file

@ -1 +1 @@
# M1-Projet
# M1-Projet

1
app/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

44
app/build.gradle.kts Normal file
View file

@ -0,0 +1,44 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}
android {
namespace = "com.example.palto"
compileSdk = 34
defaultConfig {
applicationId = "com.example.palto"
minSdk = 27
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"
)
}
}
kotlinOptions {
jvmTarget = "1.8"
}
buildToolsVersion = "33.0.1"
}
dependencies {
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.10.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}

21
app/proguard-rules.pro vendored Normal file
View file

@ -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

View file

@ -0,0 +1,24 @@
package com.example.palto
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.palto", appContext.packageName)
}
}

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Palto"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View file

@ -0,0 +1,62 @@
package com.example.palto
import android.app.PendingIntent
import android.content.Intent
import android.content.IntentFilter
import android.nfc.NfcAdapter
import android.nfc.Tag
import android.nfc.tech.IsoDep
import android.nfc.tech.NdefFormatable
import android.nfc.tech.NfcA
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
private var nfcAdapter: NfcAdapter? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// get the NFC Adapter
this.nfcAdapter = NfcAdapter.getDefaultAdapter(this)
// check if NFC is supported
if (this.nfcAdapter == null) {
Log.e("NFC", "NFC is not supported")
return
}
// check if NFC is disabled
if (!(this.nfcAdapter!!.isEnabled)) {
Log.w("NFC", "NFC is not enabled")
}
}
override fun onResume() {
super.onResume()
nfcAdapter!!.enableReaderMode(
this,
this::processTag,
NfcAdapter.FLAG_READER_NFC_A or NfcAdapter.FLAG_READER_SKIP_NDEF_CHECK,
null
)
}
override fun onPause() {
super.onPause()
// disable the NFC discovery
this.nfcAdapter!!.disableReaderMode(this)
}
@OptIn(ExperimentalStdlibApi::class)
fun processTag(tag: Tag) {
Log.d("NFC", "Tag ID : ${tag.id.toHexString()}")
}
}

View file

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

View file

@ -0,0 +1,490 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="600dp"
android:height="600dp"
android:viewportWidth="15026"
android:viewportHeight="15026">
<group>
<clip-path
android:pathData="M0,0h15026v15026h-15026z"/>
<group>
<clip-path
android:pathData="M5954,3384L5954,3384C6309,3029 6885,3029 7240,3384L11753,7896C11923,8066 12019,8298 12019,8539 12019,8780 11923,9011 11753,9181L9182,11752C8827,12107 8251,12107 7896,11752L3383,7240C3028,6885 3028,6310 3383,5955L5954,3384Z"/>
<path
android:pathData="M12020,3091L12020,3298 3116,3298 3116,3091 12020,3091Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00345F"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,3232L12020,3440 3116,3440 3116,3232 12020,3232Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003460"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,3374L12020,3581 3116,3581 3116,3374 12020,3374Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003561"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,3515L12020,3722 3116,3722 3116,3515 12020,3515Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003562"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,3656L12020,3864 3116,3864 3116,3656 12020,3656Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003662"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,3797L12020,4005 3116,4005 3116,3797 12020,3797Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003663"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,3939L12020,4146 3116,4146 3116,3939 12020,3939Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003764"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4080L12020,4287 3116,4287 3116,4080 12020,4080Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003765"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4221L12020,4429 3116,4429 3116,4221 12020,4221Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003866"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4363L12020,4570 3116,4570 3116,4363 12020,4363Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003867"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4504L12020,4711 3116,4711 3116,4504 12020,4504Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003968"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4645L12020,4853 3116,4853 3116,4645 12020,4645Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003969"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4786L12020,4994 3116,4994 3116,4786 12020,4786Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003A69"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,4928L12020,5135 3116,5135 3116,4928 12020,4928Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003A6A"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5069L12020,5276 3116,5276 3116,5069 12020,5069Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003B6B"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5210L12020,5418 3116,5418 3116,5210 12020,5210Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003B6C"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5352L12020,5559 3116,5559 3116,5352 12020,5352Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003C6D"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5493L12020,5700 3116,5700 3116,5493 12020,5493Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003C6E"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5634L12020,5842 3116,5842 3116,5634 12020,5634Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003D6F"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5775L12020,5983 3116,5983 3116,5775 12020,5775Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003D70"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,5917L12020,6124 3116,6124 3116,5917 12020,5917Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003E70"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6058L12020,6265 3116,6265 3116,6058 12020,6058Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003E71"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6199L12020,6407 3116,6407 3116,6199 12020,6199Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003E72"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6341L12020,6548 3116,6548 3116,6341 12020,6341Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003F73"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6482L12020,6689 3116,6689 3116,6482 12020,6482Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#003F74"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6623L12020,6831 3116,6831 3116,6623 12020,6623Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004075"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6764L12020,6972 3116,6972 3116,6764 12020,6764Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004076"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,6906L12020,7113 3116,7113 3116,6906 12020,6906Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004177"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7047L12020,7254 3116,7254 3116,7047 12020,7047Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004177"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7188L12020,7396 3116,7396 3116,7188 12020,7188Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004278"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7330L12020,7537 3116,7537 3116,7330 12020,7330Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004279"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7471L12020,7678 3116,7678 3116,7471 12020,7471Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00437A"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7612L12020,7820 3116,7820 3116,7612 12020,7612Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00437B"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7753L12020,7961 3116,7961 3116,7753 12020,7753Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00447C"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,7895L12020,8102 3116,8102 3116,7895 12020,7895Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00447D"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8036L12020,8243 3116,8243 3116,8036 12020,8036Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00457E"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8177L12020,8385 3116,8385 3116,8177 12020,8177Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00457E"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8319L12020,8526 3116,8526 3116,8319 12020,8319Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#00467F"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8460L12020,8667 3116,8667 3116,8460 12020,8460Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004680"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8601L12020,8809 3116,8809 3116,8601 12020,8601Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004781"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8743L12020,8950 3116,8950 3116,8742 12020,8743Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004782"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,8884L12020,9091 3116,9091 3116,8884 12020,8884Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004883"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9025L12020,9233 3116,9232 3116,9025 12020,9025Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004884"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9166L12020,9374 3116,9374 3116,9166 12020,9166Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004885"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9308L12020,9515 3116,9515 3116,9308 12020,9308Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004985"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9449L12020,9656 3116,9656 3116,9449 12020,9449Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004986"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9590L12020,9798 3116,9798 3116,9590 12020,9590Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004A87"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9732L12020,9939 3116,9939 3116,9731 12020,9732Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004A88"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,9873L12020,10080 3116,10080 3116,9873 12020,9873Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004B89"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10014L12020,10222 3116,10221 3116,10014 12020,10014Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004B8A"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10155L12020,10363 3116,10363 3116,10155 12020,10155Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004C8B"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10297L12020,10504 3116,10504 3116,10297 12020,10297Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004C8C"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10438L12020,10645 3116,10645 3116,10438 12020,10438Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004D8C"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10579L12020,10787 3116,10787 3116,10579 12020,10579Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004D8D"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10721L12020,10928 3116,10928 3116,10720 12020,10721Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004E8E"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,10862L12020,11069 3116,11069 3116,10862 12020,10862Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004E8F"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11003L12020,11211 3116,11211 3116,11003 12020,11003Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004F90"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11144L12020,11352 3116,11352 3116,11144 12020,11144Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#004F91"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11286L12020,11493 3116,11493 3116,11286 12020,11286Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#005092"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11427L12020,11634 3116,11634 3116,11427 12020,11427Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#005093"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11568L12020,11776 3116,11776 3116,11568 12020,11568Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#005193"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11710L12020,11917 3116,11917 3116,11710 12020,11710Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#005194"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M12020,11851L12020,12058 3116,12058 3116,11851 12020,11851Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#005295"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
</group>
<path
android:pathData="M5954,3384L5954,3384C6309,3029 6885,3029 7240,3384L11753,7896C11923,8066 12019,8298 12019,8539 12019,8780 11923,9011 11753,9181L9182,11752C8827,12107 8251,12107 7896,11752L3383,7240C3028,6885 3028,6310 3383,5955L5954,3384Z"
android:strokeLineJoin="round"
android:strokeWidth="70"
android:fillColor="#00000000"
android:strokeColor="#FF9900"
android:fillType="evenOdd"/>
<path
android:pathData="M6213,7033L7118,6376 7378,6636C7430,6688 7463,6742 7479,6798 7495,6853 7492,6907 7472,6959 7452,7010 7414,7057 7357,7097 7302,7137 7242,7162 7178,7171 7115,7180 7052,7174 6991,7152 6929,7130 6872,7093 6819,7040L6693,6914 6346,7166 6213,7033 6213,7033ZM6833,6812L6959,6939C6997,6976 7040,6997 7087,7001 7135,7005 7180,6992 7222,6962 7265,6931 7288,6895 7290,6854 7292,6814 7275,6775 7237,6738L7111,6611 6833,6812 6833,6812ZM6809,7630L7911,7170 8083,7342 7376,8197 7244,8064 7420,7862 7213,7654 6951,7771 6809,7630 6809,7630ZM7522,7745L7717,7522C7750,7485 7780,7451 7806,7421 7833,7391 7852,7370 7865,7357 7848,7366 7821,7379 7783,7398 7745,7416 7703,7436 7655,7458L7362,7586 7522,7745ZM7524,8345L8429,7688 8562,7822 7802,8375 8132,8705 7989,8810 7524,8345 7524,8345ZM8309,9130L9070,8578 8865,8373 9009,8269 9553,8812 9408,8916 9204,8712 8443,9265 8309,9130 8309,9130ZM9005,9848C8955,9798 8923,9747 8908,9694 8893,9642 8896,9591 8916,9542 8937,9494 8974,9449 9028,9409L9422,9123C9477,9083 9534,9059 9594,9050 9654,9041 9713,9046 9772,9067 9830,9088 9884,9123 9934,9173 9985,9224 10017,9275 10032,9328 10047,9380 10044,9431 10024,9480 10003,9528 9966,9572 9912,9611L9517,9898C9463,9938 9406,9963 9345,9972 9285,9981 9226,9975 9168,9954 9110,9934 9055,9898 9005,9848L9005,9848ZM9142,9750C9177,9785 9216,9804 9258,9807 9300,9809 9341,9795 9383,9765L9777,9478C9820,9447 9844,9414 9847,9379 9851,9344 9835,9309 9798,9272 9762,9236 9723,9217 9682,9214 9641,9212 9599,9226 9557,9257L9162,9543C9120,9574 9097,9607 9093,9642 9089,9677 9105,9713 9142,9750L9142,9750Z"
android:strokeLineJoin="round"
android:strokeWidth="28.222"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
<path
android:pathData="M4717,6767L4717,6767C4717,6227 4931,5708 5313,5326 5696,4944 6214,4729 6754,4729"
android:strokeLineJoin="round"
android:strokeWidth="209"
android:fillColor="#00000000"
android:strokeColor="#FF9900"
android:fillType="evenOdd"/>
<path
android:pathData="M5251,6767L5251,6767C5251,6368 5410,5986 5692,5704 5973,5422 6356,5264 6754,5264"
android:strokeLineJoin="round"
android:strokeWidth="209"
android:fillColor="#00000000"
android:strokeColor="#FF9900"
android:fillType="evenOdd"/>
<path
android:pathData="M5771,6767L5771,6767C5771,6506 5875,6256 6059,6072 6243,5887 6494,5784 6754,5784"
android:strokeLineJoin="round"
android:strokeWidth="209"
android:fillColor="#00000000"
android:strokeColor="#FF9900"
android:fillType="evenOdd"/>
</group>
</vector>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/test_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/icon_foreground" />
</adaptive-icon>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/icon_foreground" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -0,0 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.Palto" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>

View file

@ -0,0 +1,3 @@
<resources>
<string name="app_name">Palto</string>
</resources>

View file

@ -0,0 +1,9 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.Palto" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
<style name="Theme.Palto" parent="Base.Theme.Palto" />
</resources>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup
for details.
Note: This file is ignored for devices older that API 31
See https://developer.android.com/about/versions/12/backup-restore
-->
<full-backup-content>
<!--
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
-->
</full-backup-content>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>

View file

@ -0,0 +1,17 @@
package com.example.palto
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}

5
build.gradle.kts Normal file
View file

@ -0,0 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.1.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
}

23
gradle.properties Normal file
View file

@ -0,0 +1,23 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View file

@ -0,0 +1,6 @@
#Sat Oct 21 14:56:04 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

185
gradlew vendored Normal file
View file

@ -0,0 +1,185 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
exec "$JAVACMD" "$@"

89
gradlew.bat vendored Normal file
View file

@ -0,0 +1,89 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

18
settings.gradle.kts Normal file
View file

@ -0,0 +1,18 @@
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "Palto"
include(":app")