Skip to content

Commit cfd3d13

Browse files
author
nitinprakash
committed
Adding library code initial
1 parent a1182e0 commit cfd3d13

Some content is hidden

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

50 files changed

+1667
-0
lines changed

.gitignore

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
*.iml
2+
/.idea/caches
3+
/.idea/libraries
4+
/.idea/modules.xml
5+
/.idea/workspace.xml
6+
/.idea/navEditor.xml
7+
/.idea/assetWizardSettings.xml
8+
.DS_Store
9+
.DS_Store?
10+
/build
11+
/captures
12+
.externalNativeBuild
13+
.cxx
14+
15+
16+
### Android ###
17+
# Built application files
18+
*.apk
19+
*.ap_
20+
*.aab
21+
22+
# Files for the ART/Dalvik VM
23+
*.dex
24+
25+
# Java class files
26+
*.class
27+
28+
# Generated files
29+
bin/
30+
gen/
31+
out/
32+
33+
# Gradle files
34+
.gradle/
35+
build/
36+
37+
# Local configuration file (sdk path, etc)
38+
/local.properties
39+
40+
41+
# Proguard folder generated by Eclipse
42+
proguard/
43+
44+
# Log Files
45+
*.log
46+
47+
# Android Studio Navigation editor temp files
48+
.navigation/
49+
50+
# Android Studio captures folder
51+
captures/
52+
53+
# Intellij
54+
.idea/workspace.xml
55+
.idea/libraries
56+
57+
# Keystore files
58+
*.jks
59+
60+
61+
### Android Patch ###
62+
gen-external-apklibs
63+
64+
65+
### Intellij+iml ###
66+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
67+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
68+
69+
# User-specific stuff:
70+
.idea/tasks.xml
71+
72+
# Sensitive or high-churn files:
73+
.idea/dataSources.ids
74+
.idea/dataSources.xml
75+
.idea/dataSources.local.xml
76+
.idea/sqlDataSources.xml
77+
.idea/dynamic.xml
78+
.idea/uiDesigner.xml
79+
80+
# Gradle:
81+
.idea/gradle.xml
82+
83+
# Mongo Explorer plugin:
84+
.idea/mongoSettings.xml
85+
86+
## File-based project format:
87+
*.iws
88+
89+
## Plugin-specific files:
90+
91+
# IntelliJ
92+
/out/
93+
94+
# mpeltonen/sbt-idea plugin
95+
.idea_modules/
96+
97+
# JIRA plugin
98+
atlassian-ide-plugin.xml
99+
100+
# Crashlytics plugin (for Android Studio and IntelliJ)
101+
com_crashlytics_export_strings.xml
102+
crashlytics.properties
103+
crashlytics-build.properties
104+
fabric.properties
105+
106+
### Intellij+iml Patch ###
107+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
108+
109+
modules.xml
110+
.idea/misc.xml
111+
*.ipr
112+
113+
114+
### Gradle ###
115+
/build/
116+
117+
# Ignore Gradle GUI config
118+
gradle-app.setting
119+
120+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
121+
!gradle-wrapper.jar
122+
123+
# Cache of project
124+
.gradletasknamecache
125+
126+
# Version control
127+
vcs.xml
128+
129+
# lint
130+
lint/intermediates/
131+
lint/generated/
132+
lint/outputs/
133+
lint/tmp/
134+
lint/reports/
135+
136+
137+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
138+
# gradle/wrapper/gradle-wrapper.properties

.idea/codeStyles/Project.xml

Lines changed: 122 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

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

app/build.gradle

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'kotlin-kapt'
5+
6+
7+
android {
8+
compileSdkVersion 29
9+
buildToolsVersion "29.0.3"
10+
11+
defaultConfig {
12+
applicationId "in.nitin.sample"
13+
minSdkVersion 16
14+
targetSdkVersion 29
15+
versionCode 1
16+
versionName "1.0"
17+
18+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19+
}
20+
21+
buildTypes {
22+
release {
23+
minifyEnabled true
24+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25+
}
26+
}
27+
dataBinding.enabled = true
28+
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_1_8
31+
targetCompatibility JavaVersion.VERSION_1_8
32+
}
33+
kotlinOptions {
34+
jvmTarget = "1.8"
35+
}
36+
37+
38+
}
39+
40+
dependencies {
41+
implementation fileTree(dir: 'libs', include: ['*.jar'])
42+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
43+
implementation 'androidx.appcompat:appcompat:1.1.0'
44+
implementation 'androidx.core:core-ktx:1.2.0'
45+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
46+
testImplementation 'junit:junit:4.12'
47+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
48+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
49+
implementation project(':library')
50+
51+
}

app/proguard-rules.pro

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package `in`.nitin.sample
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("in.nitin.sample", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)