浏览代码

1.修复打包编译出错

tags/0.0.7+6
“yanghuaxuan” 3 年前
父节点
当前提交
2eb220be1a
共有 5 个文件被更改,包括 33 次插入33 次删除
  1. +29
    -29
      example/android/app/build.gradle
  2. +1
    -1
      lib/widgets/search/history_tag/search_history_tag.dart
  3. +1
    -1
      lib/widgets/search/hot_tag/search_hot_tag_widget.dart
  4. +1
    -1
      lib/widgets/search/input/search_input_widget.dart
  5. +1
    -1
      lib/widgets/search/tabbar/search_tab_widget.dart

+ 29
- 29
example/android/app/build.gradle 查看文件

@@ -53,8 +53,8 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
//选择要添加的对应cpu类型的.so库。
//abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a'
abiFilters 'armeabi-v7a','x86_64'
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a'
// abiFilters 'armeabi-v7a','x86_64'
}
}

@@ -109,33 +109,33 @@ android {


// 应用信息配置
productFlavors {
// 智夜生活
zhiying {
applicationId "cn.zhios.zhiying"
versionCode 52
dimension "app"
versionName '1.3.12'
// 签名信息
signingConfig signingConfigs.zhiying
}
}
// 打包脚本
android.applicationVariants.all { variant ->
if (variant.buildType.name != "debug") {
variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/app/build/outputs/apk")
}
variant.outputs.all { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
//这里修改apk文件名
def fileName = "${variant.productFlavors[0].name}_${releaseTime()}01_&V${variant.productFlavors[0].versionCode}.apk"
outputFileName = fileName
}
}
}
// productFlavors {
// // 智夜生活
// zhiying {
// applicationId "cn.zhios.zhiying"
// versionCode 52
// dimension "app"
// versionName '1.3.12'
// // 签名信息
// signingConfig signingConfigs.zhiying
// }
// }
//
// // 打包脚本
// android.applicationVariants.all { variant ->
// if (variant.buildType.name != "debug") {
// variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/app/build/outputs/apk")
// }
//
// variant.outputs.all { output ->
// def outputFile = output.outputFile
// if (outputFile != null && outputFile.name.endsWith('.apk')) {
// //这里修改apk文件名
// def fileName = "${variant.productFlavors[0].name}_${releaseTime()}01_&V${variant.productFlavors[0].versionCode}.apk"
// outputFileName = fileName
// }
// }
// }

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->


+ 1
- 1
lib/widgets/search/history_tag/search_history_tag.dart 查看文件

@@ -8,7 +8,7 @@ import 'package:zhiying_base_widget/pages/search_page/notifier/search_tag_notifi
import 'package:zhiying_base_widget/pages/search_result_page/search_result_page.dart';
import 'package:zhiying_base_widget/pages/search_think_page/model/search_think_model.dart';
import 'package:zhiying_base_widget/widgets/search/history_tag/model/search_history_model.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/SearchTabBarEvent.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/search_tab_bar_event.dart';
import 'package:zhiying_base_widget/widgets/search/widget/text_tag_widget.dart';
import 'package:zhiying_base_widget/widgets/search/widget/title_widget.dart';
import 'package:zhiying_comm/zhiying_comm.dart';


+ 1
- 1
lib/widgets/search/hot_tag/search_hot_tag_widget.dart 查看文件

@@ -7,7 +7,7 @@ import 'package:zhiying_base_widget/pages/search_page/notifier/search_tag_notifi
import 'package:zhiying_base_widget/pages/search_result_page/search_result_page.dart';
import 'package:zhiying_base_widget/pages/search_think_page/model/search_think_model.dart';
import 'package:zhiying_base_widget/widgets/search/hot_tag/model/search_hot_tag_model.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/SearchTabBarEvent.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/search_tab_bar_event.dart';
import 'package:zhiying_base_widget/widgets/search/widget/text_tag_widget.dart';
import 'package:zhiying_base_widget/widgets/search/widget/title_widget.dart';
import 'package:zhiying_comm/zhiying_comm.dart';


+ 1
- 1
lib/widgets/search/input/search_input_widget.dart 查看文件

@@ -13,7 +13,7 @@ import 'package:zhiying_base_widget/pages/search_result_page/search_result_page.
import 'package:zhiying_base_widget/pages/search_think_page/bloc/search_think_bloc.dart';
import 'package:zhiying_base_widget/pages/search_think_page/model/search_think_model.dart';
import 'package:zhiying_base_widget/pages/search_think_page/search_think_page.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/SearchTabBarEvent.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/search_tab_bar_event.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/search_input_model.dart';
import 'package:zhiying_base_widget/widgets/search/input/search_input_sk.dart';
import 'package:zhiying_comm/zhiying_comm.dart';


+ 1
- 1
lib/widgets/search/tabbar/search_tab_widget.dart 查看文件

@@ -10,7 +10,7 @@ import 'package:zhiying_base_widget/pages/search_result_page/search_result_page.
import 'package:zhiying_base_widget/pages/search_think_page/bloc/search_think_bloc.dart';
import 'package:zhiying_base_widget/pages/search_think_page/model/search_think_model.dart';
import 'package:zhiying_base_widget/widgets/home/home_quick_entry/cached_network_image_util.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/SearchTabBarEvent.dart';
import 'package:zhiying_base_widget/widgets/search/input/model/search_tab_bar_event.dart';
import 'package:zhiying_base_widget/widgets/search/tabbar/search_tab_sk.dart';
import 'package:zhiying_base_widget/widgets/search/widget/my_tab.dart';
import 'package:flutter_bloc/flutter_bloc.dart';


正在加载...
取消
保存