how does one add error handling on a listview?
this doesn't seem to work :s
w[ListView]
<~
new BackendConnector()
.getJars
.map(UserListable.listAdapterTweak)
.recover {
case _: JsonParseError | _: BackendException =>
toast("Service unavailable, try again later") <~ long <~ fry
UserListable.listAdapterTweak(Nil)
case _: NoInternet =>
toast("Turn internet on and try again") <~ long <~ fry
UserListable.listAdapterTweak(Nil)
}
<~ CustomTweaks.List.noHighlighting + ListTweaks.noDivider
macroid.extras
was still outside of macroid, there were tweaks like vMargin
which do the same thing, but don't exist anymore in the main macroid repo.
Hello. I'm new to macroid.
I've created a PoC which is just the macroid-starter
example with a few updates:
I'm using macroid 2.0.0-M5.
It works fine in the emulator, which is good. But IntelliJ complains that it cannot find several classes. This is a bit inconvenient because I cannot easily study the sources in deep detail.
Is that only me or IntelliJ is not really able to find the classes for some reason?
Thanks
Hello, any idea why SBT cannot find macroid 2.1.0 ?
[info] Resolving org.macroid#macroid-viewable_2.11;2.1.0 ...
[warn] module not found: org.macroid#macroid-viewable_2.11;2.1.0
[warn] ==== local: tried
[warn] /home/rgomes/.ivy2/local/org.macroid/macroid-viewable_2.11/2.1.0/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[warn] ==== local-preloaded-ivy: tried
[warn] /home/rgomes/.sbt/preloaded/org.macroid/macroid-viewable_2.11/2.1.0/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn] file:////home/rgomes/.sbt/preloaded/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[warn] ==== google libraries: tried
[warn] file:/home/rgomes/tools/sdk-tools-linux-4333796/extras/google/m2repository/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[warn] ==== android libraries: tried
[warn] file:/home/rgomes/tools/sdk-tools-linux-4333796/extras/android/m2repository/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[warn] ==== sonatype-releases: tried
[warn] https://oss.sonatype.org/content/repositories/releases/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[warn] ==== jcenter: tried
[warn] http://jcenter.bintray.com/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[warn] ==== Sonatype OSS Releasess: tried
[warn] https://oss.sonatype.org/content/repositories/releases/org/macroid/macroid-viewable_2.11/2.1.0/macroid-viewable_2.11-2.1.0.pom
[info] Resolving jline#jline;2.14.3 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.macroid#macroid_2.11;2.1.0: not found
[warn] :: org.macroid#macroid-viewable_2.11;2.1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
This is my build.sbt:
import android.Keys._
import android.Dependencies.{LibraryDependency, aar}
enablePlugins(AndroidApp)
platformTarget in Android := "android-22"
name := "example"
scalaVersion := "2.11.12"
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
"jcenter" at "http://jcenter.bintray.com",
"Sonatype OSS Releasess" at "https://oss.sonatype.org/content/repositories/releases"
)
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
scalacOptions ++= Seq("-feature", "-deprecation", "-target:jvm-1.7")
libraryDependencies ++= Seq(
aar("org.macroid" %% "macroid" % "2.1.0"),
aar("org.macroid" %% "macroid-viewable" % "2.1.0"),
aar("com.android.support" % "support-v4" % "24.0.0")
)
proguardScala in Android := true
proguardOptions in Android ++= Seq(
"-ignorewarnings",
"-keep class scala.Dynamic"
)
Hey guys,
I came across this hack challenge for enhancing Android libraries. I thought of sharing it with you all. It has a cash prize of up to 10 lakh rupees.
I submitted my idea. You guys can also participate.
macroid.extras
was still outside of macroid, there were tweaks like vMargin
which do the same thing, but don't exist anymore in the main macroid repo. https://www.myallsaversconnect.org/
This article is really amazing. Thanks for the sharing.
This article is really amazing. Thanks for the sharing.