Skip to content

Commit

Permalink
kakao moved to module
Browse files Browse the repository at this point in the history
  • Loading branch information
eakurnikov committed Mar 15, 2019
1 parent 6018f56 commit e9e28cb
Show file tree
Hide file tree
Showing 141 changed files with 371 additions and 276 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ext.versions = [

kotlin : "1.3.21",
androidPlugin : "3.2.1",
androidSupport: "28.0.0",
androidSupport: "27.1.1",
junit : "4.12",
retrofit : "2.5.0",
runner : "1.0.2",
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ org.gradle.jvmargs=-Xmx1536m
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

systemProp.org.gradle.internal.http.connectionTimeout=120000
systemProp.org.gradle.internal.http.socketTimeout=120000

pInternalRepositoryUrl= = http://mobile.avp.ru:8081/repository/internal/
34 changes: 34 additions & 0 deletions kakao/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

apply from: 'dependencies.gradle'

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 2
versionName kakao.version

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
main.res.srcDirs += 'src/main/res'
}
}
}

repositories {
jcenter()
google()
}

dependencies {
implementation libraries.kotlin_stdlib
implementation libraries.design
implementation libraries.espresso_core
implementation libraries.espresso_web
implementation libraries.espresso_intents
implementation libraries.espresso_contrib
}
48 changes: 48 additions & 0 deletions kakao/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
ext.versions = [
kotlin : '1.3.21',
dokka : '0.9.17',
android_gradle : '3.3.1',
bintray : '1.7.3',
maven : '1.5',
oss : '4.5.4',
androidSupport : "27.1.1",
espresso : '3.0.2',
espresso_rules : '1.0.2',
espresso_runner: '1.0.2',
junit : '4.12'
]

ext.libraries = [
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
kotlin_stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
dokka : "org.jetbrains.dokka:dokka-android-gradle-plugin:$versions.dokka",
android_gradle : "com.android.tools.build:gradle:$versions.android_gradle",
bintray : "com.jfrog.bintray.gradle:gradle-bintray-plugin:$versions.bintray",
maven : "com.github.dcendents:android-maven-gradle-plugin:$versions.maven",
oss : "org.jfrog.buildinfo:build-info-extractor-gradle:$versions.oss",
design : "com.android.support:design:$versions.androidSupport",
espresso_runner : "com.android.support.test:runner:$versions.espresso_runner",
espresso_rules : "com.android.support.test:rules:$versions.espresso_rules",
espresso_core : "com.android.support.test.espresso:espresso-core:$versions.espresso",
espresso_web : "com.android.support.test.espresso:espresso-web:$versions.espresso",
espresso_contrib: "com.android.support.test.espresso:espresso-contrib:$versions.espresso",
espresso_intents: "com.android.support.test.espresso:espresso-intents:$versions.espresso",
junit : "junit:junit:$versions.junit"
]

def alias = System.getenv('BINTRAY_ALIAS')

if (alias == null) {
alias = ''
}

ext.kakao = [
group : 'com.agoda.kakao',
artifact : 'kakao',
name : 'kakao',
description : 'Kotlin based DSL for fluent AT with Espresso',
version : "2.0.0$alias",
version_desc: "Kakao 2.0.0$alias",
site : 'https://github.com/agoda-com/Kakao',
github : 'https://github.com/agoda-com/Kakao.git'
]
4 changes: 4 additions & 0 deletions kakao/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.agoda.kakao">
<application />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.bottomnav

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.check

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.text.TextViewAssertions
import org.hamcrest.Matcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import android.view.MotionEvent
import android.view.View
import android.support.test.espresso.ViewAction
import android.support.test.espresso.action.*
import com.agoda.kakao.delegates.ViewInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.delegates.ViewInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import android.support.test.espresso.Root
import android.support.test.espresso.ViewAssertion
import android.support.test.espresso.assertion.ViewAssertions
import android.support.test.espresso.matcher.ViewMatchers
import com.agoda.kakao.delegates.ViewInteractionDelegate
import com.agoda.kakao.common.builders.RootBuilder
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.matchers.BackgroundColorMatcher
import com.agoda.kakao.delegates.ViewInteractionDelegate
import org.hamcrest.Matcher
import org.hamcrest.Matchers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import android.support.annotation.DrawableRes
import android.support.annotation.StringRes
import android.support.test.espresso.Espresso
import android.support.test.espresso.matcher.ViewMatchers
import com.agoda.kakao.delegates.ViewInteractionDelegate
import com.agoda.kakao.common.KakaoDslMarker
import com.agoda.kakao.common.matchers.*
import com.agoda.kakao.configurator.KakaoConfigurator
import com.agoda.kakao.delegates.ViewInteractionDelegate
import org.hamcrest.CoreMatchers
import org.hamcrest.Matcher
import org.hamcrest.Matchers
Expand Down Expand Up @@ -234,7 +234,7 @@ class ViewBuilder {
fun withRating(rating: Float) {
viewMatchers.add(RatingBarMatcher(rating))
}

/**
* Matches the view with given drawable
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import android.view.View
import android.support.test.espresso.Root
import android.support.test.espresso.assertion.ViewAssertions
import android.support.test.espresso.matcher.RootMatchers
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.delegates.ViewInteractionDelegate
import com.agoda.kakao.common.KakaoDslMarker
import com.agoda.kakao.common.actions.BaseActions
import com.agoda.kakao.common.assertions.BaseAssertions
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.delegates.ViewInteractionDelegate
import org.hamcrest.Matcher
import org.hamcrest.Matchers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.common.views

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.actions.SwipeableActions
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package com.agoda.kakao.common.views

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.agoda.kakao.delegates

import android.view.View
import android.support.annotation.CheckResult
import android.support.test.espresso.DataInteraction
import android.support.test.espresso.ViewAssertion
import android.view.View
import org.hamcrest.Matcher
import javax.annotation.CheckReturnValue

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.agoda.kakao.delegates

import android.support.test.espresso.*
import android.view.View
import android.support.test.espresso.NoMatchingViewException
import android.support.test.espresso.Root
import android.support.test.espresso.ViewAction
import android.support.test.espresso.ViewAssertion
import org.hamcrest.Matcher

interface ViewInteractionDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.support.annotation.CheckResult
import android.support.test.espresso.web.assertion.WebAssertion
import android.support.test.espresso.web.model.Atom
import android.support.test.espresso.web.model.ElementReference
import android.support.test.espresso.web.sugar.Web
import org.hamcrest.Matcher
import javax.annotation.CheckReturnValue

Expand All @@ -17,8 +16,8 @@ interface WebInteractionDelegate {
fun perform(webAction: Atom<*>): WebInteractionDelegate

fun <E> check(
webAssertion: WebAssertion<E>,
atom: Atom<E>,
matcher: Matcher<E>
webAssertion: WebAssertion<E>,
atom: Atom<E>,
matcher: Matcher<E>
): WebInteractionDelegate
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.agoda.kakao.delegates.impl

import android.view.View
import android.support.test.espresso.DataInteraction
import android.support.test.espresso.ViewAssertion
import android.view.View
import com.agoda.kakao.configurator.KakaoConfigurator
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.delegates.ViewInteractionDelegate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.agoda.kakao.delegates.impl

import android.support.test.espresso.*
import android.view.View
import android.support.test.espresso.*
import com.agoda.kakao.delegates.ViewInteractionDelegate
import org.hamcrest.Matcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class WebInteractionDelegateEmptyImpl internal constructor(
}

override fun <E> check(
webAssertion: WebAssertion<E>,
atom: Atom<E>,
matcher: Matcher<E>
webAssertion: WebAssertion<E>,
atom: Atom<E>,
matcher: Matcher<E>
): WebInteractionDelegate {
return KakaoConfigurator.createWebInteractionDelegate(
webInteraction.check(webAssertion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.drawer

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.edit

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package com.agoda.kakao.edit

import android.support.design.widget.TextInputEditText
import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.image

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package com.agoda.kakao.list

import android.support.test.espresso.assertion.ViewAssertions
import android.support.test.espresso.matcher.RootMatchers
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.KakaoDslMarker
import com.agoda.kakao.common.actions.BaseActions
import com.agoda.kakao.common.assertions.BaseAssertions
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matchers

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

package com.agoda.kakao.list

import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.KakaoDslMarker
import com.agoda.kakao.delegates.DataInteractionDelegate
import kotlin.reflect.KClass

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import android.view.View
import android.support.test.espresso.Espresso
import android.support.test.espresso.Root
import android.support.test.espresso.matcher.RootMatchers
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.delegates.ViewInteractionDelegate
import com.agoda.kakao.common.KakaoDslMarker
import com.agoda.kakao.common.assertions.BaseAssertions
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.configurator.KakaoConfigurator
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.delegates.ViewInteractionDelegate
import org.hamcrest.Matcher
import org.hamcrest.Matchers
import kotlin.reflect.KClass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
package com.agoda.kakao.navigation

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
package com.agoda.kakao.pager

import android.view.View
import com.agoda.kakao.delegates.DataInteractionDelegate
import com.agoda.kakao.common.actions.SwipeableActions
import com.agoda.kakao.common.builders.ViewBuilder
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.delegates.DataInteractionDelegate
import org.hamcrest.Matcher

/**
Expand Down
Loading

0 comments on commit e9e28cb

Please sign in to comment.