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
be7aee38
Commit
be7aee38
authored
Aug 17, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改git脏数据
parent
2ad15f87
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
103 additions
and
30 deletions
+103
-30
mints_fiveworld.jks
app/mints_fiveworld.jks
+0
-0
mints_freeworld.jks
app/mints_freeworld.jks
+0
-0
Constant.kt
app/src/main/java/com/mints/freeworld/common/Constant.kt
+2
-2
DeviceInfo.kt
app/src/main/java/com/mints/freeworld/common/DeviceInfo.kt
+1
-0
AboutusActivity.kt
.../main/java/com/mints/freeworld/main/my/AboutusActivity.kt
+1
-1
activity_permissions.xml
app/src/main/res/layout/activity_permissions.xml
+2
-2
activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+1
-1
dialog_backvip.xml
app/src/main/res/layout/dialog_backvip.xml
+1
-1
dialog_power.xml
app/src/main/res/layout/dialog_power.xml
+1
-1
strings.xml
app/src/main/res/values/strings.xml
+1
-1
config.gradle
config.gradle
+1
-1
gradle.properties
gradle.properties
+4
-4
AndroidManifest.xml
library_base/src/main/AndroidManifest.xml
+9
-9
ic_launcher_main.png
library_base/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
+0
-0
strings.xml
library_base/src/main/res/values/strings.xml
+1
-1
AndroidManifest.xml
mvvmhabit/src/main/AndroidManifest.xml
+5
-5
settings.gradle
settings.gradle
+1
-1
OnLoginListener.java
.../main/java/com/mints/freeworld/login/OnLoginListener.java
+19
-0
WXEntryActivity.java
.../main/java/com/mints/freeworld/wxapi/WXEntryActivity.java
+53
-0
No files found.
app/mints_fiveworld.jks
deleted
100644 → 0
View file @
2ad15f87
File deleted
app/mints_freeworld.jks
0 → 100644
View file @
be7aee38
File added
app/src/main/java/com/mints/freeworld/common/Constant.kt
View file @
be7aee38
...
@@ -20,8 +20,8 @@ object Constant {
...
@@ -20,8 +20,8 @@ object Constant {
const
val
FIRST_OPEN_PERMISSIONS
=
"first_open_permissions"
const
val
FIRST_OPEN_PERMISSIONS
=
"first_open_permissions"
// 协议地址
// 协议地址
var
REGISTER_URL
=
BuildConfig
.
MainIp
+
"map
5g
/register.html"
//服务协议
var
REGISTER_URL
=
BuildConfig
.
MainIp
+
"map
zy
/register.html"
//服务协议
var
PRIVACY_URL
=
BuildConfig
.
MainIp
+
"map
5g
/privacy.html"
//隐私协议
var
PRIVACY_URL
=
BuildConfig
.
MainIp
+
"map
zy
/privacy.html"
//隐私协议
/**
/**
* 第一次授权
* 第一次授权
...
...
app/src/main/java/com/mints/freeworld/common/DeviceInfo.kt
View file @
be7aee38
...
@@ -23,6 +23,7 @@ import com.mints.freeworld.utils.SimUtils
...
@@ -23,6 +23,7 @@ import com.mints.freeworld.utils.SimUtils
import
com.mints.freeworld.utils.StorageQueryUtil
import
com.mints.freeworld.utils.StorageQueryUtil
import
com.mints.freeworld.utils.SystemUtils
import
com.mints.freeworld.utils.SystemUtils
import
com.mints.freeworld.utils.json.JsonUtil
import
com.mints.freeworld.utils.json.JsonUtil
import
me.goldze.mvvmhabit.utils.KLog
import
java.io.*
import
java.io.*
import
java.net.NetworkInterface
import
java.net.NetworkInterface
import
java.util.*
import
java.util.*
...
...
app/src/main/java/com/mints/freeworld/main/my/AboutusActivity.kt
View file @
be7aee38
...
@@ -39,7 +39,7 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
...
@@ -39,7 +39,7 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
tv_title
.
setTextColor
(
Color
.
BLACK
)
tv_title
.
setTextColor
(
Color
.
BLACK
)
iv_left_icon
.
setImageResource
(
R
.
mipmap
.
ic_arrow_back
)
iv_left_icon
.
setImageResource
(
R
.
mipmap
.
ic_arrow_back
)
iv_left_icon
.
visibility
=
View
.
VISIBLE
iv_left_icon
.
visibility
=
View
.
VISIBLE
tvAboutasVersion
.
text
=
"
5G
世界 v"
+
DeviceInfo
.
instance
.
versionName
tvAboutasVersion
.
text
=
"
自由
世界 v"
+
DeviceInfo
.
instance
.
versionName
tvAboutasService
.
setOnClickListener
(
this
)
tvAboutasService
.
setOnClickListener
(
this
)
tvAboutasPolicy
.
setOnClickListener
(
this
)
tvAboutasPolicy
.
setOnClickListener
(
this
)
...
...
app/src/main/res/layout/activity_permissions.xml
View file @
be7aee38
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:layout_marginTop=
"25dp"
android:layout_marginTop=
"25dp"
android:text=
"
5G
世界"
android:text=
"
自由
世界"
android:textStyle=
"bold"
android:textStyle=
"bold"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"25dp"
/>
android:textSize=
"25dp"
/>
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"您的个人信息将受到严格的保密,
5G
世界不会将您的个人信息泄露给他人。您也可以在系统设置中关闭授权,但可能影响部分功能使用。"
android:text=
"您的个人信息将受到严格的保密,
自由
世界不会将您的个人信息泄露给他人。您也可以在系统设置中关闭授权,但可能影响部分功能使用。"
android:layout_margin=
"10dp"
android:layout_margin=
"10dp"
android:textColor=
"#CD000000"
/>
android:textColor=
"#CD000000"
/>
...
...
app/src/main/res/layout/activity_splash.xml
View file @
be7aee38
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/bg_splash"
/>
/>
<FrameLayout
<FrameLayout
android:id=
"@+id/fl_splash"
android:id=
"@+id/fl_splash"
...
...
app/src/main/res/layout/dialog_backvip.xml
View file @
be7aee38
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:elevation=
"5dp"
android:elevation=
"5dp"
android:layout_marginTop=
"6dp"
android:layout_marginTop=
"6dp"
android:text=
"
5G
世界会员吗?"
android:text=
"
自由
世界会员吗?"
android:textColor=
"#8E5832"
android:textColor=
"#8E5832"
android:textSize=
"26sp"
android:textSize=
"26sp"
android:textStyle=
"bold"
android:textStyle=
"bold"
...
...
app/src/main/res/layout/dialog_power.xml
View file @
be7aee38
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
android:layout_marginLeft=
"16dp"
android:layout_marginLeft=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_marginRight=
"16dp"
android:layout_marginRight=
"16dp"
android:text=
"我们依据最新的法律,向您说明
5G
世界软件的隐私政策,特向您推送本提示。请您阅读并充分理解相关条款。"
android:text=
"我们依据最新的法律,向您说明
自由
世界软件的隐私政策,特向您推送本提示。请您阅读并充分理解相关条款。"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
...
app/src/main/res/values/strings.xml
View file @
be7aee38
<resources>
<resources>
<string
name=
"app_name"
>
5G
世界
</string>
<string
name=
"app_name"
>
自由
世界
</string>
</resources>
</resources>
\ No newline at end of file
config.gradle
View file @
be7aee38
...
@@ -9,7 +9,7 @@ ext {
...
@@ -9,7 +9,7 @@ ext {
android
=
[
android
=
[
compileSdkVersion:
30
,
compileSdkVersion:
30
,
buildToolsVersion:
"30.0.2"
,
buildToolsVersion:
"30.0.2"
,
applicationId
:
"com.mints.f
iv
eworld"
,
applicationId
:
"com.mints.f
re
eworld"
,
minSdkVersion
:
21
,
minSdkVersion
:
21
,
targetSdkVersion
:
30
,
targetSdkVersion
:
30
,
versionCode
:
1
,
versionCode
:
1
,
...
...
gradle.properties
View file @
be7aee38
...
@@ -19,10 +19,10 @@ isBuildModule=false
...
@@ -19,10 +19,10 @@ isBuildModule=false
DEBUG_URL
=
"http://test.mints-id.com/map-api/"
DEBUG_URL
=
"http://test.mints-id.com/map-api/"
RELEASE_URL
=
"http://test.mints-id.com/map-api/"
RELEASE_URL
=
"http://test.mints-id.com/map-api/"
#https://api.mints-id.com/map-api/
#https://api.mints-id.com/map-api/
RELEASE_KEY_PASSWORD
=
mints.f
iv
eworld
RELEASE_KEY_PASSWORD
=
mints.f
re
eworld
RELEASE_KEY_ALIAS
=
mints_f
iv
eworld
RELEASE_KEY_ALIAS
=
mints_f
re
eworld
RELEASE_STORE_PASSWORD
=
mints.f
iv
eworld
RELEASE_STORE_PASSWORD
=
mints.f
re
eworld
RELEASE_STORE_FILE
=
mints_f
iv
eworld.jks
RELEASE_STORE_FILE
=
mints_f
re
eworld.jks
#ShareSDK
#ShareSDK
RELEASE_SHARESDK_KEY
=
m33e5da5ced828
RELEASE_SHARESDK_KEY
=
m33e5da5ced828
...
...
library_base/src/main/AndroidManifest.xml
View file @
be7aee38
...
@@ -26,15 +26,15 @@
...
@@ -26,15 +26,15 @@
android:theme=
"@style/Theme.AppCompat.Light.NoActionBar"
/>
android:theme=
"@style/Theme.AppCompat.Light.NoActionBar"
/>
<!--Android7App私有文件授权-->
<!--Android7App私有文件授权-->
<!-- <provider-->
<provider
<!-- android:name="com.fry.base.provider.BaseFileProvider"-->
android:name=
"com.fry.base.provider.BaseFileProvider"
<!-- android:authorities="com.base.android.android7.fileprovider"-->
android:authorities=
"com.base.android.zy.android7.fileprovider"
<!-- android:exported="false"-->
android:exported=
"false"
<!-- android:grantUriPermissions="true">--
>
android:grantUriPermissions=
"true"
>
<!-- <meta-data-->
<meta-data
<!-- android:name="android.support.FILE_PROVIDER_PATHS"-->
android:name=
"android.support.FILE_PROVIDER_PATHS"
<!-- android:resource="@xml/file_provider_paths" />--
>
android:resource=
"@xml/file_provider_paths"
/
>
<!-- </provider>--
>
</provider
>
</application>
</application>
</manifest>
</manifest>
library_base/src/main/res/mipmap-xxhdpi/ic_launcher_main.png
View replaced file @
2ad15f87
View file @
be7aee38
368 KB
|
W:
|
H:
373 KB
|
W:
|
H:
2-up
Swipe
Onion skin
library_base/src/main/res/values/strings.xml
View file @
be7aee38
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<string
name=
"bottom_name_home"
>
首页
</string>
<string
name=
"bottom_name_home"
>
首页
</string>
<string
name=
"bottom_name_my"
>
个人中心
</string>
<string
name=
"bottom_name_my"
>
个人中心
</string>
<string
name=
"app_sign"
>
f0506fab
</string>
<string
name=
"app_sign"
>
2545151
</string>
<string
name=
"str_immediately_login"
>
立即登录
</string>
<string
name=
"str_immediately_login"
>
立即登录
</string>
...
...
mvvmhabit/src/main/AndroidManifest.xml
View file @
be7aee38
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<!-- <provider-->
<provider
<!-- android:name=".crash.CaocInitProvider"-->
android:name=
".crash.CaocInitProvider"
<!-- android:authorities="${applicationId}.customactivityoncrashinitprovider"-->
android:authorities=
"${applicationId}.zy.customactivityoncrashinitprovider"
<!-- android:exported="false"-->
android:exported=
"false"
<!-- android:initOrder="101" />--
>
android:initOrder=
"101"
/
>
</application>
</application>
</manifest>
</manifest>
settings.gradle
View file @
be7aee38
...
@@ -2,4 +2,4 @@ include ':library_base'
...
@@ -2,4 +2,4 @@ include ':library_base'
include
':mvvmhabit'
include
':mvvmhabit'
include
':shareSdkLib'
include
':shareSdkLib'
include
':app'
include
':app'
rootProject
.
name
=
"5G世界"
rootProject
.
name
=
"自由世界"
\ No newline at end of file
\ No newline at end of file
shareSdkLib/src/main/java/com/mints/freeworld/login/OnLoginListener.java
0 → 100644
View file @
be7aee38
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
0 → 100644
View file @
be7aee38
/*
* 官网地站: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