mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
feat: add env vars to repo.
This commit is contained in:
parent
2aaed14a3a
commit
e55cd6a938
3
.env
Normal file
3
.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sentryDSN=${{ secrets.SENTRY_DSN }}
|
||||||
|
apiKey=${{ secrets.API_KEY }}
|
||||||
|
appId=${{ secrets.APP_ID }}
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -138,6 +138,5 @@ Firebase related
|
|||||||
.firebase
|
.firebase
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
.env
|
|
||||||
android/app/google-services.json
|
android/app/google-services.json
|
||||||
/lib/utils/env_class.g.dart
|
/lib/utils/env_class.g.dart
|
@ -9,6 +9,10 @@
|
|||||||
# packages, and plugins designed to encourage good coding practices.
|
# packages, and plugins designed to encourage good coding practices.
|
||||||
include: package:flutter_lints/flutter.yaml
|
include: package:flutter_lints/flutter.yaml
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- lib/utils/env_class.g.dart
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
# The lint rules applied to this project can be customized in the
|
# The lint rules applied to this project can be customized in the
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||||
|
@ -53,11 +53,11 @@ class DefaultFirebaseOptions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const FirebaseOptions android = FirebaseOptions(
|
static FirebaseOptions android = FirebaseOptions(
|
||||||
apiKey: Env.apiKey,
|
apiKey: Env.apiKey,
|
||||||
appId: Env.appId,
|
appId: Env.appId,
|
||||||
messagingSenderId: Env.messagingSenderId,
|
messagingSenderId: '1006104807752',
|
||||||
projectId: Env.projectId,
|
projectId: 'revanced-manager',
|
||||||
storageBucket: Env.storageBucket,
|
storageBucket: 'revanced-manager.appspot.com',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -5,20 +5,11 @@ part 'env_class.g.dart';
|
|||||||
@Envied()
|
@Envied()
|
||||||
abstract class Env {
|
abstract class Env {
|
||||||
@EnviedField(varName: 'sentryDSN')
|
@EnviedField(varName: 'sentryDSN')
|
||||||
static const sentryDSN = _Env.sentryDSN;
|
static String sentryDSN = _Env.sentryDSN;
|
||||||
|
|
||||||
@EnviedField(varName: 'apiKey')
|
@EnviedField(varName: 'apiKey')
|
||||||
static const apiKey = _Env.apiKey;
|
static String apiKey = _Env.apiKey;
|
||||||
|
|
||||||
@EnviedField(varName: 'appId')
|
@EnviedField(varName: 'appId')
|
||||||
static const appId = _Env.appId;
|
static String appId = _Env.appId;
|
||||||
|
|
||||||
@EnviedField(varName: 'messagingSenderI')
|
|
||||||
static const messagingSenderId = _Env.messagingSenderId;
|
|
||||||
|
|
||||||
@EnviedField(varName: 'projectId')
|
|
||||||
static const projectId = _Env.projectId;
|
|
||||||
|
|
||||||
@EnviedField(varName: 'storageBucket')
|
|
||||||
static const storageBucket = _Env.storageBucket;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user