antoniolg / bandhook-kotlin Goto Github PK
View Code? Open in Web Editor NEWA showcase music app for Android entirely written using Kotlin language
License: Apache License 2.0
A showcase music app for Android entirely written using Kotlin language
License: Apache License 2.0
One way to handle it is #16
Hi thank you for sharing this awesome project.
Right now when I download and try to launch using the Android Studio 3.0 Canary version, I get the following error:
Error:Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'.
Possible causes for this unexpected error include:
Dagger 2 is supposed to be working on Kotlin, so it´s a good idea to try and move DI to that direction. Reasons:
I'm trying to build this via ./gradlew clean build and I'm getting following error :
`Download https://dl.google.com/dl/android/maven2/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.7/gson-2.7.jar
Download https://jcenter.bintray.com/org/jetbrains/anko/anko-sdk15/0.10.4/anko-sdk15-0.10.4.jar
Download https://jcenter.bintray.com/org/jetbrains/anko/anko-design/0.10.4/anko-design-0.10.4.jar
Download https://dl.google.com/dl/android/maven2/android/arch/lifecycle/common/1.0.3/common-1.0.3.jar
e: /Users/plasta/Desktop/Bandhook-Kotlin-master/app/src/main/java/com/antonioleiva/bandhookkotlin/di/DataModule.kt: (28, 100): Unresolved reference: last_fm_api_key
FAILURE: Build failed with an exception.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 2m 27s
`
Hi!
This isn't a issue, but it's more like some doubt.
The Interactor pattern is quite simular to the Command pattern, just returning some Event instead of being void and didn't support undo like we saw in design pattern books. In this case, it is wrong to create a second method to call if we have a presenter with 2 or more calls - e.g creating some action in DetailsActivity - to Interactors?
In bandhook the Thread Executor is from Path, which I cannot see working with RxJava. Those executors can be used with RxJava (I tried to accomplish that but without success)? I'm thinking to create some structure that the Interactor will return an Observable instead of some Event (I use this in normal Java development, but not Kotlin until now). If you think that this can be useful, I can made a PR to the project with this second approach.
Just a tip: after M11 Kotlin will run fine on src/main/java
, so you don't really need to add kotlin to main.java.srcDirs
http://blog.jetbrains.com/kotlin/2015/03/kotlin-m11-is-out/
You can close the issue after viewing the comment hehe
I had added dependency as follow:
compile "org.jetbrains.anko:anko-sdk15:$ankoVersion"
compile "org.jetbrains.anko:anko-support-v4:$ankoVersion"
now the ankoVersion is 0.8
but "org.jetbrains.anko.find" still can't found
Can you help me? Thank you very much!
Hi, I got the error when build this project:
Error:(21, 0) Plugin [id: 'com.android.application'] was not found in any of the following sources:
what should I do?
AndroidTestCase
and ActivityInstrumentationTestCase2
come from old and deprecated Android platform testing API.
May we consider to migrate current UI tests to Espresso 3.0?
After pressing back button in the top bar activity is relaunched.
When using system back button the experience is much nicer.
val createdView = albumsFragment.onCreateView(layoutInflater, null, null)
// Then assertNotNull(albumsFragment.adapter)
is failing as the container is null, if we mock the container it will fail as it will search for the context.
Allow Search functionality:
import com.antonioleiva.bandhookkotlin.di.DaggerApplicationComponent can not be resolved with Android Studio 3.0
An artist will show related artists, and a click will navigate to their detail.
Find a wait of preventing repetitive clicks while the activity transitions is being performed
In gitignore there is an instruction:
# Api key
app/src/main/res/values/api_key.xml
I believe the readme should tell about it and ask to store api key there rather than in the config.xml file
Get an API account (currently unavailable)......er,failed to get an api key...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.