From 3c4aa20b44ae28280698b2dfb3818cc8d876a403 Mon Sep 17 00:00:00 2001 From: panqihua <1029559041@qq.com> Date: Mon, 13 Apr 2020 03:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=BC=80rap2=E5=92=8C=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=9C=8D=E5=8A=A1=E7=AB=AF=E8=B0=83=E8=AF=95=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/.gitignore | 2 ++ app/build.gradle | 27 ++++++++++++++++++++++++++- app/my.key | Bin 2230 -> 0 bytes app/pan.key | Bin 0 -> 2193 bytes 4 files changed, 28 insertions(+), 1 deletion(-) delete mode 100644 app/my.key create mode 100644 app/pan.key diff --git a/app/.gitignore b/app/.gitignore index dc5ca96..ea1c983 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,2 +1,4 @@ /build /release/ +/rap2debug/ +/serverdebug/ diff --git a/app/build.gradle b/app/build.gradle index 259810c..afb9760 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,10 +1,20 @@ ext { + //本地服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址 API_HOST = 'http://192.168.3.132:8080/' + //本地rap2服务端测试地址,把ip地址部分改成ipconfig /all找到的内网地址 RAP2_API_HOST = 'http://192.168.3.132:38080/app/mock/1' } apply plugin: 'com.android.application' apply plugin: 'multi-languages' android { + signingConfigs { + debug { + storeFile file('pan.key') + storePassword 'panpan' + keyAlias = 'pan' + keyPassword 'panpan' + } + } compileSdkVersion 29 buildToolsVersion "29.0.3" @@ -20,7 +30,15 @@ android { buildTypes { debug{ - buildConfigField('String','API_HOST',"\""+API_HOST+"\"") + buildConfigField('String','API_HOST',"\""+RAP2_API_HOST+"\"") + + signingConfig=signingConfigs.debug + } + + rap2debug { + buildConfigField('String','API_HOST',"\""+RAP2_API_HOST+"\"") + + signingConfig=signingConfigs.debug } release { @@ -28,6 +46,13 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' buildConfigField('String','API_HOST',"\""+API_HOST+"\"") + + signingConfig=signingConfigs.debug + } + serverdebug { + buildConfigField('String','API_HOST',"\""+API_HOST+"\"") + + signingConfig=signingConfigs.debug } } sourceSets { diff --git a/app/my.key b/app/my.key deleted file mode 100644 index 5d83e2932e5bd27974e647ea196c01ac7cbc39fc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2230 zcmchY`8N~_AI4`T!%zr?K_gtf7+cqRnMTam!q`PjW|D12A%qwbCi`+rcF7>Sga*wu zgo(1mTh?5ab(Cd<((822J?EbOfcJ;zhv)OtbDr~@@AqKsU=08OfDQ%xDTp629Cc`d z)He5K001ZmMTH!o1bJX*cz_U~GUyl(2n9f>kmYZo=wa3O_VfgIStzXTG*T#(KD?4I%%kM#jO7isu1Ahnngxm33g(?3#stFqI@ocwbDsc zeB)6-PL71iT0XvfdMA_CZ^pm_g_AO;;>M?SKjd8_KEizmQ|N-_`GV@r2Yw?P1}>~b zw7yG*{)5S($u)8w*`e)_IWv4iVlBel%80hTCCiQ;a1geoUgNvEKqBS;RgA7 zXNUT?mD!vs6-7j}ouoL8$;vIU)0c+-SkEyPSE+w#Csgu|VanGKb^mG7!x1T6w~*?- ztQBG$HCtmp_9MJ+V~4z7&z^p)e`}v_(|+EXKMhlr^dclD7(t`jQbjUM7~@x$kW4Oa zDd_cEB{?N=?U6~Ke62cVBbG#8;dBKZK_K$!Uv}D)yNf#bI-B;`1LnBa;!`6mHStfU z%URs3vEA~Qn$o^MdqlSp7UeY*dn7+^bs8w45vmf)o~OsQN@O}t=}ioNYJ9g+u;2)9 z{q{B4XF8@?X{S}^39@sdSAU`}WE8e266j!R?U}f28`AH4&bu)^Ho@Q!c_v zy&UQOA;F>-kRjmFV>AUj7DOAc_AQZA->*CbI9b&3{=2ZCmdg+0vr|NLCv*Kp z&jAlR(kaSo5Lc4wCgtBs_}<^H=^pyRvsoBMQlxZ-*fh%;&%(!;^7Mnai$9LIzJYxq zQ^HSag^Y!c^AI@n~wdf{jfTSvA@Q&=bjk9dJ5>ZBawBilCo2>8t(wqV6&L{JR_e{Y zI{E+-f1boJYYs*CWLK2O)Q*;U<#`^sjYiw=w_A;7epA0MruOLNs+WsTuGY(f**NK0 z*w#9(O@>YY6;)fQ;eJo2DGrF~dxT}6^ww3C!)VnLA%mxXa3{VtDJ-x4b$kH3ozUSe zH^y4&?-N{oDww5kouW1pX{Iky z+KdD2Hrqi)=&k5BeQ{mJ;^UOLfS_$Yg79TQAxUL2t=1u(fUF#QR{w2uHzJUY%)u^3 zU+X)?J0%c4B-*V#_QWV^26z)WlcKDGvAEx3#^hl~%gwkQuW^tJyeL+irRZI)!lka> zEac%hPx!Wt2sw~-pC>QZztx{qWxzh>CXoeG)=CRZ+0Ryg-bJXhsy0d&005IwRIne4 z3c?qIK|l})B3mUhhl2C)DJNhPcHlrDKNNr>sS6z*|I>{vD zq<7f$LI(J;84EP+rxnckqoxKQ2H%Kdf-VN-kFH*E#KIhpN#%w!jqp1uSDoByvj_8M zXR7T}Zk@U7qLzQxBcyKJv_W!@g-TCH(MLP zLo8K8lt?68_I}#I{aZLZ{7Zp@%0!Oe|}ee+dC=nAkH5a)w{i6 zej^xnCT9_#n$W~+iLYE%-Hzbk3C53!6~t`HWJ;#ffW{inFx{H(5+4DSo~1hQHxRX*?)IxH^UskPQ`9-|PS%_*YeT#w3Ol=jTg z*e8aG?@#!#Dao3_TZSpUZ+5|H({%=E*jG2+Y85(J>gzap)V=O#=7e8bYYvQR( Ti1e-q+v(#qyCas%m3jXI4u;GJ diff --git a/app/pan.key b/app/pan.key new file mode 100644 index 0000000000000000000000000000000000000000..1d62cb380b335cf926ffcc32a64ad72da4931dd0 GIT binary patch literal 2193 zcmcJP_fyk}7RB>T0tqD)(Ey=H2SW>J=tu$vQK~FqfrlX=D@{tINTdgifUBVw7ezyp z4!$5w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