From 4f6aa980b4884f976c8758588f8d9745ab478383 Mon Sep 17 00:00:00 2001 From: Tom Bayley Date: Mon, 23 Sep 2019 22:59:09 +0100 Subject: [PATCH] update readme and examples to use v1.2.0 release --- README.md | 2 +- app/build.gradle | 3 +- .../dropdowntipslistexample/DropDownItems.kt | 43 ------------------- build.gradle | 2 +- 4 files changed, 4 insertions(+), 46 deletions(-) delete mode 100644 app/src/main/java/com/tombayley/dropdowntipslistexample/DropDownItems.kt diff --git a/README.md b/README.md index f13dd2f..3d16b11 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ allprojects { And add the library to your module build.gradle: ``` dependencies { - implementation 'com.github.tombayley:DropDownTipsList:1.0.0' + implementation 'com.github.tombayley:DropDownTipsList:1.2.0' } ``` diff --git a/app/build.gradle b/app/build.gradle index 1a36b04..cca4696 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,7 +25,8 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation project(':dropdowntipslist') + implementation 'com.github.tombayley:DropDownTipsList:1.2.0' + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.1.0' diff --git a/app/src/main/java/com/tombayley/dropdowntipslistexample/DropDownItems.kt b/app/src/main/java/com/tombayley/dropdowntipslistexample/DropDownItems.kt deleted file mode 100644 index d8c10b4..0000000 --- a/app/src/main/java/com/tombayley/dropdowntipslistexample/DropDownItems.kt +++ /dev/null @@ -1,43 +0,0 @@ -package com.tombayley.dropdowntipslistexample - -import com.tombayley.dropdowntipslist.DropDownList -import java.util.* - -class DropDownItems { - - companion object { - fun getItems(APP_INSTALL_TIME: Long): LinkedList { - val dropDownListItems = LinkedList() - var item: DropDownList.Item - - item = DropDownList.Item( - title = "title", - description = "desc", - actionText = "action", - action = Runnable { } - ) - item.setAppearAfter(APP_INSTALL_TIME, 0, "drop_list_gestures_cust_handle") - dropDownListItems.add(item) - - item = DropDownList.Item( - title = "title", - description = "desc", - actionText = "action", - action = Runnable { } - ) - item.setAppearAfter(APP_INSTALL_TIME, 12, "drop_list_qs_tile_toggle_service") - dropDownListItems.add(item) - - item = DropDownList.Item( - title = "title", - description = "desc" - ) - item.setAppearAfter(APP_INSTALL_TIME, 0, "drop_list_open_from_shortcut") - dropDownListItems.add(item) - - return dropDownListItems - } - - } - -} diff --git a/build.gradle b/build.gradle index f729556..19bcbb5 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ allprojects { repositories { google() jcenter() - + maven { url 'https://jitpack.io' } } }