Commit d14d088d authored by jianglx's avatar jianglx

添加多渠道打包

parent 3ae56a57
......@@ -10,6 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -21,10 +22,19 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
}
......
......@@ -10,6 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -23,10 +24,21 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
}
......
......@@ -8,6 +8,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
//testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//新版Gradle 是 implementation 为了兼容compile,写上这句话
javaCompileOptions {
......@@ -21,13 +22,24 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
// 所有Module应该保持一致,要么加上,要么去掉
//aar包引入
//compile(name:'camerascan-1.0', ext:'aar')
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
// 所有Module应该保持一致,要么加上,要么去掉
//aar包引入
//compile(name:'camerascan-1.0', ext:'aar')
}
}
}
......
......@@ -10,6 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -27,6 +28,18 @@ android {
}
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -10,6 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -21,10 +22,23 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
}
......
apply plugin: 'com.android.application'
android {
String appId = "com.xxfc.rv"
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.xxfc.rv"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
flavorDimensions "default"
versionCode 135
versionName "1.3.5"
multiDexEnabled true
......@@ -28,32 +28,34 @@ android {
}
}
signingConfigs {
release {
keyAlias rootProject.ext.sign_xinxin.keyAlias
keyPassword rootProject.ext.sign_xinxin.keyPassword
storeFile file(rootProject.ext.sign_xinxin.storeReleaseFile)
storePassword rootProject.ext.sign_xinxin.storePassword
}
debug {
keyAlias 'xinxin'
keyPassword '123456'
storeFile file('../keystore/xinxin.jks')
storePassword '123456'
}
release {
keyAlias 'xinxin'
keyPassword '123456'
storeFile file('../keystore/xinxin.jks')
storePassword '123456'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
debug {
debuggable true
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
android.applicationVariants.all { variant ->
variant.outputs.all {
//MedicalClient_{time}_v1.0.1_{build号}.apk
if (variant.buildType.name == 'release') {
def productVersion = "RV" + releaseTime() + "V" + defaultConfig.versionName + "Release" + ".apk";
outputFileName = productVersion
......@@ -62,7 +64,26 @@ android {
}
}
productFlavors {
//开发环境
dev {
// applicationId = appId + ".dev"
applicationId = appId
}
sit {
// applicationId = appId + ".sit"
applicationId = appId
}
pro {
applicationId = appId
}
}
}
//打包的时间
static def releaseTime() {
return new Date().format("yyyyMMddHHss", TimeZone.getTimeZone("GMT+8"))
......
<resources>
<string name="app_name">滴房车(开发)</string>
</resources>
<resources>
<string name="app_name">滴房车(测试)</string>
</resources>
......@@ -10,7 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
......@@ -19,15 +19,28 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
sourceSets {
......
package com.frame.rv.config;
/**
* Created :Auser
* Date: 2019/5/9.
* Desc:
*/
public interface RvFrameConfig extends RvFrameConstant {
// String HOST = "https://xxtest.upyuns.com";
// String HOST = "http://10.1.37.192:8765";
// String HOST = "http://10.1.37.245:10000";
String HOST = "https://dev.dfangche.com";
String HOST_H5_DETAIL = HOST;
String ADMIN_POST = HOST + "/api/admin/";
String AUTH_POST = HOST + "/api/auth/";
String VEHICLE_POST = HOST + "/vehicle/";//租车
String VEHICLE_CAR_POST = HOST + "/vehicle/";//租车
String VEHICLE_UPLOAD = HOST + "/api/universal/";
String VEHICLE_ORDER = HOST + "/api/order/";
String VEHICLE_TOURUSER = HOST + "/api/tour/";
String VEHICLE_CAMPLIST = HOST + "/api/campsite/";
String APP_ID = "wx9ed5e51251cf7c61";//微信注册ID
class RvFrameInfo {
public static int TYPE_LOGIN = 0;//登录类型0、token过期、1、租车
}
}
......@@ -15,7 +15,6 @@ public interface RvFrameConfig extends RvFrameConstant {
// String HOST = "https://api.dfangche.com";
String HOST = "https://mgmt.dfangche.com";
String HOST_H5_DETAIL = "https://mgmt.dfangche.com";
// String HOST_H5_DETAIL = "https://dev.dfangche.com";
String ADMIN_POST = HOST + "/api/admin/";
String AUTH_POST = HOST + "/api/auth/";
String VEHICLE_POST = HOST + "/vehicle/";//租车
......
package com.frame.rv.config;
/**
* Created :Auser
* Date: 2019/5/9.
* Desc:
*/
public interface RvFrameConfig extends RvFrameConstant {
String HOST = "https://xxtest.upyuns.com";
// String HOST = "http://10.1.37.192:8765";
// String HOST = "http://10.1.37.245:10000";
// String HOST = "https://dev.dfangche.com";
// String HOST = "https://api.dfangche.com";
// String HOST = "https://mgmt.dfangche.com";
// String HOST_H5_DETAIL = "https://mgmt.dfangche.com";
String HOST_H5_DETAIL = HOST;
String ADMIN_POST = HOST + "/api/admin/";
String AUTH_POST = HOST + "/api/auth/";
String VEHICLE_POST = HOST + "/vehicle/";//租车
String VEHICLE_CAR_POST = HOST + "/vehicle/";//租车
String VEHICLE_UPLOAD = HOST + "/api/universal/";
String VEHICLE_ORDER = HOST + "/api/order/";
String VEHICLE_TOURUSER = HOST + "/api/tour/";
String VEHICLE_CAMPLIST = HOST + "/api/campsite/";
String APP_ID = "wx9ed5e51251cf7c61";//微信注册ID
class RvFrameInfo {
public static int TYPE_LOGIN = 0;//登录类型0、token过期、1、租车
}
}
......@@ -12,7 +12,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -33,13 +33,26 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
// 所有Module应该保持一致,要么加上,要么去掉
//aar包引入
//compile(name:'camerascan-1.0', ext:'aar')
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
// 所有Module应该保持一致,要么加上,要么去掉
//aar包引入
//compile(name:'camerascan-1.0', ext:'aar')
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
......
......@@ -8,7 +8,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
}
buildTypes {
......@@ -28,6 +28,17 @@ android {
jniLibs.srcDir 'libs'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,6 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -20,13 +21,24 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
}
......
......@@ -10,6 +10,7 @@ android {
versionCode 1
versionName "1.0"
multiDexEnabled true
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
......@@ -29,10 +30,22 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
repositories {
flatDir {
dirs 'libs' //this way we can find the .aar file in libs folder
}
}
}
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -21,6 +21,18 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -21,6 +21,16 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -20,7 +20,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -21,6 +21,18 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -20,7 +20,7 @@ android {
}
}
flavorDimensions "default"
}
buildTypes {
......@@ -29,6 +29,16 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......@@ -36,7 +46,7 @@ dependencies {
api 'com.jakewharton:butterknife:9.0.0-rc1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'
annotationProcessor'com.alibaba:arouter-compiler:1.1.4'
annotationProcessor 'com.alibaba:arouter-compiler:1.1.4'
api project(':RvWrapper')
api project(':component_control')
api project(':component_resource')
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -34,6 +34,16 @@ android {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -10,7 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
annotationProcessorOptions {
......@@ -28,6 +28,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -10,7 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
......@@ -28,6 +28,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -10,7 +10,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
javaCompileOptions {
......@@ -29,6 +29,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -20,6 +20,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -21,6 +21,18 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -10,7 +10,7 @@ android {
targetSdkVersion 29
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -22,6 +22,17 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -8,7 +8,7 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -19,6 +19,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
repositories {
......
......@@ -82,7 +82,7 @@ public class RvWebView extends WebView {
setWebChromeClient(webChromeClient);
}
public WebViewClient webViewClient = new WebViewClient() {
private WebViewClient webViewClient = new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
return super.shouldOverrideUrlLoading(view, request);
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,19 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 24
targetSdkVersion 28
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
......@@ -20,6 +20,19 @@ android {
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
......@@ -9,7 +9,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
flavorDimensions "default"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
......@@ -29,6 +29,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
productFlavors {
//开发环境
dev {
}
sit {
}
pro {
}
}
}
dependencies {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment