aboutsummaryrefslogtreecommitdiff
path: root/androidApp
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2021-12-03 21:18:33 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2021-12-03 21:18:33 -0600
commitc7039b6b0f6ab0f99fefecac07196ada6da2221a (patch)
treeab598ce96300b71607f9501bbb52b5ac6ea4528c /androidApp
downloadetbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.tar.gz
etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.tar.bz2
etbsa-trackermap-mobile-c7039b6b0f6ab0f99fefecac07196ada6da2221a.zip
Inits the project
Diffstat (limited to 'androidApp')
-rw-r--r--androidApp/build.gradle.kts27
-rw-r--r--androidApp/src/main/AndroidManifest.xml18
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt20
-rw-r--r--androidApp/src/main/res/layout/activity_main.xml19
-rw-r--r--androidApp/src/main/res/values/colors.xml6
-rw-r--r--androidApp/src/main/res/values/styles.xml9
6 files changed, 99 insertions, 0 deletions
diff --git a/androidApp/build.gradle.kts b/androidApp/build.gradle.kts
new file mode 100644
index 0000000..401d2bf
--- /dev/null
+++ b/androidApp/build.gradle.kts
@@ -0,0 +1,27 @@
+plugins {
+ id("com.android.application")
+ kotlin("android")
+}
+
+android {
+ compileSdk = 31
+ defaultConfig {
+ applicationId = "mx.trackermap.TrackerMap.android"
+ minSdk = 21
+ targetSdk = 31
+ versionCode = 1
+ versionName = "1.0"
+ }
+ buildTypes {
+ getByName("release") {
+ isMinifyEnabled = false
+ }
+ }
+}
+
+dependencies {
+ implementation(project(":shared"))
+ implementation("com.google.android.material:material:1.4.0")
+ implementation("androidx.appcompat:appcompat:1.3.1")
+ implementation("androidx.constraintlayout:constraintlayout:2.1.0")
+} \ No newline at end of file
diff --git a/androidApp/src/main/AndroidManifest.xml b/androidApp/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..8131d77
--- /dev/null
+++ b/androidApp/src/main/AndroidManifest.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="mx.trackermap.TrackerMap.android">
+
+ <application
+ android:allowBackup="false"
+ android:supportsRtl="true"
+ android:theme="@style/AppTheme">
+ <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> \ No newline at end of file
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt
new file mode 100644
index 0000000..e7d1b5e
--- /dev/null
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/MainActivity.kt
@@ -0,0 +1,20 @@
+package mx.trackermap.TrackerMap.android
+
+import androidx.appcompat.app.AppCompatActivity
+import android.os.Bundle
+import mx.trackermap.TrackerMap.Greeting
+import android.widget.TextView
+
+fun greet(): String {
+ return Greeting().greeting()
+}
+
+class MainActivity : AppCompatActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ setContentView(R.layout.activity_main)
+
+ val tv: TextView = findViewById(R.id.text_view)
+ tv.text = greet()
+ }
+}
diff --git a/androidApp/src/main/res/layout/activity_main.xml b/androidApp/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..73626a6
--- /dev/null
+++ b/androidApp/src/main/res/layout/activity_main.xml
@@ -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:id="@+id/main_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/text_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toRightOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ tools:text="Hello World!" />
+
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/androidApp/src/main/res/values/colors.xml b/androidApp/src/main/res/values/colors.xml
new file mode 100644
index 0000000..4faecfa
--- /dev/null
+++ b/androidApp/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="colorPrimary">#6200EE</color>
+ <color name="colorPrimaryDark">#3700B3</color>
+ <color name="colorAccent">#03DAC5</color>
+</resources> \ No newline at end of file
diff --git a/androidApp/src/main/res/values/styles.xml b/androidApp/src/main/res/values/styles.xml
new file mode 100644
index 0000000..1971a0a
--- /dev/null
+++ b/androidApp/src/main/res/values/styles.xml
@@ -0,0 +1,9 @@
+<resources>
+
+ <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+</resources> \ No newline at end of file