Comments (13)
I guess it is related to some pro guard rules. @plateaukao Can you look at it when you have time?
from flutter_line_sdk.
May be It concerned with scope of 'openid' ( json web token )
When I run line sign in with no scope, It works well.
But when I run line sign in with scope ["profile", "openid", "email"], turns out error like above.
However I applied openid in line developer.
So I don't know how to solve this problem ..
(This case also release mode, debug mode works well everything.)
from flutter_line_sdk.
Hi, @JunjaK
The fix is under review now. #11
Hope the pull request can fix the proguard issue in release version.
from flutter_line_sdk.
Thanks for your help.
I'll check if new version of line sdk is released on pub.dev.
from flutter_line_sdk.
Version 1.2.3 was released for this issue. Thank you for reporting!
from flutter_line_sdk.
Thanks!!
It works well.
But there is still something to ask,
There is difference between debug mode data and release mode data (result of line social login)
In debug mode, the result data of line social login is same as this repository's doc.
But in release mode, the result data of line social login is something different.
(This issue also applies to previous versions. 1.2.1(I only tested this version))
Example is like this.
{
b:
{
access_token: raw string of access token(private),
expires_in: 2592000000,
id_token:
{
"a": raw string of id token(private),
"b": "https://access.line.me",
"c": some token(private),
"d": audience(private) ,
"e":"Dec 26, 2019 4:18:50 AM",
"f":"Dec 26, 2019 3:18:50 AM",
"h": some token(private),
"i":["lineautologin"],
"j":"윤준현(じゅん jun)",
"k": profile url(private)
"m" : email string(private)
},
}
c: "profile openid"
}
Some '(private)' texts are string that leaks my information. so I can't paste it here.
Anyway, in release mode, I can't access result.userprofile, result.acesstoken. I can only access data above in debug mode.
This is just report of the result.
It really works well after update 1.2.3 version.
I just want report data differences between release mode and debug mode
from flutter_line_sdk.
I think this should be finally fixed in 1.2.4.
from flutter_line_sdk.
What happened actually?
After I Updated line sdk 1.2.4, I got error.
These are errors when I run code 'flutter build appbundle' same as release mode.
In debug mode, Everything is okay.
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\AccessToken.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\AccessToken.kt: (9, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\BotFriendshipStatus.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\BotFriendshipStatus.kt: (6, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\Error.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\Error.kt: (6, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\LoginResultForFlutter.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\LoginResultForFlutter.kt: (8, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\UserProfile.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\UserProfile.kt: (6, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\VerifyAccessTokenResult.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\VerifyAccessTokenResult.kt: (6, 2): Unresolved reference: Keep
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_line_sdk:compileReleaseKotlin'.
> 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
BUILD FAILED in 1m 0s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 61.5s
Gradle task assembleRelease failed with exit code 1
Your Environment
use line sdk 1.2.4
In debug mode : android sdk 28 (pixel2, 3)
In release mode : andorid 9.0 Galaxy s10e(SM-G970N
from flutter_line_sdk.
@JunjaK do you use AndroidX for your flutter android project?
Currently, line-sdk-android and also flutter_line_sdk still uses android support library instead of AndroidX library.
Could you let me know your flutter development environment?
I tried to migrate the plugin to androidx library.
Could you help to try out this pull request? #13
from flutter_line_sdk.
@plateaukao
Okay.
What exactly should I do to complete pull request #13 ?
I am using AndroidX in my flutter project and
the result of flutter doctor is this
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.18363.535], locale ko-KR)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
and
my pubspec.ymal is this
name: nuwbies_event
description: A new Flutter project.
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_line_sdk: ^1.2.4
dev_dependencies:
flutter_test:
sdk: flutter
module:
androidX: true
Is there anything else I need to tell you?
Because I'm newbie of flutter, so I don't know much of flutter.
from flutter_line_sdk.
Plus, There is something to correct.
The same error occurs in debug mode.
The error details are as follows.
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\AccessToken.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\AccessToken.kt: (9, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\BotFriendshipStatus.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\BotFriendshipStatus.kt: (6, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\Error.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\Error.kt: (6, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\LoginResultForFlutter.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\LoginResultForFlutter.kt: (8, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\UserProfile.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\UserProfile.kt: (6, 2): Unresolved reference: Keep
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\VerifyAccessTokenResult.kt: (3, 24): Unresolved reference: annotation
e: C:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_line_sdk-1.2.4\android\src\main\kotlin\com\linecorp\flutter_line_sdk\model\VerifyAccessTokenResult.kt: (6, 2): Unresolved reference: Keep
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_line_sdk:compileDebugKotlin'.
> 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
BUILD FAILED in 28s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Environment is
Window10
emulator - android SDK28 pixel3 / use androidX
flutter version : flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.18363.535],
from flutter_line_sdk.
I updated a new pull request to remove the failed fix, and still tried to fix the wrong idToken json data in pull request #15.
If possible, please help to fetch pull request #15 , and modify your pubspec.yaml
to something similar to following snippet, and try to build your flutter app in release mode again.
...
dependencies:
flutter:
sdk: flutter
#flutter_line_sdk: ^1.2.4
dev_dependencies:
flutter_test:
sdk: flutter
flutter_line_sdk:
path: ../ # <-- change to where you put the flutter_line_sdk project locally
...
from flutter_line_sdk.
It works well both in release mode and in debug mode
Thanks.
The Line login data in release mode also same as in debug mode.
My Environment
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.18363.535], locale ko-KR)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (1 available)
In debug mode : android sdk 28 (pixel3)
In release mode : andorid 9.0 Galaxy s10e(SM-G970N
from flutter_line_sdk.
Related Issues (20)
- How to get email when using api for retrieving and verifying tokens? HOT 1
- Execution failed for task ':flutter_line_sdk:compileDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). HOT 5
- flutter line sdk-1.3.0 'flutter line sdk/flutter line sdk-Swift.h' file not found HOT 3
- How can I get line_id of my account when I logged in with Line Login? HOT 1
- flutter_line_sdk iOS 10.0 or later as the deployment target HOT 3
- APK compilation failed due to conflict with inappwebview HOT 6
- Could not resolve all dependencies for configuration HOT 2
- [iOS] Signing for "LineSDKSwift-LineSDK" requires a development team HOT 2
- Duplicate class androidx.lifecycle.ViewModelLazy error when just adding the library to pubspec.yaml HOT 2
- Cannot resolve Android's dependency HOT 4
- The pubspec.lock should not be contained in this repo HOT 1
- Android Studio emulator can't open the login page HOT 4
- 403 forbidden HOT 5
- [iOS] Login line account auto switch from line app to line web HOT 9
- INTERNAL_ERROR, OpenId issuedAt is after current time: Thu Dec 21 15:07:50 GMT+07:00 2023, HOT 1
- [Feature] get phone number from app login HOT 2
- Could not find androidx.lifecycle:lifecycle-extensions:2.5.0.
- Want minSdkVersion to revert to 21 HOT 1
- Cancel / OK Button Event HOT 3
- Execution failed for task ':flutter_line_sdk:compileDebugKotlin'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_line_sdk.