Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_freeworld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_freeworld
Commits
2ad15f87
Commit
2ad15f87
authored
Aug 17, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Plain Diff
Can't commit changes due to unresolved conflicts.
parents
ff5f2a30
d99616cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
105 deletions
+0
-105
ExampleInstrumentedTest.java
...est/java/com/mints/freeworld/ExampleInstrumentedTest.java
+0
-17
ExampleUnitTest.java
app/src/test/java/com/mints/freeworld/ExampleUnitTest.java
+0
-17
OnLoginListener.java
.../main/java/com/mints/freeworld/login/OnLoginListener.java
+0
-19
WXEntryActivity.java
.../main/java/com/mints/freeworld/wxapi/WXEntryActivity.java
+0
-52
No files found.
app/src/androidTest/java/com/mints/freeworld/ExampleInstrumentedTest.java
deleted
100644 → 0
View file @
ff5f2a30
package
com
.
mints
.
freeworld
;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
//@RunWith(AndroidJUnit4.class)
//public class ExampleInstrumentedTest {
// @Test
// public void useAppContext() {
// // Context of the app under test.
// Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
// assertEquals("com.mints.goodnews", appContext.getPackageName());
// }
//}
\ No newline at end of file
app/src/test/java/com/mints/freeworld/ExampleUnitTest.java
deleted
100644 → 0
View file @
ff5f2a30
package
com
.
mints
.
freeworld
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public
class
ExampleUnitTest
{
@Test
public
void
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
);
}
}
\ No newline at end of file
shareSdkLib/src/main/java/com/mints/freeworld/login/OnLoginListener.java
deleted
100644 → 0
View file @
ff5f2a30
package
com
.
mints
.
freeworld
.
login
;
import
java.util.HashMap
;
/**
* 第三方登录操作过程中会回调这个接口中的方法,不同方法衔接第
* 三方登录与用户应用登录/注册的逻辑,故使用第三方登录时一定要实
* 现本接口的不同方法,否则第三方登录是没有意义的。
*/
public
interface
OnLoginListener
{
/**
* 登录完成调用此接口,返回登录者在第三方社交平台上的用户数据。实现此方法时要根据
* res参数中的用户资料,结合开发者应用的用户系统数据,判断此登录者是否需要先注册,
* 如果需要注册,则返回true
*/
public
boolean
onLogin
(
String
platform
,
HashMap
<
String
,
Object
>
res
);
}
shareSdkLib/src/main/java/com/mints/freeworld/wxapi/WXEntryActivity.java
deleted
100644 → 0
View file @
ff5f2a30
/*
* 官网地站:http://www.mob.com
* 技术支持QQ: 4006852216
* 官方微信:ShareSDK (如果发布新版本的话,我们将会第一时间通过微信将版本更新内容推送给您。如果使用过程中有任何问题,也可以通过微信与我们取得联系,我们将会在24小时内给予回复)
*
* Copyright (c) 2013年 mob.com. All rights reserved.
*/
package
com
.
mints
.
freeworld
.
wxapi
;
import
android.content.Intent
;
import
android.widget.Toast
;
import
cn.sharesdk.wechat.utils.WXAppExtendObject
;
import
cn.sharesdk.wechat.utils.WXMediaMessage
;
import
cn.sharesdk.wechat.utils.WechatHandlerActivity
;
/** 微信客户端回调activity示例 */
public
class
WXEntryActivity
extends
WechatHandlerActivity
{
/**
* 处理微信发出的向第三方应用请求app message
* <p>
* 在微信客户端中的聊天页面有“添加工具”,可以将本应用的图标添加到其中
* 此后点击图标,下面的代码会被执行。Demo仅仅只是打开自己而已,但你可
* 做点其他的事情,包括根本不打开任何页面
*/
public
void
onGetMessageFromWXReq
(
WXMediaMessage
msg
)
{
if
(
msg
!=
null
)
{
Intent
iLaunchMyself
=
getPackageManager
().
getLaunchIntentForPackage
(
getPackageName
());
startActivity
(
iLaunchMyself
);
}
}
/**
* 处理微信向第三方应用发起的消息
* <p>
* 此处用来接收从微信发送过来的消息,比方说本demo在wechatpage里面分享
* 应用时可以不分享应用文件,而分享一段应用的自定义信息。接受方的微信
* 客户端会通过这个方法,将这个信息发送回接收方手机上的本demo中,当作
* 回调。
* <p>
* 本Demo只是将信息展示出来,但你可做点其他的事情,而不仅仅只是Toast
*/
public
void
onShowMessageFromWXReq
(
WXMediaMessage
msg
)
{
if
(
msg
!=
null
&&
msg
.
mediaObject
!=
null
&&
(
msg
.
mediaObject
instanceof
WXAppExtendObject
))
{
WXAppExtendObject
obj
=
(
WXAppExtendObject
)
msg
.
mediaObject
;
Toast
.
makeText
(
this
,
obj
.
extInfo
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment