ottomated / flutter_snapchat Goto Github PK
View Code? Open in Web Editor NEWInterface with the Snapchat developer kit
License: Other
Interface with the Snapchat developer kit
License: Other
When I run
Future<void> snapLogin() async {
var snapchat = SnapchatPlugin();
await snapchat.init();
SnapchatUser user = await snapchat.login();
print("Logged in: " + user.displayName);
}
I get this as an error then the app crashes
E/AndroidRuntime( 834): FATAL EXCEPTION: OkHttp Dispatcher
E/AndroidRuntime( 834): Process: com.company.app, PID: 834
E/AndroidRuntime( 834): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime( 834): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
E/AndroidRuntime( 834): at com.google.gson.Gson.fromJson(Gson.java:927)
E/AndroidRuntime( 834): at com.google.gson.Gson.fromJson(Gson.java:865)
E/AndroidRuntime( 834): at com.snapchat.kit.sdk.core.networking.e.intercept(SourceFile:85)
E/AndroidRuntime( 834): at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
E/AndroidRuntime( 834): at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
E/AndroidRuntime( 834): at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
E/AndroidRuntime( 834): at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
E/AndroidRuntime( 834): at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
E/AndroidRuntime( 834): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime( 834): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime( 834): at java.lang.Thread.run(Thread.java:919)
E/AndroidRuntime( 834): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime( 834): at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
E/AndroidRuntime( 834): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
E/AndroidRuntime( 834): ... 11 more
E/AndroidRuntime( 834): FATAL EXCEPTION: OkHttp Dispatcher
E/AndroidRuntime( 834): Process: com.company.app, PID: 834
E/AndroidRuntime( 834): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime( 834): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
E/AndroidRuntime( 834): at com.google.gson.Gson.fromJson(Gson.java:927)
E/AndroidRuntime( 834): at com.google.gson.Gson.fromJson(Gson.java:865)
E/AndroidRuntime( 834): at com.snapchat.kit.sdk.core.networking.e.intercept(SourceFile:85)
E/AndroidRuntime( 834): at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
E/AndroidRuntime( 834): at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
E/AndroidRuntime( 834): at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
E/AndroidRuntime( 834): at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
E/AndroidRuntime( 834): at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
E/AndroidRuntime( 834): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime( 834): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime( 834): at java.lang.Thread.run(Thread.java:919)
E/AndroidRuntime( 834): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime( 834): at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
E/AndroidRuntime( 834): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
E/AndroidRuntime( 834): ... 11 more
I/Process ( 834): Sending signal. PID: 834 SIG: 9
It would be helpful for first-timers for a more detailed guide. For example, the min SDK version isn't mentioned. So it would be helpful to have such things fixed and have a few steps on how to update the minSdkVersion property.
Hey, I was just wondering if there is any status update on the iOS support progress?
As the title suggests, every time I compile my app, I get this error
C:\Users\jnbra\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\snapchat-0.0.2\android\src\main\java\net\ottomated\snapchat\FileProvider.java:3: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {
^
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':snapchat:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for 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
BUILD FAILED in 26s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1
Does the Snapchat plugin support AndroidX? Any help with fixing this is much appreciated.
First off, thank you so much for implementing this it saved me big time for Android.
I want to help out with the iOS integration, but wanted to just check in with your progress on iOS before I jump in and start working on it.
Thanks!
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.