initial commit
This commit is contained in:
25
app/src/main/res/drawable/logupload.xml
Normal file
25
app/src/main/res/drawable/logupload.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
android:viewportWidth="100"
|
||||
android:viewportHeight="100">
|
||||
<path
|
||||
android:pathData="M50,50m-45,0a45,45 0,1 1,90 0a45,45 0,1 1,-90 0"
|
||||
android:strokeWidth="5"
|
||||
android:fillColor="#f0f0f0"
|
||||
android:strokeColor="#bbb"/>
|
||||
<path
|
||||
android:pathData="M30,30h40v50h-40z"
|
||||
android:strokeWidth="2"
|
||||
android:fillColor="#ffffff"
|
||||
android:strokeColor="#333"/>
|
||||
<path
|
||||
android:pathData="M30,30l15,0l0,15l-15,0z"
|
||||
android:fillColor="#bbb"/>
|
||||
<path
|
||||
android:pathData="M50,40l-10,10l5,0l0,10l10,0l0,-10l5,0z"
|
||||
android:fillColor="#4a90e2"/>
|
||||
<path
|
||||
android:pathData="M45,60h10v15h-10z"
|
||||
android:fillColor="#4a90e2"/>
|
||||
</vector>
|
||||
31
app/src/main/res/layout/activity_main.xml
Normal file
31
app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/resultView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Looking for dumpstate..."
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/uploadButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Upload Dumpstate"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintTop_toBottomOf="@id/resultView"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginTop="16dp"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
13
app/src/main/res/values/colors.xml
Normal file
13
app/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#6200EE</color>
|
||||
<color name="colorPrimaryVariant">#3700B3</color>
|
||||
<color name="colorSecondary">#03DAC6</color>
|
||||
<color name="colorSecondaryVariant">#018786</color>
|
||||
<color name="colorOnPrimary">#FFFFFF</color>
|
||||
<color name="colorOnSecondary">#000000</color>
|
||||
<color name="colorError">#B00020</color>
|
||||
<color name="colorOnError">#FFFFFF</color>
|
||||
<color name="colorSurface">#FFFFFF</color>
|
||||
<color name="colorBackground">#FFFFFF</color>
|
||||
</resources>
|
||||
14
app/src/main/res/values/styles.xml
Normal file
14
app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
<resources>
|
||||
<!-- Base application theme -->
|
||||
<style name="Theme.FileUploader" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary branding color -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryVariant">@color/colorPrimaryVariant</item>
|
||||
<item name="colorOnPrimary">@android:color/white</item>
|
||||
<!-- Secondary branding color -->
|
||||
<item name="colorSecondary">@color/colorSecondary</item>
|
||||
<item name="colorSecondaryVariant">@color/colorSecondaryVariant</item>
|
||||
<item name="colorOnSecondary">@android:color/black</item>
|
||||
</style>
|
||||
</resources>
|
||||
12
app/src/main/res/xml/network_security_config.xml
Normal file
12
app/src/main/res/xml/network_security_config.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">172.16.30.69</domain> <!-- Replace with your server -->
|
||||
</domain-config>
|
||||
<!-- OR: To allow for all domains (for testing purposes only) -->
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<domain includeSubdomains="true">localhost</domain>
|
||||
<domain includeSubdomains="true">192.168.1.1</domain>
|
||||
<domain includeSubdomains="true">*.*</domain>
|
||||
</domain-config>
|
||||
</network-security-config>
|
||||
Reference in New Issue
Block a user