From f2c333acadeea6bc196869aaaf4bcee2f0a8e3ea Mon Sep 17 00:00:00 2001 From: euxane Date: Wed, 18 Sep 2024 23:41:13 +0200 Subject: treewide: more private scopes --- app/src/main/java/org/pacien/tincapp/context/AppPaths.kt | 2 +- app/src/main/java/org/pacien/tincapp/intent/Actions.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/pacien/tincapp/context/AppPaths.kt b/app/src/main/java/org/pacien/tincapp/context/AppPaths.kt index f94f1a4..1d0879a 100644 --- a/app/src/main/java/org/pacien/tincapp/context/AppPaths.kt +++ b/app/src/main/java/org/pacien/tincapp/context/AppPaths.kt @@ -68,7 +68,7 @@ object AppPaths { fun crashFlagFile() = File(privateCacheDir(), CRASHFLAG_FILE) fun existing(f: File) = f.apply { if (!exists()) throw FileNotFoundException(f.absolutePath) } - fun withDir(f: File) = f.apply { if (!exists()) mkdirs() } + private fun withDir(f: File) = f.apply { if (!exists()) mkdirs() } fun defaultEd25519PrivateKeyFile(netName: String) = File(confDir(netName), NET_DEFAULT_ED25519_PRIVATE_KEY_FILE) fun defaultRsaPrivateKeyFile(netName: String) = File(confDir(netName), NET_DEFAULT_RSA_PRIVATE_KEY_FILE) diff --git a/app/src/main/java/org/pacien/tincapp/intent/Actions.kt b/app/src/main/java/org/pacien/tincapp/intent/Actions.kt index 48afa79..a222281 100644 --- a/app/src/main/java/org/pacien/tincapp/intent/Actions.kt +++ b/app/src/main/java/org/pacien/tincapp/intent/Actions.kt @@ -25,7 +25,7 @@ import org.pacien.tincapp.BuildConfig * @author euxane */ object Actions { - const val PREFIX = "${BuildConfig.APPLICATION_ID}.intent.action" + private const val PREFIX = "${BuildConfig.APPLICATION_ID}.intent.action" const val ACTION_CONNECT = "$PREFIX.CONNECT" const val ACTION_DISCONNECT = "$PREFIX.DISCONNECT" const val ACTION_SYSTEM_CONNECT = "android.net.VpnService" -- cgit v1.2.3