signing
This commit is contained in:
parent
a470eebbe9
commit
8be0b36d23
5 changed files with 22 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -42,3 +42,5 @@ app.*.map.json
|
||||||
/android/app/debug
|
/android/app/debug
|
||||||
/android/app/profile
|
/android/app/profile
|
||||||
/android/app/release
|
/android/app/release
|
||||||
|
|
||||||
|
/key
|
|
@ -51,11 +51,26 @@ android {
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def keystoreProperties = new Properties()
|
||||||
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
||||||
|
if (keystorePropertiesFile.exists()) {
|
||||||
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
|
}
|
||||||
|
|
||||||
|
signingConfigs {
|
||||||
|
release {
|
||||||
|
keyAlias keystoreProperties['keyAlias']
|
||||||
|
keyPassword keystoreProperties['keyPassword']
|
||||||
|
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||||
|
storePassword keystoreProperties['storePassword']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
// TODO: Add your own signing config for the release build.
|
// TODO: Add your own signing config for the release build.
|
||||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:ju_learn/main.dart';
|
import 'package:ju_learn/main.dart';
|
||||||
|
|
||||||
|
// ignore: must_be_immutable
|
||||||
class QuizPageBrowse extends StatefulWidget {
|
class QuizPageBrowse extends StatefulWidget {
|
||||||
Vault v;
|
Vault v;
|
||||||
QuizPageBrowse(this.v, {super.key});
|
QuizPageBrowse(this.v, {super.key});
|
||||||
|
@ -22,7 +23,7 @@ class _QuizPageBrowseState extends State<QuizPageBrowse> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text('Testing: ${v.name}'),
|
title: Text('Browsing: ${v.name}'),
|
||||||
),
|
),
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
|
|
@ -108,7 +108,7 @@ class MainPageState extends State<MainPage> {
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.book_online),
|
leading: const Icon(Icons.book_online),
|
||||||
title: const Text("Browse"),
|
title: const Text("Browse"),
|
||||||
subtitle: const Text("Browse to all Questions!"),
|
subtitle: const Text("Browse through all Questions!"),
|
||||||
trailing: const Icon(Icons.chevron_right),
|
trailing: const Icon(Icons.chevron_right),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:ju_learn/main.dart';
|
import 'package:ju_learn/main.dart';
|
||||||
|
|
||||||
|
// ignore: must_be_immutable
|
||||||
class QuizPageTest extends StatefulWidget {
|
class QuizPageTest extends StatefulWidget {
|
||||||
Vault v;
|
Vault v;
|
||||||
QuizPageTest(this.v, {super.key});
|
QuizPageTest(this.v, {super.key});
|
||||||
|
|
Loading…
Reference in a new issue