Skip to content

Commit fb9f59d

Browse files
author
Serkan
committed
first commit
0 parents  commit fb9f59d

File tree

145 files changed

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

145 files changed

+5003
-0
lines changed

.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

.idea/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

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

.idea/gradle.xml

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

.idea/misc.xml

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

.idea/runConfigurations.xml

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

.idea/vcs.xml

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

WaaperHD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit a2bb171f16d9d24db345ec5d7ec20ee80e719706

app/.gitignore

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

app/build.gradle

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
5+
6+
apply plugin: "kotlin-kapt"
7+
apply from: '../dependencies.gradle'
8+
9+
android {
10+
compileSdkVersion core_common_dependencies.androidCompileSdkVersion
11+
buildToolsVersion "29.0.2"
12+
13+
defaultConfig {
14+
applicationId "com.basefy.basefyandroidcore"
15+
minSdkVersion core_common_dependencies.androidMinSdkVersion
16+
targetSdkVersion core_common_dependencies.androidTargetSdkVersion
17+
versionCode 1
18+
versionName "1.0"
19+
20+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21+
}
22+
23+
viewBinding {
24+
enabled = true
25+
}
26+
27+
28+
buildTypes {
29+
buildTypes {
30+
release {
31+
minifyEnabled false
32+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
33+
34+
}
35+
development {
36+
debuggable true
37+
38+
}
39+
40+
}
41+
}
42+
43+
productFlavors {
44+
flavorDimensions "version"
45+
beta {
46+
}
47+
prod {
48+
}
49+
}
50+
51+
}
52+
53+
dependencies {
54+
implementation fileTree(dir: 'libs', include: ['*.jar'])
55+
56+
57+
58+
implementation app_dependencies.kotlin
59+
implementation app_dependencies.appCompat
60+
implementation app_dependencies.retrofit
61+
implementation app_dependencies.retrofitGsonConverter
62+
implementation app_dependencies.retrofitRxJavaAdapter
63+
implementation app_dependencies.rxJava
64+
implementation app_dependencies.rxAndroid
65+
implementation app_dependencies.dagger2
66+
kapt app_dependencies.dagger2Compiler
67+
kapt app_dependencies.dagger2Processor
68+
implementation app_dependencies.dagger2Android
69+
implementation app_dependencies.dagger2Support
70+
implementation app_dependencies.constraintlayout
71+
implementation app_dependencies.cardView
72+
implementation app_dependencies.recylerView
73+
74+
api project(':core_network')
75+
api project(':core_local')
76+
api project(':core_utility')
77+
api project(':base_mvp')
78+
}

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,24 @@
1+
package com.hsmnzaydn.waaperhd
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("com.hsmnzaydn.waaperhd", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.hsmnzaydn.waaperhd">
4+
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
7+
8+
<application
9+
android:name=".WaaperHDApp"
10+
android:allowBackup="true"
11+
android:icon="@mipmap/ic_launcher"
12+
android:label="@string/app_name"
13+
android:roundIcon="@mipmap/ic_launcher_round"
14+
android:supportsRtl="true"
15+
android:theme="@style/AppTheme"
16+
android:usesCleartextTraffic="true">
17+
<activity android:name=".ui.home.HomeActivity">
18+
<intent-filter>
19+
<action android:name="android.intent.action.MAIN" />
20+
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
</activity>
24+
</application>
25+
26+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.hsmnzaydn.waaperhd
2+
3+
import androidx.appcompat.app.AppCompatActivity
4+
import android.os.Bundle
5+
6+
class MainActivity : AppCompatActivity() {
7+
8+
override fun onCreate(savedInstanceState: Bundle?) {
9+
super.onCreate(savedInstanceState)
10+
setContentView(R.layout.activity_main)
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.hsmnzaydn.waaperhd
2+
3+
4+
5+
import com.hsmnzaydn.waaperhd.di.components.DaggerApplicationComponent
6+
import dagger.android.AndroidInjector
7+
import dagger.android.DaggerApplication
8+
9+
10+
class WaaperHDApp : DaggerApplication() {
11+
12+
private val appComponent: AndroidInjector<WaaperHDApp> by lazy {
13+
DaggerApplicationComponent
14+
.builder()
15+
.create(this)
16+
}
17+
18+
override fun applicationInjector(): AndroidInjector<out DaggerApplication> {
19+
return appComponent
20+
}
21+
22+
23+
}

0 commit comments

Comments
 (0)