Skip to content

Commit 5e873ae

Browse files
committed
Setup of the Project :
Dependencies maintained with help of buildSrc Kotlin.
0 parents  commit 5e873ae

File tree

117 files changed

+1048
-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.

117 files changed

+1048
-0
lines changed

Diff for: .gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx

Diff for: .idea/.name

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

Diff for: .idea/codeStyles/Project.xml

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

Diff for: .idea/codeStyles/codeStyleConfig.xml

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

Diff for: .idea/gradle.xml

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

Diff for: .idea/kotlinScripting.xml

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

Diff for: .idea/misc.xml

+14
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: .idea/vcs.xml

+6
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

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
apply plugin: 'com.android.application'
2+
3+
apply plugin: 'kotlin-android'
4+
5+
apply plugin: 'kotlin-android-extensions'
6+
7+
apply plugin: 'kotlin-kapt'
8+
9+
android {
10+
compileSdkVersion Versions.COMPILE_SDK
11+
buildToolsVersion Versions.BUILD_TOOLS_VERSION
12+
defaultConfig {
13+
applicationId "com.droidplusplus.nasapicturesapp"
14+
minSdkVersion Versions.MIN_SDK
15+
targetSdkVersion Versions.TARGET_SDK
16+
versionCode Versions.VERSION_CODE
17+
versionName Versions.VERSION_NAME
18+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19+
}
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
dataBinding {
27+
enabled = true
28+
}
29+
30+
compileOptions {
31+
sourceCompatibility = Versions.JAVA_COMPILE_VERSION
32+
targetCompatibility = Versions.JAVA_COMPILE_VERSION
33+
}
34+
35+
kotlinOptions {
36+
jvmTarget = JavaVersion.VERSION_1_8.toString()
37+
}
38+
}
39+
40+
dependencies {
41+
implementation fileTree(dir: 'libs', include: ['*.jar'])
42+
43+
//Support Libraries
44+
implementation Deps.KOTLIN_STDLIB
45+
implementation Deps.APP_COMPAT
46+
implementation Deps.CORE_KTX
47+
implementation Deps.CONSTRAINT_LAYOUT
48+
49+
//Material Design
50+
implementation Deps.MATERIAL_DESIGN
51+
52+
//Testing
53+
testImplementation Deps.JUNIT
54+
androidTestImplementation Deps.JUNIT_EXT
55+
androidTestImplementation Deps.ESPRESSO_CORE
56+
57+
//Arch Components
58+
//LiveData and Viewmodel
59+
implementation Deps.VIEWMODEL_KTX
60+
implementation Deps.LIVEDATA_KTX
61+
//Room
62+
implementation Deps.ROOM
63+
implementation Deps.ROOM_KTX
64+
kapt Deps.ROOM_COMPILER
65+
66+
//Shimmer Layout
67+
implementation Deps.SHIMMER_LAYOUT
68+
69+
//Coroutines
70+
implementation Deps.COROUTINES
71+
implementation Deps.COROUTINES_ANDROID
72+
73+
//GLIDE : IMAGE LOADING LIBRARY
74+
implementation Deps.GLIDE_IMAGE_LIB
75+
kapt Deps.GLIDE_COMPILER
76+
77+
}

Diff for: app/proguard-rules.pro

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

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

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.droidplusplus.nasapicturesapp">
5+
6+
<application
7+
android:allowBackup="true"
8+
android:icon="@mipmap/ic_launcher"
9+
android:label="@string/app_name"
10+
android:roundIcon="@mipmap/ic_launcher_round"
11+
android:supportsRtl="true"
12+
android:theme="@style/AppTheme"
13+
tools:ignore="GoogleAppIndexingWarning">
14+
<activity android:name=".MainActivity">
15+
<intent-filter>
16+
<action android:name="android.intent.action.MAIN" />
17+
18+
<category android:name="android.intent.category.LAUNCHER" />
19+
</intent-filter>
20+
</activity>
21+
</application>
22+
23+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.droidplusplus.nasapicturesapp
2+
3+
import android.os.Bundle
4+
import androidx.appcompat.app.AppCompatActivity
5+
6+
class MainActivity : AppCompatActivity() {
7+
8+
override fun onCreate(savedInstanceState: Bundle?) {
9+
super.onCreate(savedInstanceState)
10+
setContentView(R.layout.activity_main)
11+
}
12+
}

0 commit comments

Comments
 (0)