Skip to content

Commit f720a79

Browse files
authored
Merge pull request #19 from efoxTeam/dev-ken
Dev ken
2 parents 1142360 + 9d1f199 commit f720a79

File tree

10 files changed

+412
-13
lines changed

10 files changed

+412
-13
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme: jekyll-theme-cayman

android/app/build.gradle

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ if (flutterVersionName == null) {
2424
apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

27+
28+
def keystoreProperties = new Properties()
29+
def keystorePropertiesFile = rootProject.file('key.properties')
30+
if (keystorePropertiesFile.exists()) {
31+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
32+
}
33+
2734
android {
2835
compileSdkVersion 27
2936

@@ -41,11 +48,27 @@ android {
4148
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
4249
}
4350

51+
signingConfigs {
52+
release {
53+
keyAlias keystoreProperties['keyAlias']
54+
keyPassword keystoreProperties['keyPassword']
55+
storeFile file(keystoreProperties['storeFile'])
56+
storePassword keystoreProperties['storePassword']
57+
}
58+
debug {
59+
keyAlias keystoreProperties['keyAlias']
60+
keyPassword keystoreProperties['keyPassword']
61+
storeFile file(keystoreProperties['storeFile'])
62+
storePassword keystoreProperties['storePassword']
63+
}
64+
}
65+
4466
buildTypes {
4567
release {
46-
// TODO: Add your own signing config for the release build.
47-
// Signing with the debug keys for now, so `flutter run --release` works.
48-
signingConfig signingConfigs.debug
68+
signingConfig signingConfigs.release
69+
minifyEnabled true
70+
useProguard false
71+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
4972
}
5073
}
5174
}

android/app/key.jks

2.17 KB
Binary file not shown.

android/app/proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#Flutter Wrapper
2+
-keep class io.flutter.app.** { *; }
3+
-keep class io.flutter.plugin.** { *; }
4+
-keep class io.flutter.util.** { *; }
5+
-keep class io.flutter.view.** { *; }
6+
-keep class io.flutter.** { *; }
7+
-keep class io.flutter.plugins.** { *; }

android/app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="app_name">Efox Flutter</string>
3+
<string name="app_name">flutter ui</string>
44
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
55
<!-- Show a splash screen on the activity. Automatically removed when
66
Flutter draws its first frame -->

android/key.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
storePassword=666666
2+
keyPassword=666666
3+
keyAlias=key
4+
storeFile=key.jks

lib/components/markdownComp.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_markdown/flutter_markdown.dart' as md;
3+
import 'package:efox_flutter/utils/syntaxHighlighter.dart'
4+
show DartSyntaxHighlighter;
35

46
class Index extends StatelessWidget {
57
final String data;
68
Index(this.data);
79

810
@override
9-
Widget build(BuildContext build ) {
10-
return md.MarkdownBody(data: this.data);
11+
Widget build(BuildContext build) {
12+
return md.MarkdownBody(
13+
data: this.data, syntaxHighlighter: DartSyntaxHighlighter());
1114
}
12-
}
15+
}

lib/page/component/index.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ class _IndexState extends State<Index> {
104104
),
105105
Text(
106106
'${_tmpWidgetList[index].title}',
107-
overflow: TextOverflow.ellipsis,
108-
style: TextStyle(
109-
fontSize: 16,
110-
),
107+
//overflow: TextOverflow.ellipsis,
108+
style:
109+
TextStyle(fontSize: 14, fontWeight: FontWeight.w300),
111110
)
112111
],
113112
),

lib/page/mine/index.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class _IndexState extends State<Index> {
4848
case 3:
4949
FluroRouter.router.navigateTo(
5050
context,
51-
'/webview?url=${Uri.encodeComponent(widget.model.config.state.env.githubWeb)}',
51+
'/webview?url=${Uri.encodeComponent(widget.model.config.state.env.githubWeb)}&title=${AppLocalizations.$t('common.compProgress')}',
5252
);
5353
break;
5454
}
@@ -71,7 +71,7 @@ class _IndexState extends State<Index> {
7171
flexibleSpace: FlexibleSpaceBar(
7272
collapseMode: CollapseMode.pin,
7373
title: Text(
74-
'Welcome to Flutter',
74+
'Flutter UI',
7575
),
7676
),
7777
),

0 commit comments

Comments
 (0)