Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
789fbbb
Migrated project to Gradle 7.5.1
IODevBlue Oct 14, 2022
7e5beff
Compile SDK upgraded to Android 32
IODevBlue Oct 14, 2022
31f5d35
Migrate project to Androidx
IODevBlue Oct 15, 2022
778b8d1
Updated dependencies
IODevBlue Oct 15, 2022
64aebd7
Build error fixes
IODevBlue Oct 15, 2022
1bf968f
Enabled Jetifier
IODevBlue Oct 15, 2022
6c579ea
Dependency fixes
IODevBlue Oct 15, 2022
6fe0710
Updated FloatingSearchView class
IODevBlue Oct 15, 2022
771a01c
Updated SuggestionItemDecorator class
IODevBlue Oct 15, 2022
d4a45fc
Updated RoundRectDrawableWithShadow class
IODevBlue Oct 15, 2022
6e4e574
Updated ViewUtils class
IODevBlue Oct 15, 2022
ae6e865
Library layout fixes
IODevBlue Oct 15, 2022
7c9fdea
Layout XML fixes in sample implementation
IODevBlue Oct 16, 2022
33f8fa2
Migrate ArrayRecylerAdapter to Androidx
IODevBlue Oct 16, 2022
5cc766c
Fixed Retrofit dependencies in RetrofitModule
IODevBlue Oct 16, 2022
2db459b
Fixed Retrofit dependencies in SearchModule
IODevBlue Oct 16, 2022
2c9d16e
Updated search mechanism for sample
IODevBlue Oct 16, 2022
906668b
Updated utils package
IODevBlue Oct 16, 2022
35d8e93
Updated BaseItemAnimator
IODevBlue Oct 16, 2022
0c2b64c
Updated MainActivity syntax
IODevBlue Oct 18, 2022
a5ef63c
Migrate project to Hilt, configure Kotlin
IODevBlue Oct 18, 2022
fbe97f7
Install Hilt dependency injection
IODevBlue Oct 18, 2022
849db88
RetrofitModule.java: Fixed interceptor error
IODevBlue Oct 18, 2022
1feeca7
GoogleSearchController: added onError() in subscribing function.
IODevBlue Oct 18, 2022
f3c8d52
Initial commit for Kotlin library version
IODevBlue Oct 18, 2022
8bff85f
ViewUtils.kt: Kotlin variant
IODevBlue Oct 18, 2022
55d334c
RoundRectDrawableWithShadow.kt: Kotilin variant
IODevBlue Oct 19, 2022
41a7780
SuggestionItemDecorator.kt: Kotlin variant
IODevBlue Oct 19, 2022
f03491f
FloatingSearchView.kt: Kotlin variant
IODevBlue Oct 19, 2022
6a4f068
FloatingSearchView.kt: Finalized class
IODevBlue Oct 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
ext.hilt_version = "2.40"
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
classpath 'com.android.tools.build:gradle:7.2.0'
}
}

allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
plugins {
id 'com.android.application' version '7.2.0' apply false
id 'com.android.library' version '7.2.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
}

task clean(type: Delete) {
Expand Down
26 changes: 19 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.unsafe.configuration-cache=true
org.gragle.warning.mode=all
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Oct 21 11:34:03 PDT 2015
#Fri Oct 14 20:24:38 GMT+01:00 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
zipStoreBase=GRADLE_USER_HOME
1 change: 1 addition & 0 deletions library-ktx/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
40 changes: 40 additions & 0 deletions library-ktx/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdk 32

defaultConfig {
minSdk 21
targetSdk 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
Empty file added library-ktx/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions library-ktx/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.mypopsy.widget.internal

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.mypopsy.widget.internal.test", appContext.packageName)
}
}
5 changes: 5 additions & 0 deletions library-ktx/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mypopsy.widget.internal">

</manifest>
Loading