diff --git a/app/src/main/java/net/tomatentum/tomatenmusic3/Config.java b/app/src/main/java/net/tomatentum/tomatenmusic3/Config.java new file mode 100644 index 0000000..c4f9178 --- /dev/null +++ b/app/src/main/java/net/tomatentum/tomatenmusic3/Config.java @@ -0,0 +1,20 @@ +package net.tomatentum.tomatenmusic3; + +import io.github.cdimascio.dotenv.Dotenv; + +public class Config { + + private Dotenv env; + + public Config(Dotenv env) { + this.env = env; + } + + public String token() { + return env.get("TOKEN"); + } + + public boolean isDevelopment() { + return env.get("ENVIRONMENT").equals("Development"); + } +}