Skip to content

Commit f12694f

Browse files
committed
init
0 parents  commit f12694f

Some content is hidden

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

53 files changed

+1649
-0
lines changed

.gitignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Built application files
2+
#*.apk
3+
*.ap_
4+
*.aab
5+
6+
# Files for the ART/Dalvik VM
7+
*.dex
8+
9+
# Java class files
10+
*.class
11+
12+
# Generated files
13+
bin/
14+
gen/
15+
out/
16+
17+
# Gradle files
18+
.gradle/
19+
build/
20+
21+
# Local configuration file (sdk path, etc)
22+
local.properties
23+
24+
# Proguard folder generated by Eclipse
25+
proguard/
26+
27+
# Log Files
28+
*.log
29+
30+
# Android Studio Navigation editor temp files
31+
.navigation/
32+
33+
# Android Studio captures folder
34+
captures/
35+
36+
# IntelliJ
37+
*.iml
38+
.idea
39+
.idea/workspace.xml
40+
.idea/tasks.xml
41+
.idea/gradle.xml
42+
.idea/assetWizardSettings.xml
43+
.idea/dictionaries
44+
.idea/libraries
45+
.idea/caches
46+
.idea/modules.xml
47+
.idea/caches/build_file_checksums.ser
48+
.idea/encodings.xml
49+
.idea/vcs.xml
50+
.idea/misc.xml
51+
.idea/codeStyles
52+
53+
# Keystore files
54+
# Uncomment the following lines if you do not want to check your keystore files in.
55+
#*.jks
56+
#*.keystore
57+
58+
# External native build folder generated in Android Studio 2.2 and later
59+
.externalNativeBuild
60+
61+
# Google Services (e.g. APIs or Firebase)
62+
# google-services.json
63+
64+
# Freeline
65+
freeline.py
66+
freeline/
67+
freeline_project_description.json
68+
69+
# fastlane
70+
fastlane/report.xml
71+
fastlane/Preview.html
72+
fastlane/screenshots
73+
fastlane/test_output
74+
fastlane/readme.md
75+
76+
# Version control
77+
vcs.xml
78+
79+
# lint
80+
lint/intermediates/
81+
lint/generated/
82+
lint/outputs/
83+
lint/tmp/
84+
# lint/reports/
85+
86+
.DS_Store

SwipeMenuLayout/.gitignore

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

SwipeMenuLayout/build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'kotlin-android'
4+
}
5+
6+
android {
7+
compileSdkVersion 30
8+
buildToolsVersion "30.0.3"
9+
10+
defaultConfig {
11+
minSdkVersion 21
12+
targetSdkVersion 30
13+
versionCode 1
14+
versionName "1.0"
15+
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
consumerProguardFiles "consumer-rules.pro"
18+
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_1_8
28+
targetCompatibility JavaVersion.VERSION_1_8
29+
}
30+
kotlinOptions {
31+
jvmTarget = '1.8'
32+
}
33+
}
34+
35+
dependencies {
36+
testImplementation 'junit:junit:4.+'
37+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
38+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
39+
40+
//Kotlin
41+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
42+
43+
//Android
44+
implementation 'androidx.core:core-ktx:1.3.2'
45+
implementation 'androidx.appcompat:appcompat:1.2.0'
46+
implementation 'com.google.android.material:material:1.2.1'
47+
48+
49+
}

SwipeMenuLayout/consumer-rules.pro

Whitespace-only changes.

SwipeMenuLayout/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
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
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.benjaminwan.swipemenulayout
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.benjaminwan.swipemenulayout.test", appContext.packageName)
23+
}
24+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.benjaminwan.swipemenulayout">
4+
5+
</manifest>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.benjaminwan.swipemenulayout
2+
3+
import org.junit.Test
4+
5+
import org.junit.Assert.*
6+
7+
/**
8+
* Example local unit test, which will execute on the development machine (host).
9+
*
10+
* See [testing documentation](http://d.android.com/tools/testing).
11+
*/
12+
class ExampleUnitTest {
13+
@Test
14+
fun addition_isCorrect() {
15+
assertEquals(4, 2 + 2)
16+
}
17+
}

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: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
id 'kotlin-android-extensions'
5+
id 'kotlin-kapt'
6+
}
7+
8+
android {
9+
compileSdkVersion 30
10+
buildToolsVersion "30.0.3"
11+
12+
defaultConfig {
13+
applicationId "com.benjaminwan.epoxyswipedemo"
14+
minSdkVersion 21
15+
targetSdkVersion 30
16+
versionCode 1
17+
versionName "1.0"
18+
19+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
}
21+
22+
buildTypes {
23+
release {
24+
minifyEnabled false
25+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
26+
}
27+
}
28+
compileOptions {
29+
sourceCompatibility JavaVersion.VERSION_1_8
30+
targetCompatibility JavaVersion.VERSION_1_8
31+
}
32+
kotlinOptions {
33+
jvmTarget = '1.8'
34+
}
35+
}
36+
37+
dependencies {
38+
testImplementation 'junit:junit:4.+'
39+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
40+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
41+
42+
//Kotlin
43+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
44+
45+
//Android
46+
implementation 'androidx.core:core-ktx:1.3.2'
47+
implementation 'androidx.appcompat:appcompat:1.2.0'
48+
implementation 'com.google.android.material:material:1.2.1'
49+
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
50+
51+
//Logger
52+
implementation 'com.orhanobut:logger:2.2.0'
53+
54+
//Epoxy
55+
def epoxy_version = "4.4.1"
56+
implementation "com.airbnb.android:epoxy:$epoxy_version"
57+
kapt "com.airbnb.android:epoxy-processor:$epoxy_version"
58+
59+
//Mavericks
60+
implementation 'com.airbnb.android:mavericks:2.1.0'
61+
62+
//Navigation
63+
def navigation_version = "2.3.1"
64+
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
65+
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
66+
}

0 commit comments

Comments
 (0)