Skip to content

Commit 6e43d5f

Browse files
enwokomaMarcusjnrgigabytedevelopersinc
committed
Fixed FireFiles build issues
Co-Authored-By: Okocha Ebube <[email protected]> Co-Authored-By: Gigabyte Developers Incorporated <[email protected]>
1 parent 769de91 commit 6e43d5f

File tree

1,685 files changed

+179021
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,685 files changed

+179021
-0
lines changed

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# built application files
2+
#*.apk
3+
*.ap_
4+
5+
# files for the dex VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Ignored by AndroidStudio
17+
*.iws
18+
*.iml
19+
20+
# Folders related to builds and Gradle
21+
.gradle/
22+
build/
23+
24+
# Local settings (regenerated by Android Studio)
25+
.idea/
26+
local.properties
27+
demo/apk/
28+
29+
# Local configuration file (sdk path, etc)
30+
local.properties
31+
keystore.properties

FireFilesFdroid/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

FireFilesFdroid/build.gradle

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'io.fabric'
3+
4+
android {
5+
compileSdkVersion 27
6+
buildToolsVersion '27.0.3'
7+
8+
applicationVariants.all { variant ->
9+
variant.outputs.all {
10+
outputFileName = "${parent.name}-Fdroid-${variant.name}-${variant.versionName}.apk"
11+
}
12+
}
13+
14+
defaultConfig {
15+
versionName "2.3.7"
16+
versionCode = 22
17+
minSdkVersion 21
18+
targetSdkVersion 25
19+
vectorDrawables.useSupportLibrary = true
20+
multiDexEnabled true
21+
resConfigs "en"
22+
}
23+
signingConfigs {
24+
release
25+
}
26+
buildTypes {
27+
debug {
28+
minifyEnabled true
29+
shrinkResources true
30+
useProguard true
31+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard/proguard-project.pro',
32+
'proguard/proguard-google-play-services.pro'
33+
}
34+
release {
35+
signingConfig signingConfigs.release
36+
minifyEnabled true
37+
shrinkResources true
38+
useProguard true
39+
proguardFiles getDefaultProguardFile('proguard-android.txt'),
40+
getDefaultProguardFile('proguard-android-optimize.txt'),
41+
'proguard/proguard-project.pro',
42+
'proguard/proguard-google-play-services.pro'
43+
}
44+
}
45+
46+
variantFilter { variant ->
47+
def names = variant.flavors*.name
48+
49+
if (names.contains("underground") && (names.contains("google") || names.contains("other"))) {
50+
variant.ignore = true
51+
}
52+
}
53+
packagingOptions {
54+
exclude 'META-INF/DEPENDENCIES'
55+
exclude 'META-INF/DEPENDENCIES.txt'
56+
exclude 'META-INF/LICENSE'
57+
exclude 'META-INF/LICENSE.txt'
58+
exclude 'META-INF/NOTICE'
59+
exclude 'META-INF/NOTICE.txt'
60+
exclude 'META-INF/license.txt'
61+
exclude 'META-INF/notice.txt'
62+
exclude 'META-INF/dependencies.txt'
63+
exclude 'META-INF/spring.schemas'
64+
exclude 'META-INF/spring.tooling'
65+
exclude 'META-INF/spring.handlers'
66+
exclude 'META-INF/LGPL2.1'
67+
exclude 'META-INF/ASL2.0'
68+
exclude 'META-INF/INDEX.LIST'
69+
}
70+
lintOptions {
71+
checkReleaseBuilds false
72+
abortOnError false
73+
}
74+
aaptOptions {
75+
noCompress 'apk'
76+
}
77+
}
78+
79+
ext {
80+
supportLibVersion = '27.0.2'
81+
gmsVersion = '11.8.0'
82+
}
83+
84+
dependencies {
85+
implementation fileTree(include: ['*.jar'], dir: 'libs')
86+
implementation 'com.jaredrummler:android-processes:1.1.1'
87+
implementation 'com.github.mjdev:libaums:0.5.5'
88+
implementation 'org.apache.ftpserver:ftpserver-core:1.1.1'
89+
implementation 'commons-net:commons-net:3.6'
90+
implementation 'com.cloudrail:cloudrail-si-android:2.20.0'
91+
implementation "com.android.support:appcompat-v7:${supportLibVersion}"
92+
implementation "com.android.support:cardview-v7:${supportLibVersion}"
93+
implementation "com.android.support:design:${supportLibVersion}"
94+
implementation "com.android.support:exifinterface:${supportLibVersion}"
95+
//freeImplementation "com.google.firebase:firebase-crash:${gmsVersion}"
96+
implementation ('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {
97+
transitive = true
98+
}
99+
implementation "com.google.firebase:firebase-core:${gmsVersion}"
100+
// freeImplementation "com.google.firebase:firebase-ads:${gmsVersion}"
101+
102+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.3'
103+
}
104+
105+
/* def props = new Properties()
106+
props.load(new FileInputStream(rootProject.file("keystore.properties")))
107+
android.signingConfigs.release.storeFile rootProject.file(props.keyStore)
108+
android.signingConfigs.release.storePassword props.keyStorePassword
109+
android.signingConfigs.release.keyAlias props.keyAlias
110+
android.signingConfigs.release.keyPassword props.keyAliasPassword */
111+
112+
apply plugin: 'com.google.gms.google-services'

FireFilesFdroid/libs/RootTools.jar

82.2 KB
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Google Play Services 4.3.23 specific rules ##
2+
## https://developer.android.com/google/play-services/setup.html#Proguard ##
3+
4+
-keep class * extends java.util.ListResourceBundle {
5+
protected Object[][] getContents();
6+
}
7+
8+
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
9+
public static final *** NULL;
10+
}
11+
12+
-keepnames @com.google.android.gms.common.annotation.KeepName class *
13+
-keepclassmembernames class * {
14+
@com.google.android.gms.common.annotation.KeepName *;
15+
}
16+
17+
-keepnames class * implements android.os.Parcelable {
18+
public static final ** CREATOR;
19+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}
21+
22+
## --------------- Start Project specifics --------------- ##
23+
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable
24+
-optimizationpasses 5
25+
-allowaccessmodification
26+
-dontpreverify
27+
-dontobfuscate
28+
-dontusemixedcaseclassnames
29+
-dontskipnonpubliclibraryclasses
30+
-verbose
31+
32+
-keepattributes Signature,*Annotation*,EnclosingMethod
33+
34+
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
35+
-keepclasseswithmembernames class * {
36+
native <methods>;
37+
}
38+
39+
# keep setters in Views so that animations can still work.
40+
# see http://proguard.sourceforge.net/manual/examples.html#beans
41+
-keepclassmembers public class * extends android.view.View {
42+
void set*(***);
43+
*** get*();
44+
}
45+
# We want to keep methods in Activity that could be used in the XML attribute onClick
46+
-keepclassmembers class * extends android.app.Activity {
47+
public void *(android.view.View);
48+
}
49+
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
50+
-keepclassmembers enum * {
51+
public static **[] values();
52+
public static ** valueOf(java.lang.String);
53+
}
54+
-keep class * implements android.os.Parcelable {
55+
public static final android.os.Parcelable$Creator *;
56+
}
57+
-keepclassmembers class **.R$* {
58+
public static <fields>;
59+
}
60+
61+
# Keep the BuildConfig
62+
-keep class com.gigabytedevelopersinc.app.explorer.BuildConfig { *; }
63+
64+
# Keep the support library
65+
-keep public class android.support.v7.widget.** { *; }
66+
-keep public class android.support.v7.internal.widget.** { *; }
67+
-keep public class android.support.v7.internal.view.menu.** { *; }
68+
69+
-keep public class * extends android.support.v4.view.ActionProvider {
70+
public <init>(android.content.Context);
71+
}
72+
73+
-dontwarn android.support.**
74+
75+
# Crashlytics 1.+
76+
-keep class io.fabric.** { *; }
77+
-keep class com.crashlytics.** { *; }
78+
-keep class com.crashlytics.android.**
79+
-keepattributes SourceFile,LineNumberTable
80+
81+
-keep class org.slf4j.** { *; }
82+
-keepclassmembers class * implements org.apache.mina.core.service.IoProcessor {
83+
public <init>(java.util.concurrent.ExecutorService);
84+
public <init>(java.util.concurrent.Executor);
85+
public <init>();
86+
}
87+
-dontwarn org.apache.**
88+
-dontwarn org.slf4j.**
89+
90+
# Application classes that will be serialized/deserialized over Gson
91+
# or have been blown up by ProGuard in the past
92+
93+
## ---------------- End Project specifics ---------------- ##
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.gigabytedevelopersinc.app.explorer;
2+
3+
import android.app.Application;
4+
import android.test.ApplicationTestCase;
5+
6+
/**
7+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
8+
*/
9+
public class ApplicationTest extends ApplicationTestCase<Application> {
10+
public ApplicationTest() {
11+
super(Application.class);
12+
}
13+
}

0 commit comments

Comments
 (0)