diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f47e595..e76cb53 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,13 +7,11 @@ maven-junit = "5.9.1" maven-assertj = "3.23.1" google-androidx-core = "1.9.0" google-androidx-annotation = "1.5.0" -google-gson = "2.10" google-androidtest = "1.5.0" google-androidtestRunner = "1.5.1" google-androidtestext = "1.1.4" google-espresso = "3.5.0" google-appcompat = "1.5.1" -google-material = "1.7.0" google-constraintLayout = "2.1.4" [libraries] @@ -24,14 +22,12 @@ junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "mav assertj-core = { module = "org.assertj:assertj-core", version.ref = "maven-assertj" } androidx-core = { module = "androidx.core:core", version.ref = "google-androidx-core" } androidx-annotation = { module = "androidx.annotation:annotation", version.ref = "google-androidx-annotation" } -gson = { module = "com.google.code.gson:gson", version.ref = "google-gson" } androidtest-core = { module = "androidx.test:core", version.ref = "google-androidtest" } androidtest-runner = { module = "androidx.test:runner", version.ref = "google-androidtestRunner" } androidtest-rules = { module = "androidx.test:rules", version.ref = "google-androidtest" } androidtest-junitext = { module = "androidx.test.ext:junit-ktx", version.ref = "google-androidtestext" } espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "google-espresso" } appcompat-core = { module = "androidx.appcompat:appcompat", version.ref = "google-appcompat" } -material-core = { module = "com.google.android.material:material", version.ref = "google-material" } constraintlayout-core = { module = "androidx.constraintlayout:constraintlayout", version.ref = "google-constraintLayout" } [plugins] diff --git a/sample/build.gradle b/sample/build.gradle index df41cf6..ff3bede 100755 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -7,9 +7,13 @@ android { defaultConfig { applicationId "io.github.usefulness.shimmer.sample" } + buildFeatures { + viewBinding = true + } } dependencies { implementation("io.github.usefulness:shimmer-android-core") + implementation(libs.appcompat.core) implementation(libs.constraintlayout.core) } diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index f78920d..8268baa 100755 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -3,14 +3,14 @@ xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/sample/src/main/java/com/facebook/shimmer/sample/MainActivity.kt b/sample/src/main/java/com/facebook/shimmer/sample/MainActivity.kt deleted file mode 100644 index 4c9da69..0000000 --- a/sample/src/main/java/com/facebook/shimmer/sample/MainActivity.kt +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.shimmer.sample - -import android.animation.ValueAnimator -import android.app.Activity -import android.os.Bundle -import android.view.View -import android.widget.Button -import android.widget.Toast -import com.facebook.shimmer.Shimmer -import com.facebook.shimmer.ShimmerFrameLayout -import io.github.usefulness.shimmer.sample.R - -class MainActivity : Activity(), View.OnClickListener { - private lateinit var shimmerViewContainer: ShimmerFrameLayout - private lateinit var presetButtons: Array