Skip to content

Commit

Permalink
v3.0b20170713 released!
Browse files Browse the repository at this point in the history
  • Loading branch information
JackJiang2011 committed Jul 13, 2017
1 parent b55ba3a commit 555f491
Show file tree
Hide file tree
Showing 16 changed files with 79 additions and 6 deletions.
Binary file modified demos/client/MobileIMSDKDemo-Android.apk
Binary file not shown.
Binary file modified demos/client/MobileIMSDKDemo-Java.jar
Binary file not shown.
10 changes: 10 additions & 0 deletions release_notes/release_note_v3.0b20170713.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

-------------------------------------------------------------------------------------- v3.0������2017-06-25 19:08
MobileIMSDK v3.0b20170713�����˵����
�������Bug��
1. [Android��java��iOS]�����Demo�������ڲ��˳�APP��������˳���½�������µ�½ʱ���ᱨcode=203�����bug��





Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,24 @@ public void initMobileIMSDK()
init = true;
}
}

public void release()
{
ClientCoreSDK.getInstance().release();
resetInitFlag();
}

/**
* 重置init标识。
* <p>
* <b>重要说明:</b>不退出APP的情况下,重新登陆时记得调用一下本方法,不然再
* 次调用 {@link #initMobileIMSDK()} 时也不会重新初始化MobileIMSDK(
* 详见 {@link #initMobileIMSDK()}代码)而报 code=203错误!
*
*/
public void resetInitFlag()
{
init = false;
}

public ChatTransDataEventImpl getTransDataListener()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ protected void onCreate(Bundle savedInstanceState)
initListeners();

// 确保MobileIMSDK被初始化哦(整个APP生生命周期中只需调用一次哦)
// 提示:在不退出APP的情况下退出登陆后再重新登陆时,请确保调用本方法一次,不然会报code=203错误哦!
IMClientManager.getInstance(this).initMobileIMSDK();

// 登陆有关的初始化工作
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ protected Integer doInBackground(Object... params)
Log.w(TAG, e);
}

//## BUG FIX: 20170713 START by JackJiang
// 退出登陆时记得一定要调用此行,不然不退出APP的情况下再登陆时会报 code=203错误哦!
IMClientManager.getInstance(MainActivity.this).resetInitFlag();
//## BUG FIX: 20170713 END by JackJiang

return code;
}

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// init MobileIMSDK first
// 提示:在不退出APP的情况下退出登陆后再重新登陆时,请确保调用本方法一次,不然会报code=203错误哦!
[[IMClientManager sharedInstance] initMobileIMSDK];

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@

- (void)releaseMobileIMSDK;


/**
* 重置init标识。
* <p>
* <b>重要说明:</b>不退出APP的情况下,重新登陆时记得调用一下本方法,不然再
* 次调用 {@link #initMobileIMSDK()} 时也不会重新初始化MobileIMSDK(
* 详见 {@link #initMobileIMSDK()}代码)而报 code=203错误!
*
*/
- (void)resetInitFlag;

- (ChatTransDataEventImpl *) getTransDataListener;
- (ChatBaseEventImpl *) getBaseEventListener;
- (MessageQoSEventImpl *) getMessageQoSListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ - (void)initMobileIMSDK
- (void)releaseMobileIMSDK
{
[[ClientCoreSDK sharedInstance] releaseCore];
[self resetInitFlag];
}

- (void)resetInitFlag
{
self._init = NO;
}

- (ChatTransDataEventImpl *) getTransDataListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>b170620.1</string>
<string>b170713.2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<rect key="frame" x="18" y="0.0" width="284" height="157"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="192.168.1.190" borderStyle="roundedRect" placeholder="Domain or ip address #" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="WTR-Ew-UbY" userLabel="编辑框-ip">
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="rbcore.52im.net" borderStyle="roundedRect" placeholder="Domain or ip address #" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="WTR-Ew-UbY" userLabel="编辑框-ip">
<rect key="frame" x="0.0" y="20" width="196" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="textColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down Expand Up @@ -103,7 +103,7 @@
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" alpha="0.69999999999999996" contentMode="center" image="copyright_img.png" translatesAutoresizingMaskIntoConstraints="NO" id="g6y-O3-PAI">
<rect key="frame" x="63" y="519" width="194" height="34"/>
<rect key="frame" x="61" y="519" width="198" height="34"/>
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand All @@ -118,7 +118,7 @@
</view>
</objects>
<resources>
<image name="copyright_img.png" width="194" height="34"/>
<image name="copyright_img.png" width="198" height="34"/>
<image name="dashed_line.png" width="568" height="1"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ - (void)doLogout
NSString *msg = [NSString stringWithFormat:@"注销登陆请求发送失败,错误码:%d", code];
[self E_showToastInfo:@"错误" withContent:msg onParent:self.view];
}

//## BUG FIX: 20170713 START by JackJiang
// 退出登陆时记得一定要调用此行,不然不退出APP的情况下再登陆时会报 code=203错误哦!
[[IMClientManager sharedInstance] resetInitFlag];
//## BUG FIX: 20170713 END by JackJiang
}

- (void)doExit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ public void initMobileIMSDK()
public void release()
{
ClientCoreSDK.getInstance().release();
resetInitFlag();
}

/**
* 重置init标识。
* <p>
* <b>重要说明:</b>不退出APP的情况下,重新登陆时记得调用一下本方法,不然再
* 次调用 {@link #initMobileIMSDK()} 时也不会重新初始化MobileIMSDK(
* 详见 {@link #initMobileIMSDK()}代码)而报 code=203错误!
*
*/
public void resetInitFlag()
{
init = false;
}

public ChatTransDataEventImpl getTransDataListener()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public LoginGUI()
initListeners();

// 确保MobileIMSDK被初始化哦(整个APP生生命周期中只需调用一次哦)
// 提示:在不退出APP的情况下退出登陆后再重新登陆时,请确保调用本方法一次,不然会报code=203错误哦!
IMClientManager.getInstance().initMobileIMSDK();

// 登陆有关的初始化工作
Expand Down Expand Up @@ -112,7 +113,7 @@ private void initViews()
mainPanel.addTitledLineSeparator("");
JPanel btnAndVerPanel = new JPanel();
btnAndVerPanel.setLayout(new BoxLayout(btnAndVerPanel, BoxLayout.LINE_AXIS));
JLabel lbVer= new JLabel("v3.0b170626.1");
JLabel lbVer= new JLabel("v3.0b170713.1");
lbVer.setForeground(new Color(184,184,184));
btnAndVerPanel.add(lbVer);
btnAndVerPanel.add(Box.createHorizontalGlue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ private void doLogout()
System.out.println("注销登陆请求已完成!");
else
System.out.println("注销登陆请求发送失败。错误码是:"+code+"!");

//## BUG FIX: 20170713 START by JackJiang
// 退出登陆时记得一定要调用此行,不然不退出APP的情况下再登陆时会报 code=203错误哦!
IMClientManager.getInstance().resetInitFlag();
//## BUG FIX: 20170713 END by JackJiang
}

public static void doExit()
Expand Down

0 comments on commit 555f491

Please sign in to comment.