aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/pacien
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/pacien')
-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"