发版检查项
- version、version_code、versionCode、versionName是否对比历史版本做了修改
- iOS端是否使用了
react-native bundle --entry-file index.js --bundle-output ./ios/bundle/index.ios.jsbundle --platform ios --assets-dest ./ios/bundle --dev false
重新生成了新的index.ios.jsbundle
- 检查iOS工程中bundle目录下是否多出了node_modules文件夹,此文件夹不需要
发版之前修改配置的地方
- version: 用于显示app的版本号(发版要修改)
- version_code: 上传给后台用于控制更新(每次发版加1)
- versionCode: 安卓应用市场区分版本高低的标识(发版需要添加)
- versionName:安卓市场显示的应用版本号(发版前需要修改)
RN代码历史版本配置
- 员工端==================================================
export const debug = true
export const version = '2.0.0' // 换图标后即发版本
export const version_code = 8
export const base_api = 'https://staffapi.dajxyl.com'
export const debug = true
export const version = '1.4.2' (android) '1.4.3' (ios)// 线上版本
export const version_code = 6 android) 7 ios)
export const base_api = 'https://staffapi.dajxyl.com'
export const debug = true
export const version = '1.4.1'
export const version_code = 5
export const base_api = 'https://staffapi.dajxyl.com'
export const debug = true
export const version = '1.4.0'
export const version_code = 4
export const base_api = 'https://staffapi.dajxyl.com'
export const debug = false
export const version = '1.3.0'
export const version_code = 3
export const base_api = 'https://staffapi.dajxyl.com'
export const version = '1.0.3';
export const version_code = 1;
export const base_api = 'https://staffapi.dajxyl.com';
export const debug = false;
export const version = '1.2.0';
export const version_code = 2;
export const base_api = 'https://staffapi.dajxyl.com';
export const debug = false;
- 用户端==================================================
export const debug = true
export const version = '2.1.0' // 即发朋友圈
export const version_code = 14
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const debug = true
export const version = '2.0.0' // 线上版本
export const version_code = 13
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const debug = true
export const version = '1.5.0'
export const version_code = 12
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const debug = true
export const version = '1.4.2' (android) '1.4.3' (ios)
export const version_code = 10 (android 11 (ios)
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const debug = true
export const version = '1.4.0'
export const version_code = 8
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const debug = false
export const version = '1.3.1'
export const version_code = 7
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const debug = false
export const version = '1.3.0'
export const version_code = 6
export const base_api = 'https://api.dajxyl.com/'
export const amap_key = 'ec0253b012102ec42845817360aecec5'
export const wechat_appid = 'wx1288370bcddf64a6'
export const home_page = 'https://www.dajxyl.com/'
export const version = '1.2.1';
export const version_code = 5;
export const base_api = 'https://api.dajxyl.com/';
export const amap_key = 'ec0253b012102ec42845817360aecec5';
export const wechat_appid = 'wx1288370bcddf64a6';
export const home_page = 'https://dev.www.dajxyl.com/';
export const version = '1.2.0';
export const version_code = 4;
export const base_api = 'https://api.dajxyl.com/';
export const amap_key = 'ec0253b012102ec42845817360aecec5';
export const wechat_appid = 'wx1288370bcddf64a6';
export const home_page = 'https://dev.www.dajxyl.com/';
export const version = '1.1.1';
export const version_code = 3;
export const base_api = 'https://api.dajxyl.com/';
export const amap_key = 'ec0253b012102ec42845817360aecec5';
export const wechat_appid = 'wx1288370bcddf64a6';
export const home_page = 'https://www.dajxyl.com/';
Android原生中的代码历史版本配置
- 员工端==================================================
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 8
versionName "2.0.0" // 换图标后即发版本
}
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 6(android) 7(ios)
versionName "1.4.2" (android)"1.4.3" (ios)// 线上版本
}
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 5
versionName "1.4.1"
}
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 4
versionName "1.4.0"
}
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 3
versionName "1.3.0"
}
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionName "1.2.0"
}
defaultConfig {
applicationId "com.dajx_service"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.3"
}
- 用户端==================================================
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 14
versionName "2.1.0"// 即发朋友圈
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 13
versionName "2.0.0"//线上版本
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 12
versionName "1.5.0"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 10(android) 11(ios)
versionName "1.4.2"(android) "1.4.3"(ios)
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 8
versionName "1.4.0"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 7
versionName "1.3.1"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 6
versionName "1.3.0"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 5
versionName "1.2.1"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 4
versionName "1.2.0"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
missingDimensionStrategy 'react-native-camera', 'general'
}
defaultConfig {
applicationId "com.dajx_client"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 3
versionName "1.1.1"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}