Skip to content

Commit e6afc01

Browse files
Create debug-db-base
1 parent d09e97c commit e6afc01

Some content is hidden

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

52 files changed

+240
-134
lines changed

debug-db-base/build.gradle

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
*
3+
* * Copyright (C) 2019 Amit Shekhar
4+
* * Copyright (C) 2011 Android Open Source Project
5+
* *
6+
* * Licensed under the Apache License, Version 2.0 (the "License");
7+
* * you may not use this file except in compliance with the License.
8+
* * You may obtain a copy of the License at
9+
* *
10+
* * http://www.apache.org/licenses/LICENSE-2.0
11+
* *
12+
* * Unless required by applicable law or agreed to in writing, software
13+
* * distributed under the License is distributed on an "AS IS" BASIS,
14+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* * See the License for the specific language governing permissions and
16+
* * limitations under the License.
17+
*
18+
*/
19+
20+
apply plugin: 'com.android.library'
21+
22+
android {
23+
compileSdkVersion 28
24+
defaultConfig {
25+
minSdkVersion 14
26+
targetSdkVersion 28
27+
versionCode 1
28+
versionName "1.0"
29+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
30+
resValue("string", "PORT_NUMBER", "8080")
31+
}
32+
buildTypes {
33+
release {
34+
minifyEnabled false
35+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
36+
}
37+
}
38+
}
39+
40+
dependencies {
41+
implementation 'com.google.code.gson:gson:2.8.5'
42+
implementation 'net.zetetic:android-database-sqlcipher:3.5.9'
43+
implementation 'android.arch.persistence.room:runtime:1.1.1'
44+
implementation 'com.android.support:appcompat-v7:28.0.0'
45+
testImplementation 'junit:junit:4.12'
46+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
47+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
48+
}
49+
50+
//apply from: 'debug-db-upload.gradle'
File renamed without changes.

debug-db-base/proguard-rules.pro

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
-renamesourcefileattribute SourceFile
22+
23+
-keepparameternames
24+
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,EnclosingMethod
25+
26+
# Preserve all annotations.
27+
28+
-keepattributes *Annotation*
29+
30+
# Preserve all public classes, and their public and protected fields and
31+
# methods.
32+
33+
-keep public class * {
34+
public protected *;
35+
}
36+
37+
# Preserve all .class method names.
38+
39+
-keepclassmembernames class * {
40+
java.lang.Class class$(java.lang.String);
41+
java.lang.Class class$(java.lang.String, boolean);
42+
}
43+
44+
# Preserve all native method names and the names of their classes.
45+
46+
-keepclasseswithmembernames class * {
47+
native <methods>;
48+
}
49+
50+
# Preserve the special static methods that are required in all enumeration
51+
# classes.
52+
53+
-keepclassmembers class * extends java.lang.Enum {
54+
public static **[] values();
55+
public static ** valueOf(java.lang.String);
56+
}
57+
58+
# Explicitly preserve all serialization members. The Serializable interface
59+
# is only a marker interface, so it wouldn't save them.
60+
# You can comment this out if your library doesn't use serialization.
61+
# If your code contains serializable classes that have to be backward
62+
# compatible, please refer to the manual.
63+
64+
-keepclassmembers class * implements java.io.Serializable {
65+
static final long serialVersionUID;
66+
static final java.io.ObjectStreamField[] serialPersistentFields;
67+
private void writeObject(java.io.ObjectOutputStream);
68+
private void readObject(java.io.ObjectInputStream);
69+
java.lang.Object writeReplace();
70+
java.lang.Object readResolve();
71+
}
72+
73+
# Your library may contain more items that need to be preserved;
74+
# typically classes that are dynamically created using Class.forName:
75+
76+
# -keep public class mypackage.MyClass
77+
# -keep public interface mypackage.MyInterface
78+
# -keep public class * implements mypackage.MyInterface
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
~ /*
3+
~ * Copyright (C) 2019 Amit Shekhar
4+
~ * Copyright (C) 2011 Android Open Source Project
5+
~ *
6+
~ * Licensed under the Apache License, Version 2.0 (the "License");
7+
~ * you may not use this file except in compliance with the License.
8+
~ * You may obtain a copy of the License at
9+
~ *
10+
~ * http://www.apache.org/licenses/LICENSE-2.0
11+
~ *
12+
~ * Unless required by applicable law or agreed to in writing, software
13+
~ * distributed under the License is distributed on an "AS IS" BASIS,
14+
~ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ * See the License for the specific language governing permissions and
16+
~ * limitations under the License.
17+
~ */
18+
-->
19+
20+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
21+
package="com.amitshekhar">
22+
23+
<uses-permission android:name="android.permission.INTERNET" />
24+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
25+
26+
</manifest>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)