I have the new rxdart: ^0.26.0 version, and I know Observable got deprecated and you can use Stream instead, question is, how do I use Observable.just for the newer version?
I found it on package's changelog
Observable.just has been replaced with Stream.value
Related
I am using using firestore,auth and storage. I know all the versions of them should be same.
before:
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-firestore:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
this works fine
but now I have to use
documentReference2.update("test", FieldValue.arrayUnion(documentReference));
So I need to use the newer version of firestore. I tried changing it to 19.0.0,18.0.0,16 etc for all of them. I tried every possible way. But always gives the
error:Failed to resolve: com.google.firebase:firebase-auth:16.0.0
base:firebase-storage:16.0.0 Show in File Show in Project Structure
dialog
I'm unable to find a solution
Update the following:
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-firestore:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
into this:
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.google.firebase:firebase-firestore:19.0.0'
implementation 'com.google.firebase:firebase-storage:17.0.0'
Check the latest versions here:
https://firebase.google.com/support/release-notes/android#latest_sdk_versions
I am trying to include 'com.squareup.retrofit2.converter-gson:2.3.0' using Android Studio 3.2 Canary 5
See image below
as you can search in google, putting this worked, I hope it helps you too
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.google.code.gson:gson:2.8.4'
Solution
implementation 'com.squareup.retrofit2:converter-gson:<latest-version>'
The latest version can be found here.
Simply paste this instead :
implementation 'com.google.code.gson:gson:2.8.5'
implementation'com.squareup.retrofit2:retrofit:2.6.1'
Use (where is possible) the latest version, I had the same error but it looks like the retrofit 'com.squareup.retrofit2.converter-gson:2.3.0' version 2.3.0 is deprecated.
This works for me:
//Retrofit2
implementation 'com.squareup.retrofit2:retrofit:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
Source:
https://square.github.io/retrofit/
https://github.com/square/retrofit
it works perfectly well.
//retrofit
implementation 'com.squareup.retrofit2:retrofit:2.8.1'
implementation 'com.squareup.retrofit2:converter-gson:2.8.1'
It gives/provides the latest repo you'll need.
I am starting to use Parse and in the documentation it has examples to use the PFObject as an NSDitionary like this:
// Create the post
PFObject *myPost = [PFObject objectWithClassName:#"Post"];
myPost[#"title"] = #"I'm Hungry";
but i am getting a compiler error:
"Expected method to write dictionary element not found on object of type "PFObject"
But if I access the myPost PFObject like this, it works:
[myPost setObject:#"I'm Hungry" forKey:#"title"];
What is the problem?
I though that PFObject could be accesses as a dictionary?
thanks
I would check that you are using the latest version of the Parse SDK. This is new functionality and my guess is you haven't downloaded the SDK since this feature was introduced.
when i try your code at my side it gives me success message. I think you are using old parse library.
Thanks.
Downloading latest XCode should help. Subscript syntax is available from Xcode 4.4+
Groovy 1.7.5 claims to have both findResult and findAllResults. But when I try, it seems to have only findResult. findAllResults is not included in the groovy jdk documentation, either. Am I not reading it thoroughly?
If you read the comments in that issue, (Ted Naleid added a comment - 19/Jun/10 10:46 PM) says that findAllResults was removed as it can be easily achieved with an inject in it's place
As a follow up, this has been implemented as of Groovy 1.8.1 as findResults instead of findAllResults. It's cleaner than using inject in many situations.
The following code produces a failed test, not a passing test (as I would expect):
[Test(expects="Error")]
public function someTest():void {
throw Error("this test doesn't pass");
}
In older versions it was [Test(expected='')]
In newer versions we support both expected and expects as this was confusing for many
Make sure you're linking against the release SWC of FlexUnit, or if you're compiling it yourself, make sure you're using --keep-as3-metadata+=Test in the "additional compiler options" box in project properties.
I think the problem may have been that I was using an older version of FlexUnit4. I just upgraded (to 4.0 RC1) and it seems to be working now.