Skip to content

Commit 45cdc44

Browse files
committed
First commit
Signed-off-by: Vishal Rana <[email protected]>
0 parents  commit 45cdc44

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

+826
-0
lines changed

Diff for: .gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

Diff for: .idea/compiler.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/copyright/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/gradle.xml

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/markdown-navigator/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/misc.xml

+33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/runConfigurations.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

Diff for: app/build.gradle

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 26
5+
buildToolsVersion "26.0.0"
6+
defaultConfig {
7+
applicationId "com.labstack"
8+
minSdkVersion 21
9+
targetSdkVersion 26
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
implementation fileTree(dir: 'libs', include: ['*.jar'])
24+
implementation 'com.android.support:appcompat-v7:26.0.0'
25+
testImplementation 'junit:junit:4.12'
26+
androidTestImplementation 'com.android.support.test:runner:1.0.0'
27+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.0'
28+
}

Diff for: app/proguard-rules.pro

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/vr/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.labstack;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumented test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.labstack", appContext.getPackageName());
25+
}
26+
}

Diff for: app/src/main/AndroidManifest.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.labstack">
3+
4+
<application
5+
android:allowBackup="true"
6+
android:icon="@mipmap/ic_launcher"
7+
android:label="@string/app_name"
8+
android:roundIcon="@mipmap/ic_launcher_round"
9+
android:supportsRtl="true"
10+
android:theme="@style/AppTheme" />
11+
</manifest>

Diff for: app/src/main/res/drawable/ic_launcher_background.xml

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:width="24dp"
4+
android:height="24dp"
5+
android:viewportHeight="108.0"
6+
android:viewportWidth="108.0">
7+
<path
8+
android:fillColor="#26A69A"
9+
android:pathData="M0,0h108v108h-108z"
10+
android:strokeColor="#66FFFFFF"
11+
android:strokeWidth="0.8" />
12+
<path
13+
android:fillColor="#00000000"
14+
android:pathData="M19,0L19,108"
15+
android:strokeColor="#33FFFFFF"
16+
android:strokeWidth="0.8" />
17+
<path
18+
android:fillColor="#00000000"
19+
android:pathData="M9,0L9,108"
20+
android:strokeColor="#66FFFFFF"
21+
android:strokeWidth="0.8" />
22+
<path
23+
android:fillColor="#00000000"
24+
android:pathData="M39,0L39,108"
25+
android:strokeColor="#66FFFFFF"
26+
android:strokeWidth="0.8" />
27+
<path
28+
android:fillColor="#00000000"
29+
android:pathData="M29,0L29,108"
30+
android:strokeColor="#66FFFFFF"
31+
android:strokeWidth="0.8" />
32+
<path
33+
android:fillColor="#00000000"
34+
android:pathData="M59,0L59,108"
35+
android:strokeColor="#66FFFFFF"
36+
android:strokeWidth="0.8" />
37+
<path
38+
android:fillColor="#00000000"
39+
android:pathData="M49,0L49,108"
40+
android:strokeColor="#66FFFFFF"
41+
android:strokeWidth="0.8" />
42+
<path
43+
android:fillColor="#00000000"
44+
android:pathData="M79,0L79,108"
45+
android:strokeColor="#66FFFFFF"
46+
android:strokeWidth="0.8" />
47+
<path
48+
android:fillColor="#00000000"
49+
android:pathData="M69,0L69,108"
50+
android:strokeColor="#66FFFFFF"
51+
android:strokeWidth="0.8" />
52+
<path
53+
android:fillColor="#00000000"
54+
android:pathData="M89,0L89,108"
55+
android:strokeColor="#33FFFFFF"
56+
android:strokeWidth="0.8" />
57+
<path
58+
android:fillColor="#00000000"
59+
android:pathData="M99,0L99,108"
60+
android:strokeColor="#66FFFFFF"
61+
android:strokeWidth="0.8" />
62+
<path
63+
android:fillColor="#00000000"
64+
android:pathData="M0,89L108,89"
65+
android:strokeColor="#33FFFFFF"
66+
android:strokeWidth="0.8" />
67+
<path
68+
android:fillColor="#00000000"
69+
android:pathData="M0,99L108,99"
70+
android:strokeColor="#66FFFFFF"
71+
android:strokeWidth="0.8" />
72+
<path
73+
android:fillColor="#00000000"
74+
android:pathData="M0,69L108,69"
75+
android:strokeColor="#66FFFFFF"
76+
android:strokeWidth="0.8" />
77+
<path
78+
android:fillColor="#00000000"
79+
android:pathData="M0,79L108,79"
80+
android:strokeColor="#66FFFFFF"
81+
android:strokeWidth="0.8" />
82+
<path
83+
android:fillColor="#00000000"
84+
android:pathData="M0,49L108,49"
85+
android:strokeColor="#66FFFFFF"
86+
android:strokeWidth="0.8" />
87+
<path
88+
android:fillColor="#00000000"
89+
android:pathData="M0,59L108,59"
90+
android:strokeColor="#66FFFFFF"
91+
android:strokeWidth="0.8" />
92+
<path
93+
android:fillColor="#00000000"
94+
android:pathData="M0,29L108,29"
95+
android:strokeColor="#66FFFFFF"
96+
android:strokeWidth="0.8" />
97+
<path
98+
android:fillColor="#00000000"
99+
android:pathData="M0,39L108,39"
100+
android:strokeColor="#66FFFFFF"
101+
android:strokeWidth="0.8" />
102+
<path
103+
android:fillColor="#00000000"
104+
android:pathData="M0,19L108,19"
105+
android:strokeColor="#33FFFFFF"
106+
android:strokeWidth="0.8" />
107+
<path
108+
android:fillColor="#00000000"
109+
android:pathData="M0,9L108,9"
110+
android:strokeColor="#66FFFFFF"
111+
android:strokeWidth="0.8" />
112+
</vector>
113+

Diff for: app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
5+
</adaptive-icon>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background" />
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
5+
</adaptive-icon>

Diff for: app/src/main/res/mipmap-hdpi/ic_launcher.png

3.28 KB
Loading
5 KB
Loading

Diff for: app/src/main/res/mipmap-hdpi/ic_launcher_round.png

4.96 KB
Loading

Diff for: app/src/main/res/mipmap-mdpi/ic_launcher.png

2.33 KB
Loading
2.59 KB
Loading

Diff for: app/src/main/res/mipmap-mdpi/ic_launcher_round.png

3.1 KB
Loading

Diff for: app/src/main/res/mipmap-xhdpi/ic_launcher.png

4.54 KB
Loading
6.85 KB
Loading

Diff for: app/src/main/res/mipmap-xhdpi/ic_launcher_round.png

7.21 KB
Loading

Diff for: app/src/main/res/mipmap-xxhdpi/ic_launcher.png

6.84 KB
Loading
14.2 KB
Loading

Diff for: app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png

11.3 KB
Loading

Diff for: app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

9.22 KB
Loading
21.4 KB
Loading
15.7 KB
Loading

Diff for: app/src/main/res/values/colors.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="colorPrimary">#3F51B5</color>
4+
<color name="colorPrimaryDark">#303F9F</color>
5+
<color name="colorAccent">#FF4081</color>
6+
</resources>

Diff for: app/src/main/res/values/strings.xml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="app_name">app</string>
3+
</resources>

Diff for: app/src/main/res/values/styles.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<resources>
2+
3+
<!-- Base application theme. -->
4+
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
5+
<!-- Customize your theme here. -->
6+
<item name="colorPrimary">@color/colorPrimary</item>
7+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
8+
<item name="colorAccent">@color/colorAccent</item>
9+
</style>
10+
11+
</resources>

Diff for: app/src/test/java/com/labstack/ExampleUnitTest.java

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.labstack;
2+
3+
import org.junit.Test;
4+
5+
import static org.junit.Assert.*;
6+
7+
/**
8+
* Example local unit test, which will execute on the development machine (host).
9+
*
10+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
11+
*/
12+
public class ExampleUnitTest {
13+
@Test
14+
public void addition_isCorrect() throws Exception {
15+
assertEquals(4, 2 + 2);
16+
}
17+
}

0 commit comments

Comments
 (0)