Skip to content

Commit

Permalink
完善收藏,复制剪切文件
Browse files Browse the repository at this point in the history
  • Loading branch information
lancerXXXX committed Mar 31, 2020
1 parent 2411a91 commit 1aba21d
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 158 deletions.
28 changes: 25 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}



android {
compileSdkVersion 28

Expand All @@ -40,13 +48,27 @@ android {
versionName flutterVersionName
}

// buildTypes {
// release {
// // TODO: Add your own signing config for the release build.
// // Signing with the debug keys for now, so `flutter run --release` works.
// signingConfig signingConfigs.debug
// }
// }
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}

}

flutter {
Expand Down
4 changes: 4 additions & 0 deletions android/key.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
storePassword=1593575
keyPassword=1593575
keyAlias=key
storeFile=D:/KeyTools/key.jks
2 changes: 1 addition & 1 deletion lib/Common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Common{
String sDCardDir;
//存放收藏文件夹目录的文件
String favoriteDir;
List<String> favoriteFileList;
List<String> favoriteFileList=new List<String>();
String favoriteAll='';


Expand Down
Loading

0 comments on commit 1aba21d

Please sign in to comment.