Skip to content

Commit

Permalink
Obfuscate env values
Browse files Browse the repository at this point in the history
Closes #18
  • Loading branch information
ThexXTURBOXx committed Jun 14, 2022
1 parent 21b5a44 commit f2800b4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ analyzer:
- "lib/generated/intl/messages_*.dart"
# Ignore generated plugin registrant
- "lib/generated_plugin_registrant.dart"
# Ignore ugly env classes
- "lib/env/**"

linter:
# The lint rules applied to this project can be customized in the
Expand Down
8 changes: 4 additions & 4 deletions lib/env/env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import 'package:envify/envify.dart';

part 'env.g.dart';

@Envify(path: '.env')
@Envify(path: '.env', obfuscate: true)
abstract class Env {
static const consumerKey = _Env.consumerKey;
static final String consumerKey = _Env.consumerKey;

static const consumerSecret = _Env.consumerSecret;
static final String consumerSecret = _Env.consumerSecret;

static const sentryDsn = _Env.sentryDsn;
static final String sentryDsn = _Env.sentryDsn;
}
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,18 @@ packages:
dependency: "direct main"
description:
path: envify
ref: main
resolved-ref: "5d739438ddedf1c4a5b5aaefbeaf8cd40a1b1f61"
url: "https://github.com/techouse/envify.git"
ref: dev
resolved-ref: c7f967e42c077fa30a8980ab583c5d784d5f2581
url: "https://github.com/ThexXTURBOXx/envify.git"
source: git
version: "2.0.2"
envify_generator:
dependency: "direct dev"
description:
path: envify_generator
ref: main
resolved-ref: "5d739438ddedf1c4a5b5aaefbeaf8cd40a1b1f61"
url: "https://github.com/techouse/envify.git"
ref: dev
resolved-ref: c7f967e42c077fa30a8980ab583c5d784d5f2581
url: "https://github.com/ThexXTURBOXx/envify.git"
source: git
version: "2.0.2"
equatable:
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ dev_dependencies:
build_runner: ^2.1.11
envify_generator:
git:
url: https://github.com/techouse/envify.git
ref: main
url: https://github.com/ThexXTURBOXx/envify.git
ref: dev
path: envify_generator
flutter_launcher_icons: ^0.9.1
flutter_lints: ^2.0.1
Expand All @@ -64,8 +64,8 @@ dependency_overrides:
url: https://github.com/ThexXTURBOXx/catcher.git
envify:
git:
url: https://github.com/techouse/envify.git
ref: main
url: https://github.com/ThexXTURBOXx/envify.git
ref: dev
path: envify
flutter_web_auth:
git:
Expand Down

0 comments on commit f2800b4

Please sign in to comment.