Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
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_fiveworld
Commits
29a49fe3
Commit
29a49fe3
authored
Aug 17, 2021
by
fengruiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改5G马甲包问题
parent
2fc1697a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
53 additions
and
82 deletions
+53
-82
build.gradle
app/build.gradle
+1
-1
proguard-rules.pro
app/proguard-rules.pro
+2
-2
ExampleInstrumentedTest.java
...est/java/com/mints/fiveworld/ExampleInstrumentedTest.java
+0
-17
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+16
-16
AppApplication.kt
app/src/main/java/com/mints/fiveworld/AppApplication.kt
+0
-1
Constant.kt
app/src/main/java/com/mints/fiveworld/common/Constant.kt
+3
-3
AppDatabase.kt
app/src/main/java/com/mints/fiveworld/db/AppDatabase.kt
+1
-1
AboutusActivity.kt
.../main/java/com/mints/fiveworld/main/my/AboutusActivity.kt
+1
-1
activity_google_map.xml
app/src/main/res/layout/activity_google_map.xml
+3
-0
activity_permissions.xml
app/src/main/res/layout/activity_permissions.xml
+2
-2
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
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+2
-0
ExampleUnitTest.java
app/src/test/java/com/mints/fiveworld/ExampleUnitTest.java
+0
-17
gradle.properties
gradle.properties
+2
-2
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
AndroidManifest.xml
mvvmhabit/src/main/AndroidManifest.xml
+5
-5
AppUtils.java
...bit/src/main/java/me/goldze/mvvmhabit/utils/AppUtils.java
+2
-2
settings.gradle
settings.gradle
+1
-1
WXEntryActivity.java
.../main/java/com/mints/fiveworld/wxapi/WXEntryActivity.java
+1
-0
No files found.
app/build.gradle
View file @
29a49fe3
...
@@ -104,7 +104,7 @@ android {
...
@@ -104,7 +104,7 @@ android {
}
}
productFlavors
{
productFlavors
{
streetpkg
text
{}
streetpkg
{}
}
}
productFlavors
.
all
{
productFlavors
.
all
{
...
...
app/proguard-rules.pro
View file @
29a49fe3
...
@@ -124,14 +124,14 @@
...
@@ -124,14 +124,14 @@
#忽略警告
#忽略警告
-dontwarn com.mints.f
re
eworld.bean.
*
*
-dontwarn com.mints.f
iv
eworld.bean.
*
*
#保留实体类
#保留实体类
-keep class com.mints.fiveworld.bean.
*
* {
-keep class com.mints.fiveworld.bean.
*
* {
*;
*;
}
}
#忽略警告
#忽略警告
-dontwarn com.mints.f
re
eworld.widget.
*
*
-dontwarn com.mints.f
iv
eworld.widget.
*
*
#保留实体类
#保留实体类
-keep class com.mints.fiveworld.widget.
*
* {
-keep class com.mints.fiveworld.widget.
*
* {
*;
*;
...
...
app/src/androidTest/java/com/mints/fiveworld/ExampleInstrumentedTest.java
deleted
100644 → 0
View file @
2fc1697a
package
com
.
mints
.
fiveworld
;
/**
* 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/main/AndroidManifest.xml
View file @
29a49fe3
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/AppTheme"
android:theme=
"@style/AppTheme"
android:usesCleartextTraffic=
"true"
>
android:usesCleartextTraffic=
"true"
>
<activity
android:name=
".main.vr.DetailedActivity"
></activity>
<activity
android:name=
"
com.mints.fiveworld
.main.vr.DetailedActivity"
></activity>
<uses-library
<uses-library
android:name=
"org.apache.http.legacy"
android:name=
"org.apache.http.legacy"
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
android:process=
":remote"
/>
android:process=
":remote"
/>
<activity
<activity
android:name=
".splash.SplashActivity"
android:name=
"
com.mints.fiveworld
.splash.SplashActivity"
android:theme=
"@style/NormalSplash"
android:theme=
"@style/NormalSplash"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
...
@@ -73,47 +73,47 @@
...
@@ -73,47 +73,47 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".login.LoginActivity"
<activity
android:name=
"
com.mints.fiveworld
.login.LoginActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
<activity
android:name=
".main.MainActivity"
android:name=
"
com.mints.fiveworld
.main.MainActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:launchMode=
"singleTask"
android:launchMode=
"singleTask"
android:theme=
"@style/AppTheme.NoneTranslucent"
/>
android:theme=
"@style/AppTheme.NoneTranslucent"
/>
<activity
android:name=
".main.my.MoresettingsActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.my.MoresettingsActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".main.my.AboutusActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.my.AboutusActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".main.my.PermissionsActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.my.PermissionsActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".main.my.OpenvipActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.my.OpenvipActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".main.home.HistoricalimageActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.home.HistoricalimageActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".main.my.BindMobileActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.my.BindMobileActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".splash.GuideActivity"
<activity
android:name=
"
com.mints.fiveworld
.splash.GuideActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".main.home.SearchMapActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.home.SearchMapActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
<!-- ShareSDK start -->
/>
<!-- ShareSDK start -->
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
android:windowSoftInputMode=
"stateHidden|adjustResize"
/>
android:windowSoftInputMode=
"stateHidden|adjustResize"
/>
<activity
<activity
android:name=
".wxapi.WXEntryActivity"
android:name=
"
com.mints.fiveworld
.wxapi.WXEntryActivity"
android:configChanges=
"keyboardHidden|orientation|screenSize"
android:configChanges=
"keyboardHidden|orientation|screenSize"
android:exported=
"true"
android:exported=
"true"
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
/>
android:theme=
"@android:style/Theme.Translucent.NoTitleBar"
/>
...
@@ -196,15 +196,15 @@
...
@@ -196,15 +196,15 @@
android:exported=
"false"
android:exported=
"false"
android:screenOrientation=
"behind"
android:screenOrientation=
"behind"
android:windowSoftInputMode=
"adjustResize|stateHidden"
/>
android:windowSoftInputMode=
"adjustResize|stateHidden"
/>
<activity
android:name=
".main.vr.PanoramicActivity"
<activity
android:name=
"
com.mints.fiveworld
.main.vr.PanoramicActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<activity
android:name=
".webview.MintsWebViewActivity"
<activity
android:name=
"
com.mints.fiveworld
.webview.MintsWebViewActivity"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
<service
android:name=
".services.UpdateServices"
<service
android:name=
"
com.mints.fiveworld
.services.UpdateServices"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:configChanges=
"screenLayout|screenSize|smallestScreenSize|orientation|keyboardHidden"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
/>
/>
...
...
app/src/main/java/com/mints/fiveworld/AppApplication.kt
View file @
29a49fe3
...
@@ -21,7 +21,6 @@ import me.goldze.mvvmhabit.utils.KLog
...
@@ -21,7 +21,6 @@ import me.goldze.mvvmhabit.utils.KLog
/**
/**
* Created by 冯瑞雨 on 2021/7/1.
* Created by 冯瑞雨 on 2021/7/1.
*/
*/
@WX
(
packageName
=
"com.mints.freeworld"
)
class
AppApplication
:
BaseApp
()
{
class
AppApplication
:
BaseApp
()
{
override
fun
onCreate
()
{
override
fun
onCreate
()
{
...
...
app/src/main/java/com/mints/fiveworld/common/Constant.kt
View file @
29a49fe3
...
@@ -12,7 +12,7 @@ object Constant {
...
@@ -12,7 +12,7 @@ object Constant {
/**
/**
* 应用包名
* 应用包名
*/
*/
const
val
MINTS_PKG_NAME
=
"com.mints.f
re
eworld"
const
val
MINTS_PKG_NAME
=
"com.mints.f
iv
eworld"
/**
/**
* 第一次打开权限页面
* 第一次打开权限页面
...
@@ -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/register.html"
//服务协议
var
REGISTER_URL
=
BuildConfig
.
MainIp
+
"map
zy
/register.html"
//服务协议
var
PRIVACY_URL
=
BuildConfig
.
MainIp
+
"map/privacy.html"
//隐私协议
var
PRIVACY_URL
=
BuildConfig
.
MainIp
+
"map
zy
/privacy.html"
//隐私协议
/**
/**
* 第一次授权
* 第一次授权
...
...
app/src/main/java/com/mints/fiveworld/db/AppDatabase.kt
View file @
29a49fe3
...
@@ -22,7 +22,7 @@ abstract class AppDatabase : RoomDatabase() {
...
@@ -22,7 +22,7 @@ abstract class AppDatabase : RoomDatabase() {
_instance
=
Room
.
databaseBuilder
(
_instance
=
Room
.
databaseBuilder
(
Utils
.
getContext
()
Utils
.
getContext
()
,
AppDatabase
::
class
.
java
,
AppDatabase
::
class
.
java
,
"mints_room.com.mints.f
re
eworld.db"
)
,
"mints_room.com.mints.f
iv
eworld.db"
)
.
allowMainThreadQueries
()
//设置是否允许在主线程做查询操作
.
allowMainThreadQueries
()
//设置是否允许在主线程做查询操作
//.fallbackToDestructiveMigration()//设置迁移数据库如果发生错误,将会重新创建数据库,而不是发生崩溃
//.fallbackToDestructiveMigration()//设置迁移数据库如果发生错误,将会重新创建数据库,而不是发生崩溃
.
build
()
.
build
()
...
...
app/src/main/java/com/mints/fiveworld/main/my/AboutusActivity.kt
View file @
29a49fe3
...
@@ -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
=
"
3D高清街景
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_google_map.xml
View file @
29a49fe3
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<ImageView
<ImageView
android:visibility=
"gone"
android:visibility=
"gone"
android:id=
"@+id/image_map_history"
android:id=
"@+id/image_map_history"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
...
@@ -42,6 +43,7 @@
...
@@ -42,6 +43,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
/>
app:layout_constraintEnd_toEndOf=
"parent"
/>
<ImageView
<ImageView
android:visibility=
"gone"
android:id=
"@+id/image_map_change_icon"
android:id=
"@+id/image_map_change_icon"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_height=
"35dp"
...
@@ -52,6 +54,7 @@
...
@@ -52,6 +54,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
/>
/>
<ImageView
<ImageView
android:visibility=
"gone"
android:id=
"@+id/ly_hotview"
android:id=
"@+id/ly_hotview"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_height=
"35dp"
...
...
app/src/main/res/layout/activity_permissions.xml
View file @
29a49fe3
...
@@ -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=
"
3D高清街景
"
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=
"您的个人信息将受到严格的保密,
3D高清街景
不会将您的个人信息泄露给他人。您也可以在系统设置中关闭授权,但可能影响部分功能使用。"
android:text=
"您的个人信息将受到严格的保密,
自由世界
不会将您的个人信息泄露给他人。您也可以在系统设置中关闭授权,但可能影响部分功能使用。"
android:layout_margin=
"10dp"
android:layout_margin=
"10dp"
android:textColor=
"#CD000000"
/>
android:textColor=
"#CD000000"
/>
...
...
app/src/main/res/layout/dialog_backvip.xml
View file @
29a49fe3
...
@@ -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=
"
3D高清街景
会员吗?"
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 @
29a49fe3
...
@@ -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=
"我们依据最新的法律,向您说明
3D高清街景
软件的隐私政策,特向您推送本提示。请您阅读并充分理解相关条款。"
android:text=
"我们依据最新的法律,向您说明
自由世界
软件的隐私政策,特向您推送本提示。请您阅读并充分理解相关条款。"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
...
...
app/src/main/res/layout/fragment_home.xml
View file @
29a49fe3
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
app:layout_constraintTop_toBottomOf=
"@id/image_map_change_icon"
/>
app:layout_constraintTop_toBottomOf=
"@id/image_map_change_icon"
/>
<ImageView
<ImageView
android:visibility=
"gone"
android:id=
"@+id/ly_hotview"
android:id=
"@+id/ly_hotview"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_height=
"35dp"
...
@@ -59,6 +60,7 @@
...
@@ -59,6 +60,7 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
/>
app:layout_constraintEnd_toEndOf=
"parent"
/>
<ImageView
<ImageView
android:visibility=
"gone"
android:id=
"@+id/image_map_change_icon"
android:id=
"@+id/image_map_change_icon"
android:layout_width=
"35dp"
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_height=
"35dp"
...
...
app/src/test/java/com/mints/fiveworld/ExampleUnitTest.java
deleted
100644 → 0
View file @
2fc1697a
package
com
.
mints
.
fiveworld
;
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
gradle.properties
View file @
29a49fe3
...
@@ -17,8 +17,8 @@ org.gradle.jvmargs=-Xmx2048m
...
@@ -17,8 +17,8 @@ org.gradle.jvmargs=-Xmx2048m
isBuildModule
=
false
isBuildModule
=
false
DEBUG_URL
=
"http://test.mints-id.com/map-api/"
DEBUG_URL
=
"http://test.mints-id.com/map-api/"
RELEASE_URL
=
"http
s://api
.mints-id.com/map-api/"
RELEASE_URL
=
"http
://test
.mints-id.com/map-api/"
#https://api.mints-id.com/map-api/
RELEASE_KEY_PASSWORD
=
mints.fiveworld
RELEASE_KEY_PASSWORD
=
mints.fiveworld
RELEASE_KEY_ALIAS
=
mints_fiveworld
RELEASE_KEY_ALIAS
=
mints_fiveworld
RELEASE_STORE_PASSWORD
=
mints.fiveworld
RELEASE_STORE_PASSWORD
=
mints.fiveworld
...
...
library_base/src/main/AndroidManifest.xml
View file @
29a49fe3
...
@@ -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.android7.5g.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 @
2fc1697a
View file @
29a49fe3
373 KB
|
W:
|
H:
368 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mvvmhabit/src/main/AndroidManifest.xml
View file @
29a49fe3
...
@@ -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}.5g.customactivityoncrashinitprovider"
<!-- android:exported="false"-->
android:exported=
"false"
<!-- android:initOrder="101" />--
>
android:initOrder=
"101"
/
>
</application>
</application>
</manifest>
</manifest>
mvvmhabit/src/main/java/me/goldze/mvvmhabit/utils/AppUtils.java
View file @
29a49fe3
...
@@ -124,14 +124,14 @@ public class AppUtils {
...
@@ -124,14 +124,14 @@ public class AppUtils {
File
file
=
new
File
(
downloadApk
);
File
file
=
new
File
(
downloadApk
);
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
Q
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
Q
)
{
//适配Android Q,注意mFilePath是通过ContentResolver得到的,上述有相关代码
//适配Android Q,注意mFilePath是通过ContentResolver得到的,上述有相关代码
Uri
contentUri
=
FileProvider
.
getUriForFile
(
context
,
"com.mints.f
re
eworld.fileprovider"
,
file
);
Uri
contentUri
=
FileProvider
.
getUriForFile
(
context
,
"com.mints.f
iv
eworld.fileprovider"
,
file
);
intent
.
setDataAndType
(
contentUri
,
"application/vnd.android.package-archive"
);
intent
.
setDataAndType
(
contentUri
,
"application/vnd.android.package-archive"
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_READ_URI_PERMISSION
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_READ_URI_PERMISSION
);
}
else
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
N
)
{
}
else
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
N
)
{
// 7.0
// 7.0
intent
.
addFlags
(
Intent
.
FLAG_GRANT_READ_URI_PERMISSION
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_READ_URI_PERMISSION
);
//第二个参数是你的包名+.FileProvider(你也可以直接去AndroidMenifest中把你刚才写的provider的authorities拷贝过来,Fileprovider开头大小写不限)
//第二个参数是你的包名+.FileProvider(你也可以直接去AndroidMenifest中把你刚才写的provider的authorities拷贝过来,Fileprovider开头大小写不限)
Uri
contentUri
=
FileProvider
.
getUriForFile
(
context
,
"com.mints.f
re
eworld.fileprovider"
,
file
);
Uri
contentUri
=
FileProvider
.
getUriForFile
(
context
,
"com.mints.f
iv
eworld.fileprovider"
,
file
);
intent
.
setDataAndType
(
contentUri
,
"application/vnd.android.package-archive"
);
intent
.
setDataAndType
(
contentUri
,
"application/vnd.android.package-archive"
);
}
else
{
//7.0以下
}
else
{
//7.0以下
intent
.
setDataAndType
(
Uri
.
fromFile
(
file
),
"application/vnd.android.package-archive"
);
intent
.
setDataAndType
(
Uri
.
fromFile
(
file
),
"application/vnd.android.package-archive"
);
...
...
settings.gradle
View file @
29a49fe3
...
@@ -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
=
"fiveworId"
rootProject
.
name
=
"5G世界"
\ No newline at end of file
\ No newline at end of file
shareSdkLib/src/main/java/com/mints/fiveworld/wxapi/WXEntryActivity.java
View file @
29a49fe3
...
@@ -10,6 +10,7 @@ package com.mints.fiveworld.wxapi;
...
@@ -10,6 +10,7 @@ package com.mints.fiveworld.wxapi;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
cn.sharesdk.wechat.utils.WXAppExtendObject
;
import
cn.sharesdk.wechat.utils.WXAppExtendObject
;
import
cn.sharesdk.wechat.utils.WXMediaMessage
;
import
cn.sharesdk.wechat.utils.WXMediaMessage
;
import
cn.sharesdk.wechat.utils.WechatHandlerActivity
;
import
cn.sharesdk.wechat.utils.WechatHandlerActivity
;
...
...
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