mirror of
https://github.com/kalarina-bit/Matewave.git
synced 2026-11-22 08:06:09 +00:00
Add app source for F-Droid release (v1.0.43)
Adds the full Android source tree with unit tests, fastlane store metadata and the Gradle wrapper. The archive shipped without gradle-wrapper.jar, so the official Gradle 9.7.1 wrapper jar is included to make ./gradlew work from a fresh clone. .gitignore now also excludes build output and keystores. README gains build instructions and an updated structure tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015g6ECVSKcBG8CJPrqC3G5o
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package cc.skysparkle.matewave.settings
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
|
||||
/** External links of the app, kept in one place. */
|
||||
object AppLinks {
|
||||
const val REPOSITORY = "https://git.skysparkle.cc/kalarina/Matewave"
|
||||
const val REPOSITORY_LABEL = "git.skysparkle.cc/kalarina/Matewave"
|
||||
const val PRIVACY_POLICY = "https://skysparkle.cc/privacy?lang=en"
|
||||
|
||||
/** Opens a link in the browser; does nothing if no app can open it. */
|
||||
fun open(context: Context, url: String) {
|
||||
runCatching {
|
||||
context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user