Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
d340d697
Unverified
Commit
d340d697
authored
9 years ago
by
Ernir Erlingsson
Browse files
Options
Downloads
Patches
Plain Diff
added proguard and cleaned dependencies
parent
86a81478
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-android/build.gradle
+32
-5
32 additions, 5 deletions
briar-android/build.gradle
briar-android/proguard-rules.txt
+47
-0
47 additions, 0 deletions
briar-android/proguard-rules.txt
with
79 additions
and
5 deletions
briar-android/build.gradle
+
32
−
5
View file @
d340d697
...
...
@@ -6,14 +6,29 @@ repositories {
}
dependencies
{
def
supportVersion
=
'23.1.1'
compile
project
(
':briar-api'
)
compile
project
(
':briar-core'
)
compile
fileTree
(
dir:
'libs'
,
include:
'*.jar'
)
compile
"com.android.support:support-v4:23.1.1"
compile
"com.android.support:appcompat-v7:23.1.1"
compile
"com.android.support:preference-v7:23.1.1"
compile
"com.android.support:preference-v14:23.1.1"
compile
"com.android.support:design:23.1.1"
compile
fileTree
(
dir:
'libs'
,
include:
'*.jar'
)
compile
"com.android.support:support-v4:$supportVersion"
compile
(
"com.android.support:appcompat-v7:$supportVersion"
)
{
exclude
module:
'support-v4'
}
compile
(
"com.android.support:preference-v7:$supportVersion"
)
{
exclude
module:
'support-v4'
}
compile
(
"com.android.support:preference-v14:$supportVersion"
)
{
exclude
module:
'support-v4'
exclude
module:
'preference-v7'
exclude
module:
'recyclerview-v7'
}
compile
(
"com.android.support:design:$supportVersion"
)
{
exclude
module:
'support-v4'
exclude
module:
'recyclerview-v7'
}
compile
"org.roboguice:roboguice:2.0"
compile
"info.guardianproject.panic:panic:0.5"
compile
"info.guardianproject.trustedintents:trustedintents:0.2"
...
...
@@ -62,6 +77,18 @@ android {
debug
.
setRoot
(
'build-types/debug'
)
release
.
setRoot
(
'build-types/release'
)
}
buildTypes
{
debug
{
minifyEnabled
true
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.txt'
}
release
{
minifyEnabled
true
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.txt'
}
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_6
targetCompatibility
JavaVersion
.
VERSION_1_6
...
...
This diff is collapsed.
Click to expand it.
briar-android/proguard-rules.txt
0 → 100644
+
47
−
0
View file @
d340d697
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-ignorewarnings
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable,*Annotation*,Signature
-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.content.ContentProvider
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembers class * { native <methods>; }
-keepclasseswithmembers class * {
public <init> (android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init> (android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * implements android.os.Parcelable { static android.os.Parcelable$Creator *; }
-keepclassmembers class **.R$* { public static <fields>; }
-keepclasseswithmembernames class * { native <methods>; }
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers class * {
@com.google.inject.Inject <init>(...);
@com.google.inject.Inject <fields>;
}
# Just in case Roboguice events are used
-keepclassmembers class * {
void *(**On*Event);
}
-keep class org.briarproject.** { *; }
-keep class com.google.inject.** { *; }
-keep class javax.inject.** { *; }
-keep class javax.annotation.** { *; }
-keep class roboguice.** { *; }
\ 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