Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
A
AnchorCollect_p
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hywang
AnchorCollect_p
Commits
1a3df678
Commit
1a3df678
authored
Apr 09, 2024
by
hywang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.升级一个版本
parent
472245d0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
9 deletions
+18
-9
build.gradle
app/build.gradle
+3
-3
Configs.java
app/src/main/java/com/phlx/anchorcollect_p/Configs.java
+4
-0
DaoMaster.java
.../main/java/com/phlx/anchorcollect_p/db/gen/DaoMaster.java
+2
-2
RetrofitClient.java
...ain/java/com/phlx/anchorcollect_p/net/RetrofitClient.java
+4
-2
LoginActivity.java
...java/com/phlx/anchorcollect_p/ui/login/LoginActivity.java
+2
-2
LoginVM.java
.../main/java/com/phlx/anchorcollect_p/ui/login/LoginVM.java
+3
-0
No files found.
app/build.gradle
View file @
1a3df678
...
...
@@ -9,8 +9,8 @@ android {
applicationId
"com.phlx.anchorcollect_p"
minSdkVersion
21
targetSdkVersion
29
versionCode
1
6
versionName
"2.
0.1
1"
versionCode
1
7
versionName
"2.
1.
1"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
@@ -50,7 +50,7 @@ android {
}
greendao
{
schemaVersion
4
//数据库版本号
schemaVersion
5
//数据库版本号
daoPackage
'com.phlx.anchorcollect_p.db.gen'
targetGenDir
'src/main/java'
}
...
...
app/src/main/java/com/phlx/anchorcollect_p/Configs.java
View file @
1a3df678
...
...
@@ -39,6 +39,10 @@ public class Configs {
* 是否后缀端口
*/
public
static
boolean
isAddPort
=
true
;
/**
* 是否https
*/
public
static
boolean
isHttps
=
true
;
//ip port
public
static
final
String
SP_APP_IP
=
"sp_app_ip"
;
...
...
app/src/main/java/com/phlx/anchorcollect_p/db/gen/DaoMaster.java
View file @
1a3df678
...
...
@@ -14,10 +14,10 @@ import org.greenrobot.greendao.identityscope.IdentityScopeType;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* Master of DAO (schema version
4
): knows all DAOs.
* Master of DAO (schema version
5
): knows all DAOs.
*/
public
class
DaoMaster
extends
AbstractDaoMaster
{
public
static
final
int
SCHEMA_VERSION
=
4
;
public
static
final
int
SCHEMA_VERSION
=
5
;
/** Creates underlying database table using DAOs. */
public
static
void
createAllTables
(
Database
db
,
boolean
ifNotExists
)
{
...
...
app/src/main/java/com/phlx/anchorcollect_p/net/RetrofitClient.java
View file @
1a3df678
...
...
@@ -92,10 +92,12 @@ public class RetrofitClient {
if
(
TextUtils
.
isEmpty
(
url
))
{
if
(
Configs
.
isAddPort
)
{
url
=
"http://"
+
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_IP
,
baseUrl
)
+
":"
+
url
=
Configs
.
isHttps
?
"https://"
:
"http://"
;
url
+=
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_IP
,
baseUrl
)
+
":"
+
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_PORT
,
port
);
}
else
{
url
=
"http://"
+
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_IP
,
baseUrl
);
url
=
Configs
.
isHttps
?
"https://"
:
"http://"
;
url
+=
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_IP
,
baseUrl
);
}
}
...
...
app/src/main/java/com/phlx/anchorcollect_p/ui/login/LoginActivity.java
View file @
1a3df678
...
...
@@ -63,8 +63,8 @@ public class LoginActivity extends BaseActivity<ActivityLoginBinding, LoginVM> {
viewModel
.
loginType
=
loginType
;
downloadUrl
=
"http://"
+
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_IP
,
RetrofitClient
.
baseUrl
)
downloadUrl
=
Configs
.
isHttps
?
"https://"
:
"http://"
;
downloadUrl
+=
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_IP
,
RetrofitClient
.
baseUrl
)
+
":"
+
SPUtils
.
getInstance
().
getString
(
Configs
.
SP_APP_PORT
,
RetrofitClient
.
port
)
+
Configs
.
downloadApk
;
...
...
app/src/main/java/com/phlx/anchorcollect_p/ui/login/LoginVM.java
View file @
1a3df678
...
...
@@ -80,6 +80,9 @@ public class LoginVM extends BaseViewModel<Repository> {
userName
.
set
(
model
.
getUserName
());
password
.
set
(
model
.
getPassword
());
// userName.set("15047917803");
// password.set("Tpsq7803*");
// userName.set("zz");//正式测试 app
// userName.set("test_app");//阿里云测试 app
// password.set("123456");
...
...
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