diff options
author | euxane | 2024-09-18 23:41:13 +0200 |
---|---|---|
committer | euxane | 2024-09-18 23:41:13 +0200 |
commit | f2c333acadeea6bc196869aaaf4bcee2f0a8e3ea (patch) | |
tree | 479e0d0f02d13e598bc0f670f33bc71e7c560a5f /app/src | |
parent | 286bd6c17baa050854f4354c502f89b2e16e59bd (diff) | |
download | tincapp-f2c333acadeea6bc196869aaaf4bcee2f0a8e3ea.tar.gz |
treewide: more private scopes
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/context/AppPaths.kt | 2 | ||||
-rw-r--r-- | 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 { | |||
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 | */ |
27 | object Actions { | 27 | object 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" |