Skip to content

Commit

Permalink
feat: link to GitHub in About
Browse files Browse the repository at this point in the history
  • Loading branch information
ianatha committed Nov 11, 2023
1 parent cfe2522 commit e253540
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 8 deletions.
8 changes: 8 additions & 0 deletions app/src/main/java/io/atha/bababasic/ActivityAbout.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package io.atha.bababasic

import android.content.Intent
import android.content.pm.PackageInfo
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import io.atha.bababasic.databinding.ActivityAboutBinding
Expand All @@ -19,5 +21,11 @@ class ActivityAbout : AppCompatActivity() {
binding.okButton.setOnClickListener {
finish()
}

binding.githubLink.setOnClickListener {
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse("https://github.com/ianatha/bababasic")
startActivity(intent)
}
}
}
11 changes: 11 additions & 0 deletions app/src/main/res/drawable/github.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal"
android:autoMirrored="true">
<path
android:fillColor="@android:color/white"
android:pathData="M10.9,2.1c-4.6,0.5-8.3,4.2-8.8,8.7c-0.5,4.7,2.2,8.9,6.3,10.5C8.7,21.4,9,21.2,9,20.8v-1.6c0,0-0.4,0.1-0.9,0.1 c-1.4,0-2-1.2-2.1-1.9c-0.1-0.4-0.3-0.7-0.6-1C5.1,16.3,5,16.3,5,16.2C5,16,5.3,16,5.4,16c0.6,0,1.1,0.7,1.3,1c0.5,0.8,1.1,1,1.4,1 c0.4,0,0.7-0.1,0.9-0.2c0.1-0.7,0.4-1.4,1-1.8c-2.3-0.5-4-1.8-4-4c0-1.1,0.5-2.2,1.2-3C7.1,8.8,7,8.3,7,7.6c0-0.4,0-0.9,0.2-1.3 C7.2,6.1,7.4,6,7.5,6c0,0,0.1,0,0.1,0C8.1,6.1,9.1,6.4,10,7.3C10.6,7.1,11.3,7,12,7s1.4,0.1,2,0.3c0.9-0.9,2-1.2,2.5-1.3 c0,0,0.1,0,0.1,0c0.2,0,0.3,0.1,0.4,0.3C17,6.7,17,7.2,17,7.6c0,0.8-0.1,1.2-0.2,1.4c0.7,0.8,1.2,1.8,1.2,3c0,2.2-1.7,3.5-4,4 c0.6,0.5,1,1.4,1,2.3v2.6c0,0.3,0.3,0.6,0.7,0.5c3.7-1.5,6.3-5.1,6.3-9.3C22,6.1,16.9,1.4,10.9,2.1z"/>
</vector>
11 changes: 11 additions & 0 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@
android:text="@string/about_contents"
android:textAlignment="center" />

<Space
android:layout_width="match_parent"
android:layout_height="24dp" />

<ImageButton
android:id="@+id/githubLink"
android:layout_width="48dp"
android:layout_height="48dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/github" />

<Space
android:layout_width="match_parent"
android:layout_height="24dp" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="go_back_to_editor">Go back to editor</string>
<string name="stop_execution">Stop execution</string>
<string name="crash">Crash</string>
<string name="about_contents">BabaBASIC ist ein Open-Source-Projekt von Ian Atha. Ich habe mit der Entwicklung dieser App begonnen, weil mein Vater, der in den 80er-Jahren Programmierer war, mich gebeten hat, ihm eine Android-App zu besorgen, mit der er anderen das Programmieren mit BASIC vorstellen kann. Also habe ich die ganze Nacht über gearbeitet und diese App entwickelt. Für alles, was Sie benötigen, senden Sie bitte eine E-Mail an [email protected].</string>
<string name="about_contents">BabaBASIC ist ein Open-Source-Projekt von Ian Atha.\n\nIch habe mit der Entwicklung dieser App begonnen, weil mein Vater, der in den 80er-Jahren Programmierer war, mich gebeten hat, ihm eine Android-App zu besorgen, mit der er anderen das Programmieren mit BASIC vorstellen kann. Also habe ich die ganze Nacht über gearbeitet und diese App entwickelt.\n\nFür alles, was Sie benötigen, senden Sie bitte eine E-Mail an [email protected].</string>
<string name="symbol_keyboard">Symbol Keyobard</string>
<string name="editor">Editor</string>
<string name="close">Schließen</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<string name="copy_text">Αντιγραφή</string>
<string name="text_selection_more">Περισσότερα…</string>
<string name="about">Περί</string>
<string name="about_contents">Το BabaBASIC είναι λογισμικό ανοιχτού κώδικα που δημιουργήθηκε από τον Θεοχάρη Αθανασάκη. Ξεκίνησα να το φτιάχνω επειδή ο 65-χρονος πατέρας μου, ο οποίος ήταν προγραμματιστής στη δεκαετία του 80, μου ζήτησε να του βρω μια BASIC για Android για να δείχνει τι είναι ο προγραμματισμός στους φίλους του. Για οτιδήποτε χρειαστείτε, στείλτε email στο [email protected].</string>
<string name="about_contents">Το BabaBASIC είναι λογισμικό ανοιχτού κώδικα που δημιουργήθηκε από τον Θεοχάρη Αθανασάκη.\n\nΞεκίνησα να το φτιάχνω επειδή ο 65-χρονος πατέρας μου, ο οποίος ήταν προγραμματιστής στη δεκαετία του 80, μου ζήτησε να του βρω μια BASIC για Android για να δείχνει τι είναι ο προγραμματισμός στους φίλους του.\n\nΓια οτιδήποτε χρειαστείτε, στείλτε email στο [email protected].</string>
<string name="save_file">Save File</string>
<string name="run">Εκτέλεση</string>
<string name="open_file">Open File</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="go_back_to_editor">Go back to editor</string>
<string name="stop_execution">Stop execution</string>
<string name="crash">Crash</string>
<string name="about_contents">BabaBASIC es un proyecto de código abierto realizado por Ian Atha. Comencé a hacer esta aplicación porque mi padre, que era programador en los años 80, me pidió que le buscara una aplicación de Android para mostrar la programación a otros usando BASIC, así que pasé toda la noche e hice esto. Para cualquier cosa que pueda necesitar, envíe un correo electrónico a [email protected].</string>
<string name="about_contents">BabaBASIC es un proyecto de código abierto realizado por Ian Atha.\n\nComencé a hacer esta aplicación porque mi padre, que era programador en los años 80, me pidió que le buscara una aplicación de Android para mostrar la programación a otros usando BASIC, así que pasé toda la noche e hice esto.\n\nPara cualquier cosa que pueda necesitar, envíe un correo electrónico a [email protected].</string>
<string name="symbol_keyboard">Symbol Keyobard</string>
<string name="editor">Editor</string>
<string name="close">Close</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<string name="go_back_to_editor">Go back to editor</string>
<string name="stop_execution">Stop execution</string>
<string name="crash">Crash</string>
<string name="about_contents">BabaBASIC est un projet open source réalisé par Ian Atha. J\'ai commencé à créer cette application parce que mon père, qui était programmeur dans les années 80, m\'a demandé de lui trouver une application Android pour présenter la programmation à d\'autres utilisant BASIC, alors j\'ai passé une nuit blanche et j\'ai créé ceci. Pour tout ce dont vous pourriez avoir besoin, veuillez envoyer un e-mail à [email protected].</string>
<string name="about_contents">BabaBASIC est un projet open source réalisé par Ian Atha.\n\nJ\'ai commencé à créer cette application parce que mon père, qui était programmeur dans les années 80, m\'a demandé de lui trouver une application Android pour présenter la programmation à d\'autres utilisant BASIC, alors j\'ai passé une nuit blanche et j\'ai créé ceci.\n\nPour tout ce dont vous pourriez avoir besoin, veuillez envoyer un e-mail à [email protected].</string>
<string name="symbol_keyboard">Symbol Keyobard</string>
<string name="editor">Editor</string>
<string name="close">Close</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="go_back_to_editor">Go back to editor</string>
<string name="stop_execution">Stop execution</string>
<string name="crash">Crash</string>
<string name="about_contents">BabaBASIC è un progetto open source realizzato da Ian Atha. Ho iniziato a creare questa app perché mio padre, che era un programmatore negli anni \'80, mi ha chiesto di trovargli un\'app Android per mostrare la programmazione ad altri utilizzando BASIC, quindi ho passato la notte e ho realizzato questa. Per qualsiasi cosa tu possa aver bisogno, invia un\'e-mail a [email protected].</string>
<string name="about_contents">BabaBASIC è un progetto open source realizzato da Ian Atha.\n\nHo iniziato a creare questa app perché mio padre, che era un programmatore negli anni \'80, mi ha chiesto di trovargli un\'app Android per mostrare la programmazione ad altri utilizzando BASIC, quindi ho passato la notte e ho realizzato questa.\n\nPer qualsiasi cosa tu possa aver bisogno, invia un\'e-mail a [email protected].</string>
<string name="symbol_keyboard">Symbol Keyobard</string>
<string name="editor">Editor</string>
<string name="close">Close</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="go_back_to_editor">Go back to editor</string>
<string name="stop_execution">実行を停止する</string>
<string name="crash">クラッシュ</string>
<string name="about_contents">BabaBASIC は、Ian Atha によって作成されたオープンソース プロジェクトです。 私がこのアプリを作り始めた理由は、80 年代にプログラマーだった父が、BASIC を使ったプログラミングを他の人に紹介するための Android アプリを探してくれと頼んだためで、徹夜でこれを作りました。 必要な場合は[email protected] まで電子メールでお問い合わせください。</string>
<string name="about_contents">BabaBASIC は、Ian Atha によって作成されたオープンソース プロジェクトです。\n\n私がこのアプリを作り始めた理由は、80 年代にプログラマーだった父が、BASIC を使ったプログラミングを他の人に紹介するための Android アプリを探してくれと頼んだためで、徹夜でこれを作りました。\n\n必要な場合は[email protected] まで電子メールでお問い合わせください。</string>
<string name="symbol_keyboard">Symbol Keyobard</string>
<string name="editor">Editor</string>
<string name="close">Close</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<string name="go_back_to_editor">Go back to editor</string>
<string name="stop_execution">Stop execution</string>
<string name="crash">Crash</string>
<string name="about_contents">BabaBASIC é um projeto de código aberto feito por Ian Atha. Comecei a fazer este aplicativo porque meu pai, que era programador nos anos 80, me pediu para encontrar um aplicativo Android para mostrar a programação para outras pessoas usando BASIC, então passei a noite inteira e fiz isso. Para qualquer coisa que você possa precisar, envie um e-mail para [email protected].</string>
<string name="about_contents">BabaBASIC é um projeto de código aberto feito por Ian Atha.\n\nComecei a fazer este aplicativo porque meu pai, que era programador nos anos 80, me pediu para encontrar um aplicativo Android para mostrar a programação para outras pessoas usando BASIC, então passei a noite inteira e fiz isso.\n\nPara qualquer coisa que você possa precisar, envie um e-mail para [email protected].</string>
<string name="symbol_keyboard">Symbol Keyobard</string>
<string name="editor">Editor</string>
<string name="close">Close</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<string name="copy_text">Copy</string>
<string name="text_selection_more">More…</string>
<string name="about">About</string>
<string name="about_contents" tools:ignore="MissingTranslation">BabaBASIC is an open-source project made by Ian Atha. I started making this app because my father, who was a programmer in the 80s, asked me to find him an Android app to showcase programming to others using BASIC, so I pulled an all-nighter and made this. For anything you might need, please email [email protected].</string>
<string name="about_contents" tools:ignore="MissingTranslation">BabaBASIC is an open-source project made by Ian Atha.\n\nI started making this app because my father, who was a programmer in the 80s, asked me to find him an Android app to showcase programming to others using BASIC, so I pulled an all-nighter and made this.\n\nFor anything you might need, please email [email protected].</string>
<string name="save_file">Save File</string>
<string name="run">Run</string>
<string name="open_file">Open File</string>
Expand Down

0 comments on commit e253540

Please sign in to comment.