From 2ac747ccf587d5839d8aa3e1df4d49241f98b5a3 Mon Sep 17 00:00:00 2001 From: kenshin <420373550@qq.com> Date: Wed, 26 Jun 2019 10:23:10 +0800 Subject: [PATCH] update oppo sdk. (#19864) --- cocos/platform/android/java/libs/oppoSDK.jar | Bin 10612 -> 10582 bytes .../org/cocos2dx/lib/Cocos2dxDataManager.java | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cocos/platform/android/java/libs/oppoSDK.jar b/cocos/platform/android/java/libs/oppoSDK.jar index 57290236d0c7f716468fa4f2e77d24985e04993e..19350f2731916555a51bb993e1e788f64e60654e 100755 GIT binary patch delta 2466 zcmV;T30?N|Qr1$iKpB5sZxTTiJyR$P>z2}0+p1MtMGI8B*gm3-_CrHL#fWL2husmT zS!T%Y(*NayvGKtl;EyuiSujK!5_#C!xo6Hj_uTpT`Rn@+0Q-1u;cfwW+_O=@h7E@M zc|6GDp^Z&!S$JgOv4tlLxuh@Sa-E^x^7X*e!=d)H{LFpf3Dtj-N_g!wddCOiBn3{n z;yn>HDEFmQGC5$_ugsfVJ!8lo=|C_nw+Mef8gxbUiFZRn+?Muvc*Y}X;t7~FMj4!@ zQX)DEc^nH0_vS2I-Xq_3SE@in$5I3gnTqjZcl0Ro#an4gZOlmCz2KLe44)`J)Ui~( zQ<3yFY3$Bt!ohzHI1ZMu>R=lchP4?)hV^#StaLgF|7PCHA-aYbwb@^V6^4imDaS0P7={+G_HRm)h6Ah>uu2+$kV$Z_h6-x zISqO=3-m3aNa!-n4k$K=UEBGJh1xe{zNDNIjXB}~udqVn>X-!=w}5nJ)W{=l)7n_; zHE~QvkzFBs?k>8yD_G}Ky&^IxYY}hA!C|WFj58*>8LXx3b=;wUHeI_(pG#OCm{cy~ zX|C`aP)iO62u0P&DEt8c00RU70FWA!W*bz0@_LCuJQ8eU42UAj1PPP0HLn1M5Y;wL zEMv#%BV9{td9k#stX2fbt8MyD+NSR|eYZ)|AN+$!%EM)*ooPDlO#Y-yr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1TwTLTdL{Dp(7hy@W^9*f8CV*AW(?1=BYg4u3B5s@-(!NkR%rm_z8`cnIwzZ#xFKJIL`U-G7`~Pv98o$Z~awr)EgU zDG5G6`CgpGIqA%0-rioO7r#}D7a{=l+?@+iZ&&xf)LZ5$UUEmB${G>bJ*mN5FL(?yQXlF)!$ zdoaY)GbC530pd4dmdhzJ?E!j^#{{5+1Qfc#N;ohxcpHhE2uL0eDquh*svA6`GD^KQ zP`z9OF2^g(x~tr~PT4i))DolpN)6oJI&g^^xPJtu8Ep?-1VMG0;6$LGV}^R@{=~Ba z-ADsnK|$BxDn1b)v;*UfK|REv9$pJ-a5;33%kElO_wzatix^&~{2lJRfgZd`sBf`Y z-e!5cTZ7)?7l?p9QiDE%=VdSQp~o(WTGq#99hR9XK)h6IZ3pEJ&@PzauUm98MH+}oKlU&jy?oN8 z;aN5cufv7l{b~OEB>yu%7H(&zy^QaN+W!wwO9u#m#b?P%2LJ%`4*&p=8nXo>6a@;% z05qTe0RRB^1Ct{tV;g|QXUR$j008q3001-q2><{90000000000Op~D~Y61x(lMN|D K2J0jM0000;9lRg_ diff --git a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDataManager.java b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDataManager.java index 7b5097d733c6..b5cdf6df1f75 100644 --- a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDataManager.java +++ b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxDataManager.java @@ -31,27 +31,27 @@ of this software and associated documentation files (the "Software"), to deal import com.oppo.oiface.engine.OifaceGameEngineManager; public class Cocos2dxDataManager { - public static void setOptimise(String thing, float value){ + public static void setOptimise(String thing, String value){ String jsonStr = "{\"" + thing + "\":" + String.valueOf(value) + "}"; OifaceGameEngineManager.getInstance().updateGameEngineInfo(jsonStr); } public static void setProcessID(int pid){ - setOptimise("render_pid", pid); + setOptimise("render_pid", String.valueOf(pid)); } public static void setFrameSize(int width, int height){ - setOptimise("buffer_size", width * height); + setOptimise("buffer_size", String.valueOf(width * height)); } public static void onSceneLoaderBegin(){ - setOptimise("load_scene", 1); + setOptimise("load_scene", String.valueOf(1)); } public static void onSceneLoaderEnd(){ - setOptimise("load_scene", 0); + setOptimise("load_scene", String.valueOf(0)); } public static void onShaderLoaderBegin(){ - setOptimise("shader_compile", 1); + setOptimise("shader_compile", String.valueOf(1)); } public static void onShaderLoaderEnd(){ - setOptimise("shader_compile", 0); + setOptimise("shader_compile", String.valueOf(0)); } }