mirror of https://git.sr.ht/~oppen/ariane
0.0.1 alpha
This commit is contained in:
parent
0ee7300da2
commit
6f0e208009
|
@ -11,7 +11,7 @@ android {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "0.0.1 Alpha"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"artifactType": {
|
||||||
|
"type": "APK",
|
||||||
|
"kind": "Directory"
|
||||||
|
},
|
||||||
|
"applicationId": "oppen.tva",
|
||||||
|
"variantName": "release",
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"type": "SINGLE",
|
||||||
|
"filters": [],
|
||||||
|
"properties": [],
|
||||||
|
"versionCode": 1,
|
||||||
|
"versionName": "0.0.1 Alpha",
|
||||||
|
"enabled": true,
|
||||||
|
"outputFile": "app-release.apk"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package oppen
|
||||||
|
|
||||||
|
import android.app.AlertDialog
|
||||||
|
import android.content.Context
|
||||||
|
|
||||||
|
fun String.alert(context: Context){
|
||||||
|
AlertDialog.Builder(context)
|
||||||
|
.setMessage(this)
|
||||||
|
.setPositiveButton("OK"){_, _ ->}
|
||||||
|
.show()
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ import androidx.activity.viewModels
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.databinding.DataBindingUtil
|
import androidx.databinding.DataBindingUtil
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
|
import oppen.alert
|
||||||
import oppen.tva.R
|
import oppen.tva.R
|
||||||
import oppen.tva.databinding.ActivityTvaBinding
|
import oppen.tva.databinding.ActivityTvaBinding
|
||||||
import oppen.tva.io.TvaState
|
import oppen.tva.io.TvaState
|
||||||
|
@ -51,6 +52,10 @@ class TvaActivity : AppCompatActivity() {
|
||||||
else -> return@setOnEditorActionListener false
|
else -> return@setOnEditorActionListener false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
binding.more.setOnClickListener { "Not implemented yet".alert(this) }
|
||||||
|
binding.home.setOnClickListener { "Not implemented yet".alert(this) }
|
||||||
|
binding.tabs.setOnClickListener { "Not implemented yet".alert(this) }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun externalProtocol(state: TvaState.NotGeminiRequest) {
|
private fun externalProtocol(state: TvaState.NotGeminiRequest) {
|
||||||
|
|
|
@ -27,6 +27,7 @@ class GemtextAdapter(val onLink: (link: URI) -> Unit): RecyclerView.Adapter<Gemt
|
||||||
class H3(itemView: View): ViewHolder(itemView)
|
class H3(itemView: View): ViewHolder(itemView)
|
||||||
class ListItem(itemView: View): ViewHolder(itemView)
|
class ListItem(itemView: View): ViewHolder(itemView)
|
||||||
class Link(itemView: View): ViewHolder(itemView)
|
class Link(itemView: View): ViewHolder(itemView)
|
||||||
|
class Code(itemView: View): ViewHolder(itemView)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun render(lines: List<String>){
|
fun render(lines: List<String>){
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#6200EE</color>
|
<color name="colorPrimary">#FFFFFF</color>
|
||||||
<color name="colorPrimaryDark">#3700B3</color>
|
<color name="colorPrimaryDark">#B8B8B8</color>
|
||||||
<color name="colorAccent">#03DAC5</color>
|
<color name="colorAccent">#03DAC5</color>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in New Issue