Skip to content

Commit f7d936e

Browse files
committed
修改APP图标 修改安卓构建配置文件
1 parent f1580bb commit f7d936e

29 files changed

+34
-10
lines changed

app/flutter_vechain/android/app/build.gradle

+16-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ if (flutterVersionName == null) {
2222
}
2323

2424
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
2526
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2627

28+
def keystorePropertiesFile = rootProject.file("key.properties")
29+
def keystoreProperties = new Properties()
30+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
31+
2732
android {
2833
compileSdkVersion 28
2934

@@ -33,19 +38,25 @@ android {
3338

3439
defaultConfig {
3540
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36-
applicationId "com.example.flutter_vechain"
41+
applicationId "cn.wupengxin.vechain_helper"
3742
minSdkVersion 16
3843
targetSdkVersion 28
3944
versionCode flutterVersionCode.toInteger()
4045
versionName flutterVersionName
4146
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
4247
}
4348

49+
signingConfigs {
50+
release {
51+
keyAlias keystoreProperties['keyAlias']
52+
keyPassword keystoreProperties['keyPassword']
53+
storeFile file(keystoreProperties['storeFile'])
54+
storePassword keystoreProperties['storePassword']
55+
}
56+
}
4457
buildTypes {
4558
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
59+
signingConfig signingConfigs.release
4960
}
5061
}
5162
}
@@ -58,4 +69,5 @@ dependencies {
5869
testImplementation 'junit:junit:4.12'
5970
androidTestImplementation 'com.android.support.test:runner:1.0.2'
6071
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
72+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
6173
}

app/flutter_vechain/android/app/src/main/AndroidManifest.xml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
In most cases you can leave this as-is, but you if you want to provide
77
additional functionality it is fine to subclass or reimplement
88
FlutterApplication and put your custom class here. -->
9+
<uses-permission android:name="android.permission.CAMERA"/>
910
<application
1011
android:name="io.flutter.app.FlutterApplication"
11-
android:label="flutter_vechain"
12+
android:label="唯链钱包助手"
1213
android:icon="@mipmap/ic_launcher">
1314
<activity
1415
android:name=".MainActivity"
@@ -29,5 +30,6 @@
2930
<category android:name="android.intent.category.LAUNCHER"/>
3031
</intent-filter>
3132
</activity>
33+
3234
</application>
33-
</manifest>
35+
</manifest>
Loading
Loading
Loading
Loading
Loading

app/flutter_vechain/android/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
buildscript {
2+
ext.kotlin_version = '1.3.30'
23
repositories {
34
google()
45
jcenter()
56
}
67

78
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.2.1'
9+
classpath 'com.android.tools.build:gradle:3.3.0'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
911
}
1012
}
1113

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
storePassword=12345678
2+
keyPassword=12345678
3+
keyAlias=key
4+
storeFile=/Users/wupengxin/project/vechain_helper/app/key.jks

app/flutter_vechain/images/wallet.png

4.18 KB
Loading

app/flutter_vechain/ios/Runner.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,4 +577,4 @@
577577
/* End XCConfigurationList section */
578578
};
579579
rootObject = 97C146E61CF9000F007C117D /* Project object */;
580-
}
580+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

app/flutter_vechain/lib/configure/urls.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 整个URL列表
2-
final rootURL = "http://192.168.2.53:31312/";
2+
final rootURL = "https://wupengxin.cn/vechain_helper/api/";
33

44

55
final Map<String, String> APIS = {

app/flutter_vechain/pubspec.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ dependencies:
4545
# 操作sqlite
4646
sqflite: ^1.1.0
4747
# 扫描二维码
48-
barcode_scan: ^1.0.0
48+
barcode_scan: 1.0.0
4949

5050
dev_dependencies:
5151
flutter_test:
5252
sdk: flutter
5353

54+
flutter_icons:
55+
image_path: "images/wallet.png"
56+
android: true
57+
ios: true
5458

5559
# For information on the generic Dart part of this file, see the
5660
# following page: https://www.dartlang.org/tools/pub/pubspec

app/key.jks

2.21 KB
Binary file not shown.

0 commit comments

Comments
 (0)