Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
8ebcf1d9
Commit
8ebcf1d9
authored
Jun 13, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加混淆
parent
9d4403dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
9 deletions
+149
-9
build.gradle
app/build.gradle
+1
-1
proguard-rules.pro
app/proguard-rules.pro
+148
-1
DateSelectHelper.kt
.../main/java/com/miya/fastcashier/utils/DateSelectHelper.kt
+0
-7
No files found.
app/build.gradle
View file @
8ebcf1d9
...
...
@@ -36,7 +36,7 @@ android {
}
release
{
signingConfig
signingConfigs
.
myConfig
minifyEnabled
fals
e
minifyEnabled
tru
e
proguardFiles
getDefaultProguardFile
(
'proguard-android-optimize.txt'
),
'proguard-rules.pro'
}
}
...
...
app/proguard-rules.pro
View file @
8ebcf1d9
...
...
@@ -18,4 +18,151 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
#-renamesourcefileattribute SourceFile
-
optimizationpasses
5
#
指定代码的压缩级别
-
dontoptimize
-
dontusemixedcaseclassnames
-
dontskipnonpubliclibraryclasses
-
dontpreverify
-
verbose
-
dontshrink
-
keepattributes
Exceptions
,
InnerClasses
,
Signature
,
Deprecated
,
SourceFile
,
LineNumberTable
,
Annotation
,
EnclosingMethod
-
keep
public
class
*
extends
android
.
app
.
Fragment
-
keep
public
class
*
extends
android
.
app
.
Activity
-
keep
public
class
*
extends
android
.
app
.
Application
-
keep
public
class
*
extends
android
.
app
.
Service
-
keep
public
class
*
extends
android
.
content
.
BroadcastReceiver
-
keep
public
class
*
extends
android
.
preference
.
Preference
-
keep
public
class
*
extends
android
.
content
.
ContentProvider
-
keep
public
class
*
extends
android
.
app
.
backup
.
BackupAgentHelper
-
keep
public
class
*
extends
android
.
view
.
View
-
keep
public
class
com
.
android
.
vending
.
licensing
.
ILicensingService
# 保护注解
-
keepattributes
*
Annotation
*
-
keep
class
*
extends
java
.
lang
.
annotation
.
Annotation
{
*
;}
#support
-
keep
class
android
.
support
.
**
{
*
;}
-
dontwarn
android
.
support
.
**
-
keep
interface
android
.
support
.
**
{
*
;
}
#adnroidX
-
keep
class
androidx
.
**
{
*
;}
-
keep
interface
androidx
.
**
{
*
;}
-
keep
public
class
*
extends
androidx
.
**
-
keep
class
com
.
google
.
android
.
material
.
**
{
*
;}
-
dontwarn
androidx
.
**
-
dontwarn
com
.
google
.
android
.
material
.
**
-
dontnote
com
.
google
.
android
.
material
.
**
-
keep
public
class
*
extends
android
.
support
.
v4
.
**
-
keep
public
class
*
extends
android
.
support
.
annotation
.
**
-
keep
public
class
*
extends
android
.
view
.
View
{
***
get
*
();
void
set
*
(
***
);
public
<
init
>
(
android
.
content
.
Context
);
public
<
init
>
(
android
.
content
.
Context
,
android
.
util
.
AttributeSet
);
public
<
init
>
(
android
.
content
.
Context
,
android
.
util
.
AttributeSet
,
int
);
}
-
keep
class
**.
R
$
*
{
*
;}
-
keepclassmembers
class
*
{
void
*
(
*
Event
);
}
-
keepclassmembers
enum
*
{
public
static
**
[]
values
();
public
static
**
valueOf
(
java
.
lang
.
String
);
}
-
keepclasseswithmembernames
class
*
{
native
<
methods
>
;
}
-
keep
class
*
implements
android
.
os
.
Parcelable
{
public
static
final
android
.
os
.
Parcelable
$
Creator
*
;
}
-
keepclassmembers
class
*
implements
java
.
io
.
Serializable
{
static
final
long
serialVersionUID
;
private
static
final
java
.
io
.
ObjectStreamField
[]
serialPersistentFields
;
!
static
!
transient
<
fields
>
;
private
void
writeObject
(
java
.
io
.
ObjectOutputStream
);
private
void
readObject
(
java
.
io
.
ObjectInputStream
);
java
.
lang
.
Object
writeReplace
();
java
.
lang
.
Object
readResolve
();
}
# OkHttp
-
keep
class
com
.
squareup
.
okhttp
.
**
{
*
;
}
-
keep
interface
com
.
squareup
.
okhttp
.
**
{
*
;
}
-
dontwarn
com
.
squareup
.
okhttp
.
**
-
keep
class
okhttp3
.
**
{
*
;
}
-
dontwarn
okhttp3
.
**
-
keep
class
okhttp3
.
internal
.
**
{
*
;}
# Okio
-
keep
class
sun
.
misc
.
Unsafe
{
*
;
}
-
dontwarn
java
.
nio
.
file
.
*
-
dontwarn
org
.
codehaus
.
mojo
.
animal_sniffer
.
IgnoreJRERequirement
-
dontwarn
okio
.
**
# fastjson
-
dontwarn
com
.
alibaba
.
fastjson
.
**
-
keep
class
com
.
alibaba
.
fastjson
.
**
{
*
;
}
#Gson
-
keep
class
com
.
google
.
gson
.
**
{
*
;}
-
keep
class
com
.
google
.
**
{
*
;}
-
keep
class
sun
.
misc
.
Unsafe
{
*
;
}
-
keep
class
com
.
google
.
gson
.
stream
.
**
{
*
;
}
-
keep
class
com
.
google
.
gson
.
examples
.
android
.
model
.
**
{
*
;
}
# retrofit2
-
dontnote
retrofit
.
Platform
-
dontwarn
retrofit
.
Platform
$
Java8
-
dontwarn
org
.
w3c
.
dom
.
Node
-
keepattributes
Exceptions
-
dontwarn
retrofit2
.
**
-
dontwarn
retrofit
.
appengine
.
UrlFetchClient
-
keep
class
retrofit2
.
**
{
*
;
}
-
keepclasseswithmembers
class
*
{
@
retrofit
.
http
.
*
<
methods
>
;
}
# RxJava RxAndroid
-
dontwarn
sun
.
misc
.
**
-
keepclassmembers
class
rx
.
internal
.
util
.
unsafe
.
*
ArrayQueue
*
Field
*
{
long
producerIndex
;
long
consumerIndex
;
}
-
keepclassmembers
class
rx
.
internal
.
util
.
unsafe
.
BaseLinkedQueueProducerNodeRef
{
rx
.
internal
.
util
.
atomic
.
LinkedQueueNode
producerNode
;
}
-
keepclassmembers
class
rx
.
internal
.
util
.
unsafe
.
BaseLinkedQueueConsumerNodeRef
{
rx
.
internal
.
util
.
atomic
.
LinkedQueueNode
consumerNode
;
}
-
keep
class
java
.
beans
.
**
{
*
;
}
-
keep
class
com
.
miya
.
**
{
*
;
}
-
keep
class
com
.
fastcashier
.
**
{
*
;
}
-
keep
class
com
.
google
.
**
{
*
;
}
# 米雅jar支付
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
jar
.
bean
.
**
{
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
core
.
**
{
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
midhub
.
bean
.
**
{
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
midhub
.
sign
.
**
{
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
platform
.
bean
.
**
{
*
;
}
-
keep
class
com
.
miya
.
**
{
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
platform
.
MiYaPlatformPayService
{
public
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
midhub
.
MiYaMidHubPayService
{
public
*
;
}
-
keep
class
com
.
sdy
.
miya
.
moblie
.
component
.
pay
.
jar
.
MiYaJarPayService
{
public
*
;
}
-
keep
class
MiYaPayMobileApiClient
{
public
*
;
}
\ No newline at end of file
app/src/main/java/com/miya/fastcashier/utils/DateSelectHelper.kt
View file @
8ebcf1d9
package
com.miya.fastcashier.utils
import
android.app.Activity
import
android.content.Context
import
android.graphics.Color
import
android.view.View
import
android.view.ViewGroup
import
androidx.core.content.res.ResourcesCompat
import
com.bigkoo.pickerview.builder.TimePickerBuilder
import
com.bigkoo.pickerview.listener.OnTimeSelectListener
import
com.bigkoo.pickerview.view.TimePickerView
import
com.miya.fastcashier.R
import
java.util.*
class
DateSelectHelper
(
val
act
:
Activity
,
val
callback
:
(
Date
)
->
Unit
)
{
...
...
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