aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreuxane2024-09-18 23:41:13 +0200
committereuxane2024-09-18 23:41:13 +0200
commitf2c333acadeea6bc196869aaaf4bcee2f0a8e3ea (patch)
tree479e0d0f02d13e598bc0f670f33bc71e7c560a5f
parent286bd6c17baa050854f4354c502f89b2e16e59bd (diff)
downloadtincapp-f2c333acadeea6bc196869aaaf4bcee2f0a8e3ea.tar.gz
treewide: more private scopes
-rw-r--r--app/src/main/java/org/pacien/tincapp/context/AppPaths.kt2
-rw-r--r--app/src/main/java/org/pacien/tincapp/intent/Actions.kt2
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 {
68 fun crashFlagFile() = File(privateCacheDir(), CRASHFLAG_FILE) 68 fun crashFlagFile() = File(privateCacheDir(), CRASHFLAG_FILE)
69 69
70 fun existing(f: File) = f.apply { if (!exists()) throw FileNotFoundException(f.absolutePath) } 70 fun existing(f: File) = f.apply { if (!exists()) throw FileNotFoundException(f.absolutePath) }
71 fun withDir(f: File) = f.apply { if (!exists()) mkdirs() } 71 private fun withDir(f: File) = f.apply { if (!exists()) mkdirs() }
72 72
73 fun defaultEd25519PrivateKeyFile(netName: String) = File(confDir(netName), NET_DEFAULT_ED25519_PRIVATE_KEY_FILE) 73 fun defaultEd25519PrivateKeyFile(netName: String) = File(confDir(netName), NET_DEFAULT_ED25519_PRIVATE_KEY_FILE)
74 fun defaultRsaPrivateKeyFile(netName: String) = File(confDir(netName), NET_DEFAULT_RSA_PRIVATE_KEY_FILE) 74 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
25 * @author euxane 25 * @author euxane
26 */ 26 */
27object Actions { 27object Actions {
28 const val PREFIX = "${BuildConfig.APPLICATION_ID}.intent.action" 28 private const val PREFIX = "${BuildConfig.APPLICATION_ID}.intent.action"
29 const val ACTION_CONNECT = "$PREFIX.CONNECT" 29 const val ACTION_CONNECT = "$PREFIX.CONNECT"
30 const val ACTION_DISCONNECT = "$PREFIX.DISCONNECT" 30 const val ACTION_DISCONNECT = "$PREFIX.DISCONNECT"
31 const val ACTION_SYSTEM_CONNECT = "android.net.VpnService" 31 const val ACTION_SYSTEM_CONNECT = "android.net.VpnService"