@@ -18,17 +18,18 @@ It is proved to be effective by billions of Wechat users.
18
18
19
19
![ mars] ( https://github.com/WeMobileDev/article/blob/master/assets/mars/mars.png?raw=true )
20
20
21
- * comm: common library, including socket, thread, message queue, coroutine, etc.
22
- * Xlog: a reliable log component with high-performance.
23
- * SDT: a network detection component.
24
- * STN: a signaling network component, the major part of Mars.
21
+ * comm: common library, including socket, thread, message queue, coroutine, etc.
22
+ * Xlog: a reliable log component with high-performance.
23
+ * SDT: a network detection component.
24
+ * STN: a signaling network component, the major part of Mars.
25
25
26
26
## Samples
27
27
28
- Start with sample usage [ here] ( https://github.com/Tencent/mars/wiki/Mars-sample-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E )
28
+ Start with sample usage [ here] ( https://github.com/Tencent/mars/wiki/Mars-sample-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E ) .
29
29
30
30
## Getting started
31
- Choose [ Android] ( #android ) or [ iOS/OS X] ( #apple )
31
+
32
+ Choose [ Android] ( #android ) or [ iOS/OS X] ( #apple ) .
32
33
33
34
### <a name =" android " >[ Android] ( https://github.com/Tencent/mars/wiki/Mars-Android-%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97 ) </a >
34
35
@@ -273,6 +274,7 @@ Network change:
273
274
```
274
275
275
276
## Support
277
+
276
278
Any problem?
277
279
278
280
1 . Learn more from [ mars/sample] ( https://github.com/Tencent/mars/tree/master/samples ) .
@@ -281,9 +283,11 @@ Any problem?
281
283
4 . Contact us for help.
282
284
283
285
## Contributing
286
+
284
287
For more information about contributing issues or pull requests, see our [ Mars Contributing Guide] ( https://github.com/Tencent/mars/blob/master/CONTRIBUTING.md ) .
285
288
286
289
## License
290
+
287
291
Mars is under the MIT license. See the [ LICENSE] ( https://github.com/Tencent/mars/blob/master/LICENSE ) file for details.
288
292
289
293
@@ -308,10 +312,11 @@ Mars 是微信官方的跨平台跨业务的终端基础组件。
308
312
309
313
##Samples
310
314
311
- sample 的使用请参考[ 这里] ( https://github.com/Tencent/mars/wiki/Mars-sample-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E )
315
+ sample 的使用请参考[ 这里] ( https://github.com/Tencent/mars/wiki/Mars-sample-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E ) 。
312
316
313
317
##Getting started
314
- 接入 [ Android] ( #android ) 或者 [ iOS/OS X] ( #apple )
318
+
319
+ 接入 [ Android] ( #android ) 或者 [ iOS/OS X] ( #apple ) 。
315
320
316
321
###<a name =" android " >[ Android] ( https://github.com/Tencent/mars/wiki/Mars-Android-%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97 ) </a >
317
322
@@ -399,7 +404,7 @@ BaseEvent.onForeground(true);
399
404
StnLogic . makesureLongLinkConnected();
400
405
```
401
406
402
- 初始化顺序不一定要严格遵守上述代码的顺序,但在初始化时首先要调用 setCallBack 接口 (callback 文件的编写可以参考 demo),再调用 Mars.init,最后再调用onForeground 和 makesureLongLinkConnect,中间顺序可以随意更改。** 注意:STN 默认是后台,所以初始化 STN 后需要主动调用一次** ``` BaseEvent.onForeground(true) ```
407
+ 初始化顺序不一定要严格遵守上述代码的顺序,但在初始化时首先要调用 setCallBack 接口 (callback 文件的编写可以参考 demo),再调用 Mars.init,最后再调用 onForeground 和 makesureLongLinkConnect,中间顺序可以随意更改。** 注意:STN 默认是后台,所以初始化 STN 后需要主动调用一次** ``` BaseEvent.onForeground(true) ```
403
408
404
409
需要释放 STN 或者退出程序时:
405
410
@@ -559,15 +564,16 @@ appender_close();
559
564
```
560
565
561
566
## Support
567
+
562
568
还有其他问题?
563
569
564
- 1 . 参看 [ mars/sample] ( https://github.com/Tencent/mars/tree/master/samples ) .
565
- 2 . 阅读 [ 源码] ( https://github.com/Tencent/mars/tree/master ) .
566
- 3 . 阅读 [ wiki] ( https://github.com/Tencent/mars/wiki ) 或者 [ FAQ] ( https://github.com/Tencent/mars/wiki/Mars-%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 )
567
- 4 . 联系我们.
570
+ 1 . 参看 [ mars/sample] ( https://github.com/Tencent/mars/tree/master/samples ) ;
571
+ 2 . 阅读 [ 源码] ( https://github.com/Tencent/mars/tree/master ) ;
572
+ 3 . 阅读 [ wiki] ( https://github.com/Tencent/mars/wiki ) 或者 [ FAQ] ( https://github.com/Tencent/mars/wiki/Mars-%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 ) ;
573
+ 4 . 联系我们。
568
574
569
575
## Contributing
570
- 关于 Mars 分支管理、issue 以及 pr 规范, 请阅读 [ Mars Contributing Guide] ( https://github.com/Tencent/mars/blob/master/CONTRIBUTING.md ) .
576
+ 关于 Mars 分支管理、issue 以及 pr 规范, 请阅读 [ Mars Contributing Guide] ( https://github.com/Tencent/mars/blob/master/CONTRIBUTING.md ) 。
571
577
572
578
## License
573
- Mars 使用的 MIT 协议,详细请参考[ LICENSE] ( https://github.com/Tencent/mars/blob/master/LICENSE ) .
579
+ Mars 使用的 MIT 协议,详细请参考 [ LICENSE] ( https://github.com/Tencent/mars/blob/master/LICENSE ) 。
0 commit comments