Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ClashForAndroid
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
ClashForAndroid
Commits
8ae7ccbf
There was an error fetching the commit references. Please try again later.
Commit
8ae7ccbf
authored
3 years ago
by
kr328
Browse files
Options
Downloads
Patches
Plain Diff
Chore: add coroutine-android proguard rules
parent
5a222959
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/proguard-rules.pro
+26
-0
26 additions, 0 deletions
app/proguard-rules.pro
with
26 additions
and
0 deletions
app/proguard-rules.pro
+
26
−
0
View file @
8ae7ccbf
...
...
@@ -31,3 +31,29 @@
public
static
void
checkParameterIsNotNull
(...);
public
static
void
checkNotNullParameter
(...);
}
#
Kotlin
Coroutine
#
Allow
R8
to
optimize
away
the
FastServiceLoader
.
#
Together
with
ServiceLoader
optimization
in
R8
#
this
results
in
direct
instantiation
when
loading
Dispatchers
.
Main
-
assumenosideeffects
class
kotlinx
.
coroutines
.
internal
.
MainDispatcherLoader
{
boolean
FAST_SERVICE_LOADER_ENABLED
return
false
;
}
-
assumenosideeffects
class
kotlinx
.
coroutines
.
internal
.
FastServiceLoaderKt
{
boolean
ANDROID_DETECTED
return
true
;
}
-
keep
class
kotlinx
.
coroutines
.
android
.
AndroidDispatcherFactory
{
*
;}
#
Disable
support
for
"Missing Main Dispatcher"
,
since
we
always
have
Android
main
dispatcher
-
assumenosideeffects
class
kotlinx
.
coroutines
.
internal
.
MainDispatchersKt
{
boolean
SUPPORT_MISSING
return
false
;
}
#
Statically
turn
off
all
debugging
facilities
and
assertions
-
assumenosideeffects
class
kotlinx
.
coroutines
.
DebugKt
{
boolean
getASSERTIONS_ENABLED
()
return
false
;
boolean
getDEBUG
()
return
false
;
boolean
getRECOVER_STACK_TRACES
()
return
false
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment