Giter VIP home page Giter VIP logo

flutter_line_sdk's Introduction

flutter_line_sdk

build

A Flutter plugin that lets developers access LINE's native SDKs in Flutter apps with Dart.

The plugin helps you integrate LINE Login features in your app. You can redirect users to LINE or a web page where they log in with their LINE credentials. Example:

import 'package:flutter_line_sdk/flutter_line_sdk.dart';

void login() async {
    try {
        final result = await LineSDK.instance.login();
        setState(() {
            _userProfile = result.userProfile;
            // user id -> result.userProfile?.userId
            // user name -> result.userProfile?.displayName
            // user avatar -> result.userProfile?.pictureUrl
            // etc...
        });
    } on PlatformException catch (e) {
        // Error handling.
        print(e);
    }
}

For more examples, see the example app and API definitions.

Prerequisites

From version 2.0, flutter_line_sdk supports null safety. If you are still seeking a legacy version without null safety, check version 1.3.0.

To access your LINE Login channel from a mobile platform, you need some extra configuration. In the LINE Developers console, go to your LINE Login channel settings, and enter the below information on the App settings tab.

iOS app settings

Setting Description
iOS bundle ID Required. Bundle identifier of your app. In Xcode, find it in your Runner project settings, on the General tab. Must be lowercase, like com.example.app. You can specify multiple bundle identifiers by typing each one on a new line.
iOS universal link Optional. Set to the universal link configured for your app. For more information on how to handle the login process using a universal link, see Universal Links support.

Android app settings

Setting Description
Android package name Required. Application's package name used to launch the Google Play store.
Android package signature Optional. You can set multiple signatures by typing each one on a new line.
Android scheme Optional. Custom URL scheme used to launch your app.

Installation

Adding flutter_line_sdk package

Use the standard way of adding this package to your Flutter app, as described in the Flutter documentation. The process consists of these steps:

  1. Open the pubspec.yaml file in your app folder and, under dependencies, add flutter_line_sdk:.
  2. Install it by running this in a terminal: flutter pub get

Now, the Dart part of flutter_line_sdk should be installed. Next, you need to set up LINE SDK for iOS and Android projects, respectively.

Set up LINE SDK

iOS

Open the file ios/Runner/Info.plist in a text editor and insert this snippet just before the last </dict> tag:

<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleTypeRole</key>
    <string>Editor</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <!-- Specify URL scheme to use when returning from LINE to your app. -->
      <string>line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    </array>
  </dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
  <!-- Specify URL scheme to use when launching LINE from your app. -->
  <string>lineauth2</string>
</array>

Because LINE SDK now requires iOS 13.0 or above to provide underlying native features, you must add this line in the Runner target in ios/Podfile:

target 'Runner' do
+ platform :ios, '13.0'

  use_frameworks!
  use_modular_headers!
  ...

Android

To ensure compatibility with the latest features, you need to update the minSdk version in your app's build.gradle file to 24 or higher.

Here's how you can do it:

  1. Open your app's build.gradle file.
  2. Locate the android block, and within it, find the defaultConfig block.
  3. In the defaultConfig block, replace the current minSdk value with 24.

Here's a diff to show what your changes might look like:

android {
    defaultConfig {
-        minSdk flutter.minSdkVersion
+        minSdk 24
    }
}

Importing and using

Setup

Import flutter_line_sdk to any place you want to use it in your project:

import 'package:flutter_line_sdk/flutter_line_sdk.dart';

To use the package, you need to set up your channel ID. You can do this by calling the setup method, for example in the main function:

- void main() => runApp(MyApp());
+ void main() {
+   WidgetsFlutterBinding.ensureInitialized();
+   LineSDK.instance.setup("${your_channel_id}").then((_) {
+     print("LineSDK Prepared");
+   });
+   runApp(App());
+ }

This is merely an example. You can call setup any time you want, provided you call it exactly once, before calling any other LINE SDK methods.

To help you get started with this package, we list several basic usage examples below. All available flutter_line_sdk methods are documented on the Dart Packages site.

Login

Now you are ready to let your user log in with LINE.

Get the login result by assigning the value of Future<LoginResult> to a variable. To handle errors gracefully, wrap the invocation in a try...on statement:

void _signIn() async {
  try {
    final result = await LineSDK.instance.login();
    // user id -> result.userProfile?.userId
    // user name -> result.userProfile?.displayName
    // user avatar -> result.userProfile?.pictureUrl
  } on PlatformException catch (e) {
    _showDialog(context, e.toString());
  }
}

By default, login uses ["profile"] as its scope. In this case, when login is done, you have a userProfile value in login result. If you need other scopes, pass them in a list to login. See the Scopes documentation for more.

final result = await LineSDK.instance.login(
    scopes: ["profile", "openid", "email"]
);
// user email, if user set it in LINE and granted your request.
final userEmail = result.accessToken.email;

Although it might be useless, if you do not contain a "profile" scope, userProfile will be a null value.

Logout

try {
  await LineSDK.instance.logout();
} on PlatformException catch (e) {
  print(e.message);
}

Get user profile

try {
  final result = await LineSDK.instance.getProfile();
  // user id -> result.userId
  // user name -> result.displayName
  // user avatar -> result.pictureUrl
} on PlatformException catch (e) {
  print(e.message);
}

Get current stored access token

try {
  final result = await LineSDK.instance.currentAccessToken;
  // access token -> result?.value
} on PlatformException catch (e) {
  print(e.message);
}

If the user isn't logged in, it returns a null. A valid result of this method doesn't necessarily mean the access token itself is valid. It may have expired or been revoked by the user from another device or LINE client.

Verify access token with LINE server

try {
  final result = await LineSDK.instance.verifyAccessToken();
  // result.data is accessible if the token is valid.
} on PlatformException catch (e) {
  print(e.message);
  // token is not valid, or any other error.
}

Refresh current access token

try {
  final result = await LineSDK.instance.refreshToken();
  // access token -> result.value
  // expires duration -> result.expiresIn
} on PlatformException catch (e) {
  print(e.message);
}

Normally, you don't need to refresh access tokens manually, because any API call in LINE SDK will try to refresh the access token automatically when necessary. We do not recommend refreshing access tokens yourself. It's generally easier, more secure, and more future-proof to let the LINE SDK manage access tokens automatically.

Error handling

All APIs can throw a PlatformException with error code and a message. Use this information to identify when an error happens inside the native SDK.

Error codes and messages will vary between iOS and Android. Be sure to read the error definition on iOS and Android to provide better error recovery and user experience on different platforms.

Contributing

If you believe you found a vulnerability or you have an issue related to security, please DO NOT open a public issue. Instead, send us an email at [email protected].

Before contributing to this project, please read CONTRIBUTING.md.

flutter_line_sdk's People

Contributors

amlzq avatar dependabot[bot] avatar ejameslin avatar ianwith avatar onevcat avatar piratebrook avatar plateaukao avatar tatsutakein avatar tsairene avatar wouter-veeken avatar yksix avatar yoshimin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_line_sdk's Issues

Different result schemes on Android/iOS platforms

What did you do?

  • Login with email
 final result = await LineSDK.instance.login(
                scopes: ["profile", "openid", "email"]
            );
 print(result.accessToken.idTokenRaw);

Android

{
   "amr":[
      "pwd"
   ],
   "audience":"......",
   "email":"......",
   "expiresAt":"Jun 29, 2020 12:12:45 PM",
   "issuedAt":"Jun 29, 2020 11:12:45 AM",
   "issuer":"https://access.line.me",
   "name":"......",
   "nonce":"......",
   "picture":"https://profile.line-......",
   "rawString":"eyJraWQiOi......",
   "subject":"......"
}

iOS

eyJraWQiOi......

What did you expect?

  • The same scheme on the Android/iOS platform

What happened actually?

  • Then some attribute values ​​have different formats

Your environment?

[✓] Flutter (Channel dev, 1.19.0-5.0.pre, on Mac OS X 10.15.5 19F101, locale zh-Hant-TW)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.46.1)

cannot login on ios

Only on iOS:
When calling LineSDK.instance.login() and redirect to LINE application, log in and allow the permission, then tap 'OK' button, it's nothing happened.

image

Android crash on run: Emulator Pixel 2 API 19

#8 What did you do?

I simply run the sample code (example) in Pixel 2 emulator with API 19.
The code works on API 21

What did you expect?

I was hoping everything works the way they should.

What happened actually?

The app crashed on Run, displaying Unfortunately, flutter_line_sdk_example has stopped.

Your environment?

Running on Android Studio 3.6.2.
Emulator: Pixel 2
API: 19

Sample project

The official example folder

Logcat

W/ActivityManager( 1672): Unable to start service Intent { act=com.google.android.gms.drive.ApiService.RESET_AFTER_BOOT flg=0x4 cmp=com.google.android.gms/.drive.api.ApiService (has extras) } U=0: not found
D/AndroidRuntime( 2777): 
D/AndroidRuntime( 2777): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
W/linker  ( 2777): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/AndroidRuntime( 2777): CheckJNI is ON
D/dalvikvm( 2777): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2777): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2777): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2777): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2777): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm( 2777): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
E/memtrack( 2777): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2777): failed to load memtrack module: -2
D/AndroidRuntime( 2777): Calling main entry com.android.commands.am.Am
D/AndroidRuntime( 2777): Shutting down VM
I/ActivityManager( 1672): Force stopping com.linecorp.linesdk.sample appid=10057 user=0: from pid 2777
D/jdwp    ( 2777): Got wake-up signal, bailing out of select
D/dalvikvm( 2777): Debugger has detached; object registry had 1 entries
D/AndroidRuntime( 2788): 
D/AndroidRuntime( 2788): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
W/linker  ( 2788): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/AndroidRuntime( 2788): CheckJNI is ON
D/dalvikvm( 2788): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2788): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2788): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2788): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2788): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm( 2788): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
E/memtrack( 2788): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2788): failed to load memtrack module: -2
D/AndroidRuntime( 2788): Calling main entry com.android.commands.pm.Pm
D/AndroidRuntime( 2788): Shutting down VM
D/jdwp    ( 2788): Got wake-up signal, bailing out of select
D/dalvikvm( 2788): Debugger has detached; object registry had 1 entries
D/AndroidRuntime( 2810): 
D/AndroidRuntime( 2810): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
W/linker  ( 2810): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/AndroidRuntime( 2810): CheckJNI is ON
D/dalvikvm( 2810): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2810): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2810): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2810): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2810): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm( 2810): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
E/memtrack( 2810): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2810): failed to load memtrack module: -2
D/AndroidRuntime( 2810): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 1672): No content provider found for permission revoke: file:///data/local/tmp/app.apk
W/ActivityManager( 1672): No content provider found for permission revoke: file:///data/local/tmp/app.apk
I/PackageManager( 1672): Copying native libraries to /data/app-lib/vmdl-747013709
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1330K, 16% free 12305K/14624K, paused 12ms, total 12ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 256K, 16% free 12401K/14624K, paused 6ms, total 6ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1372K, 11% free 13070K/14624K, paused 7ms, total 7ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1777K, 14% free 13113K/15192K, paused 7ms, total 7ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1838K, 14% free 13124K/15232K, paused 8ms, total 8ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1849K, 14% free 13136K/15244K, paused 7ms, total 7ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1802K, 14% free 13135K/15256K, paused 6ms, total 6ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1778K, 14% free 13147K/15256K, paused 7ms, total 7ms
I/ActivityManager( 1672): Force stopping com.linecorp.linesdk.sample appid=10057 user=-1: uninstall pkg
I/PackageManager( 1672): Package com.linecorp.linesdk.sample codePath changed from /data/app/com.linecorp.linesdk.sample-1.apk to /data/app/com.linecorp.linesdk.sample-2.apk; Retaining data and using new
I/PackageManager( 1672): Running dexopt on: com.linecorp.linesdk.sample
W/linker  ( 2827): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/dalvikvm( 2827): DexOpt: load 3ms, verify+opt 5ms, 443164 bytes
W/PackageManager( 1672): Code path for pkg : com.linecorp.linesdk.sample changing from /data/app/com.linecorp.linesdk.sample-1.apk to /data/app/com.linecorp.linesdk.sample-2.apk
I/ActivityManager( 1672): Force stopping com.linecorp.linesdk.sample appid=10057 user=-1: update pkg
W/PackageManager( 1672): Resource path for pkg : com.linecorp.linesdk.sample changing from /data/app/com.linecorp.linesdk.sample-1.apk to /data/app/com.linecorp.linesdk.sample-2.apk
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1912K, 14% free 13199K/15272K, paused 7ms, total 7ms
I/ActivityManager( 1672): Force stopping com.linecorp.linesdk.sample appid=10057 user=0: pkg removed
I/InputReader( 1672): Reconfiguring input devices.  changes=0x00000010
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "sms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/dalvikvm( 2616): GC_FOR_ALLOC freed 213K, 9% free 3252K/3540K, paused 3ms, total 3ms
D/dalvikvm( 1866): GC_FOR_ALLOC freed 359K, 15% free 3578K/4208K, paused 5ms, total 5ms
W/Launcher.Model( 2616): Nobody to tell about the new app.  Launcher is probably loading.
I/InputReader( 1672): Reconfiguring input devices.  changes=0x00000010
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "smsto"
D/dalvikvm( 1672): GC_EXPLICIT freed 2041K, 23% free 11880K/15272K, paused 3ms+4ms, total 50ms
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/InputReader( 1672): Reconfiguring input devices.  changes=0x00000010
D/AndroidRuntime( 2810): Shutting down VM
D/jdwp    ( 2810): Got wake-up signal, bailing out of select
D/dalvikvm( 2810): Debugger has detached; object registry had 1 entries
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mmsto"
D/BackupManagerService( 1672): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.linecorp.linesdk.sample flg=0x4000010 (has extras) }
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "sms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/BackupManagerService( 1672): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.linecorp.linesdk.sample flg=0x4000010 (has extras) }
V/BackupManagerService( 1672): removePackageParticipantsLocked: uid=10057 #1
V/BackupManagerService( 1672): addPackageParticipantsLocked: #1
D/dalvikvm( 1866): GC_FOR_ALLOC freed 314K, 14% free 3627K/4208K, paused 2ms, total 2ms
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "smsto"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mms"
I/GamesBroadcastStub( 2102): Ignorning broadcast; requires Play Games
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mmsto"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/dalvikvm( 1866): GC_FOR_ALLOC freed 286K, 14% free 3624K/4208K, paused 2ms, total 3ms
W/Launcher( 2616): setApplicationContext called twice! old=com.google.android.velvet.VelvetApplication@9d050738 new=com.google.android.velvet.VelvetApplication@9d050738
I/ActivityManager( 1672): Start proc com.android.keychain for broadcast com.android.keychain/.KeyChainBroadcastReceiver: pid=2842 uid=1000 gids={41000, 1028, 1015, 3002, 3001, 3003}
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "sms"
E/jdwp    ( 2842): Failed sending reply to debugger: Broken pipe
D/dalvikvm( 2842): Debugger has detached; object registry had 1 entries
I/PackageManager( 1672): Running dexopt on: com.android.keychain
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "smsto"
W/linker  ( 2856): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mmsto"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/dalvikvm( 1866): GC_FOR_ALLOC freed 319K, 14% free 3622K/4208K, paused 2ms, total 2ms
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "sms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/dalvikvm( 2856): DexOpt: load 8ms, verify+opt 10ms, 392148 bytes
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1987K, 22% free 11938K/15272K, paused 10ms, total 10ms
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "smsto"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/dalvikvm( 1866): GC_FOR_ALLOC freed 285K, 14% free 3624K/4208K, paused 2ms, total 2ms
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mmsto"
W/ContextImpl( 2842): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1479 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2419 
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/GamesBroadcastStub( 2102): Ignorning broadcast; requires Play Games
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "sms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "smsto"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/dalvikvm( 1849): GC_FOR_ALLOC freed 1558K, 21% free 8019K/10052K, paused 38ms, total 38ms
D/dalvikvm( 1866): GC_FOR_ALLOC freed 290K, 14% free 3627K/4208K, paused 2ms, total 2ms
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/Auth    ( 2102): [SupervisedAccountIntentOperation] onHandleIntent(): android.intent.action.PACKAGE_ADDED
I/Auth    ( 2102): [SupervisedAccountIntentOperation] This operation is disabled
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mmsto"
I/ChromeSync( 2102): [Sync,SyncIntentOperation] Handling the intent: Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.linecorp.linesdk.sample flg=0x4000010 cmp=com.google.android.gms/.chimera.GmsIntentOperationService (has extras) }.
D/dalvikvm( 1849): GC_FOR_ALLOC freed 302K, 20% free 8080K/10052K, paused 10ms, total 10ms
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/dalvikvm-heap( 1849): Grow heap (frag case) to 8.081MB for 63240-byte allocation
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "sms"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
D/AndroidRuntime( 2863): 
D/AndroidRuntime( 2863): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
W/linker  ( 2863): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/AndroidRuntime( 2863): CheckJNI is ON
D/dalvikvm( 1849): GC_FOR_ALLOC freed 44K, 20% free 8098K/10116K, paused 15ms, total 15ms
D/dalvikvm( 1866): GC_FOR_ALLOC freed 277K, 14% free 3628K/4208K, paused 2ms, total 3ms
I/ActivityManager( 1672): Delay finish: com.google.android.googlequicksearchbox/com.google.android.searchcommon.summons.icing.InternalIcingCorporaProvider$CorporaChangedReceiver
D/dalvikvm( 2863): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2863): Added shared lib libjavacore.so 0x0
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "smsto"
D/dalvikvm( 2863): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2863): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2863): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
I/Icing.InternalIcingCorporaProvider( 2397): Updating corpora: A: com.linecorp.linesdk.sample, C: MAYBE
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mms"
D/dalvikvm( 2863): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
I/PackageManager( 1672):   Action: "android.intent.action.SENDTO"
I/PackageManager( 1672):   Category: "android.intent.category.DEFAULT"
I/PackageManager( 1672):   Scheme: "mmsto"
I/PackageManager( 1672): Adding preferred activity ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity} for user 0 :
W/ContextImpl( 2397): Implicit intents with startService are not safe: Intent { act=com.google.android.gms.icing.INDEX_SERVICE } android.content.ContextWrapper.bindService:517 com.google.android.gms.internal.av.a:-1 com.google.android.gms.internal.au.connect:-1 
D/dalvikvm( 1866): GC_FOR_ALLOC freed 269K, 14% free 3626K/4208K, paused 3ms, total 3ms
I/Icing   ( 2102): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=SEARCH_QUERIES
I/Icing   ( 2102): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=SEARCH_CORPORA
I/Icing   ( 2102): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
E/memtrack( 2863): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2863): failed to load memtrack module: -2
D/AndroidRuntime( 2863): Calling main entry com.android.commands.am.Am
D/dalvikvm( 2102): GC_FOR_ALLOC freed 1793K, 25% free 9159K/12200K, paused 21ms, total 21ms
I/ActivityManager( 1672): START u0 {act=android.intent.action.RUN flg=0x30000000 cmp=com.linecorp.linesdk.sample/.MainActivity (has extras)} from pid 2863
D/dalvikvm( 1672): GC_FOR_ALLOC freed 2068K, 22% free 11917K/15272K, paused 7ms, total 7ms
I/Icing   ( 2102): IndexChimeraService.getServiceInterface callingPackage=com.google.android.googlequicksearchbox componentName=null serviceId=APP_DATA_SEARCH
D/dalvikvm( 1672): GC_FOR_ALLOC freed 25K, 23% free 11905K/15272K, paused 9ms, total 9ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 12.326MB for 656856-byte allocation
D/dalvikvm( 1672): GC_FOR_ALLOC freed 13K, 22% free 12532K/15916K, paused 17ms, total 17ms
D/AndroidRuntime( 2863): Shutting down VM
D/dalvikvm( 2863): GC_CONCURRENT freed 96K, 15% free 577K/676K, paused 0ms+1ms, total 1ms
D/dalvikvm( 2881): Not late-enabling CheckJNI (already on)
I/ActivityManager( 1672): Start proc com.linecorp.linesdk.sample for activity com.linecorp.linesdk.sample/.MainActivity: pid=2881 uid=10057 gids={50057, 3003}
I/Icing   ( 2102): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
D/AndroidRuntime( 2881): Shutting down VM
W/dalvikvm( 2881): threadid=1: thread exiting with uncaught exception (group=0x9cd52b20)
I/Icing   ( 2102): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload true
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 7753728
E/AndroidRuntime( 2881): FATAL EXCEPTION: main
E/AndroidRuntime( 2881): Process: com.linecorp.linesdk.sample, PID: 2881
E/AndroidRuntime( 2881): java.lang.RuntimeException: Unable to get provider com.squareup.picasso.PicassoProvider: java.lang.ClassNotFoundException: Didn't find class "com.squareup.picasso.PicassoProvider" on path: DexPathList[[zip file "/data/app/com.linecorp.linesdk.sample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.linecorp.linesdk.sample-2, /vendor/lib, /system/lib]]
E/AndroidRuntime( 2881): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
E/AndroidRuntime( 2881): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
E/AndroidRuntime( 2881): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
E/AndroidRuntime( 2881): 	at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime( 2881): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime( 2881): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2881): 	at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2881): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 2881): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2881): 	at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2881): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 2881): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 2881): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2881): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.squareup.picasso.PicassoProvider" on path: DexPathList[[zip file "/data/app/com.linecorp.linesdk.sample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.linecorp.linesdk.sample-2, /vendor/lib, /system/lib]]
E/AndroidRuntime( 2881): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 2881): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime( 2881): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime( 2881): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
E/AndroidRuntime( 2881): 	... 12 more
W/ActivityManager( 1672):   Force finishing activity com.linecorp.linesdk.sample/.MainActivity
D/EGL_emulation( 1886): eglMakeCurrent: 0xb868cda0: ver 3 0
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1323008
D/        ( 1672): HostConnection::get() New Host Connection established 0xb88f91b0, tid 1928
D/dalvikvm( 1672): GC_FOR_ALLOC freed 35K, 22% free 12558K/15916K, paused 6ms, total 6ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 12.964MB for 656856-byte allocation
D/dalvikvm( 1672): GC_FOR_ALLOC freed <1K, 21% free 13199K/16560K, paused 6ms, total 6ms
D/dalvikvm( 1672): GC_FOR_ALLOC freed <1K, 21% free 13199K/16560K, paused 7ms, total 7ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 13.590MB for 656856-byte allocation
D/dalvikvm( 1672): GC_FOR_ALLOC freed <1K, 20% free 13840K/17204K, paused 6ms, total 6ms
I/ActivityManager( 1672): Resuming delayed broadcast
W/Launcher( 2616): setApplicationContext called twice! old=com.google.android.velvet.VelvetApplication@9d050738 new=com.google.android.velvet.VelvetApplication@9d050738
W/PeopleContactsSync( 2102): CP2 sync disabled by gservices.
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
I/ActivityManager( 1672): Delay finish: com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
I/FontsPackageChangeOp( 2102): Package com.linecorp.linesdk.sample has no metadata
I/Icing   ( 2102): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=SEARCH_QUERIES
I/Icing   ( 2102): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=SEARCH_CORPORA
I/Icing   ( 2102): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
I/Icing   ( 2102): Usage reports ok 0, Failed Usage reports 0, indexed 0, rejected 0, imm upload false
I/ActivityManager( 1672): Resuming delayed broadcast
W/ActivityManager( 1672): Activity pause timeout for ActivityRecord{9d35e7e0 u0 com.linecorp.linesdk.sample/.MainActivity t3 f}
D/EGL_emulation( 1886): eglMakeCurrent: 0xb868cda0: ver 3 0
E/EGL_emulation( 1886): tid 1886: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer( 1886): Backbuffer cannot be preserved
I/Icing   ( 2102): Indexing com.google.android.gms-apps from com.google.android.gms
I/Icing   ( 2102): Indexing done com.google.android.gms-apps
I/Icing   ( 2102): Indexing com.google.android.googlequicksearchbox-applications from com.google.android.googlequicksearchbox
I/Icing   ( 2102): Indexing com.google.android.gms-internal.3p:MobileApplication from com.google.android.gms
I/Icing   ( 2102): Indexing done com.google.android.googlequicksearchbox-applications
I/Icing   ( 2102): Indexing done com.google.android.gms-internal.3p:MobileApplication
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
I/Icing   ( 2102): Indexing com.google.android.gms-apps from com.google.android.gms
I/Icing   ( 2102): Indexing done com.google.android.gms-apps
I/Icing   ( 2102): Indexing com.google.android.gms-internal.3p:MobileApplication from com.google.android.gms
I/Icing   ( 2102): Indexing done com.google.android.gms-internal.3p:MobileApplication
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
I/ActivityManager( 1672): Killing 2531:com.android.exchange/u0a27 (adj 15): empty #17
E/WindowManager( 1672): Starting window AppWindowToken{9d6df640 token=Token{9d6ffb48 ActivityRecord{9d35e7e0 u0 com.linecorp.linesdk.sample/.MainActivity t3}}} timed out
W/ActivityManager( 1672): Activity destroy timeout for ActivityRecord{9d35e7e0 u0 com.linecorp.linesdk.sample/.MainActivity t3 f}
I/ActivityManager( 1672): Killing 2061:com.android.settings/1000 (adj 15): empty #17
D/dalvikvm( 2220): GC_FOR_ALLOC freed 1076K, 17% free 6899K/8308K, paused 11ms, total 11ms
W/GLSUser ( 1915): [AppCertManager] IOException while requesting key: 
W/GLSUser ( 1915): java.io.IOException: Invalid device key response.
W/GLSUser ( 1915): 	at hzz.a(:com.google.android.gms@[email protected] (000300-239467275):14)
W/GLSUser ( 1915): 	at hzz.a(:com.google.android.gms@[email protected] (000300-239467275):115)
W/GLSUser ( 1915): 	at hzx.a(:com.google.android.gms@[email protected] (000300-239467275):6)
W/GLSUser ( 1915): 	at hzt.a(:com.google.android.gms@[email protected] (000300-239467275))
W/GLSUser ( 1915): 	at hzs.a(:com.google.android.gms@[email protected] (000300-239467275):8)
W/GLSUser ( 1915): 	at com.google.android.gms.auth.account.be.legacy.AuthCronChimeraService.b(:com.google.android.gms@[email protected] (000300-239467275):6)
W/GLSUser ( 1915): 	at gzb.call(:com.google.android.gms@[email protected] (000300-239467275):3)
W/GLSUser ( 1915): 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/GLSUser ( 1915): 	at oao.b(:com.google.android.gms@[email protected] (000300-239467275):31)
W/GLSUser ( 1915): 	at oao.run(:com.google.android.gms@[email protected] (000300-239467275):21)
W/GLSUser ( 1915): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/GLSUser ( 1915): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/GLSUser ( 1915): 	at ogs.run(:com.google.android.gms@[email protected] (000300-239467275))
W/GLSUser ( 1915): 	at java.lang.Thread.run(Thread.java:841)
I/Process ( 2881): Sending signal. PID: 2881 SIG: 9
W/InputMethodManagerService( 1672): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@9d183058 attribute=null, token = android.os.BinderProxy@9d103508
I/ActivityManager( 1672): Process com.linecorp.linesdk.sample (pid 2881) has died.
D/dalvikvm( 1886): GC_FOR_ALLOC freed 1432K, 14% free 11104K/12892K, paused 8ms, total 8ms
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): onLoadSoundEffects(), Error -1 while loading samples
D/dalvikvm( 1886): GC_FOR_ALLOC freed 638K, 13% free 11258K/12892K, paused 5ms, total 5ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 33K, 13% free 11735K/13364K, paused 7ms, total 7ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 9K, 12% free 12214K/13836K, paused 5ms, total 5ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 17K, 12% free 12687K/14308K, paused 2ms, total 2ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 17K, 11% free 13159K/14780K, paused 6ms, total 6ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 123K, 11% free 13625K/15252K, paused 3ms, total 3ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 42K, 11% free 14098K/15724K, paused 3ms, total 3ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 1K, 11% free 14570K/16196K, paused 5ms, total 5ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed <1K, 10% free 15043K/16668K, paused 6ms, total 6ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 30K, 10% free 15554K/17140K, paused 3ms, total 3ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 27K, 10% free 16002K/17612K, paused 6ms, total 7ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 15K, 9% free 16477K/18084K, paused 3ms, total 4ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 21K, 9% free 16956K/18556K, paused 5ms, total 5ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 26K, 9% free 17405K/19028K, paused 7ms, total 7ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 2K, 9% free 17876K/19500K, paused 3ms, total 3ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 8K, 8% free 18381K/19972K, paused 4ms, total 4ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 25K, 8% free 18829K/20444K, paused 7ms, total 7ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 10K, 8% free 19293K/20916K, paused 4ms, total 4ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 29K, 8% free 19829K/21388K, paused 5ms, total 5ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 25K, 8% free 20278K/21860K, paused 6ms, total 6ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 55K, 8% free 20744K/22332K, paused 5ms, total 5ms
D/dalvikvm( 1886): GC_FOR_ALLOC freed 34K, 8% free 21183K/22804K, paused 4ms, total 4ms
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): onLoadSoundEffects(), Error -1 while loading samples
I/ActivityManager( 1672): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.linecorp.linesdk.sample/.MainActivity} from pid 1886
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1408K, 24% free 13113K/17204K, paused 16ms, total 16ms
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 7753728
D/dalvikvm( 2917): Not late-enabling CheckJNI (already on)
I/ActivityManager( 1672): Start proc com.linecorp.linesdk.sample for activity com.linecorp.linesdk.sample/.MainActivity: pid=2917 uid=10057 gids={50057, 3003}
D/AndroidRuntime( 2917): Shutting down VM
W/dalvikvm( 2917): threadid=1: thread exiting with uncaught exception (group=0x9cd52b20)
D/        ( 1174): HostConnection::get() New Host Connection established 0xb85d86b0, tid 2895
E/AndroidRuntime( 2917): FATAL EXCEPTION: main
E/AndroidRuntime( 2917): Process: com.linecorp.linesdk.sample, PID: 2917
E/AndroidRuntime( 2917): java.lang.RuntimeException: Unable to get provider com.squareup.picasso.PicassoProvider: java.lang.ClassNotFoundException: Didn't find class "com.squareup.picasso.PicassoProvider" on path: DexPathList[[zip file "/data/app/com.linecorp.linesdk.sample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.linecorp.linesdk.sample-2, /vendor/lib, /system/lib]]
E/AndroidRuntime( 2917): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
E/AndroidRuntime( 2917): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
E/AndroidRuntime( 2917): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
E/AndroidRuntime( 2917): 	at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime( 2917): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime( 2917): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2917): 	at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2917): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 2917): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2917): 	at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2917): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 2917): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 2917): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2917): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.squareup.picasso.PicassoProvider" on path: DexPathList[[zip file "/data/app/com.linecorp.linesdk.sample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.linecorp.linesdk.sample-2, /vendor/lib, /system/lib]]
E/AndroidRuntime( 2917): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 2917): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime( 2917): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime( 2917): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
E/AndroidRuntime( 2917): 	... 12 more
D/EGL_emulation( 1886): eglMakeCurrent: 0xb868cda0: ver 3 0
W/ActivityManager( 1672):   Force finishing activity com.linecorp.linesdk.sample/.MainActivity
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1323008
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1413K, 28% free 12397K/17204K, paused 9ms, total 9ms
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
W/ActivityManager( 1672): Activity pause timeout for ActivityRecord{9d5d3828 u0 com.linecorp.linesdk.sample/.MainActivity t4 f}
D/EGL_emulation( 1886): eglMakeCurrent: 0xb868cda0: ver 3 0
E/EGL_emulation( 1886): tid 1886: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer( 1886): Backbuffer cannot be preserved
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
E/WindowManager( 1672): Starting window AppWindowToken{9d563d18 token=Token{9d6fef38 ActivityRecord{9d5d3828 u0 com.linecorp.linesdk.sample/.MainActivity t4}}} timed out
W/ActivityManager( 1672): Activity destroy timeout for ActivityRecord{9d5d3828 u0 com.linecorp.linesdk.sample/.MainActivity t4 f}
I/Process ( 2917): Sending signal. PID: 2917 SIG: 9
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): onLoadSoundEffects(), Error -1 while loading samples
W/InputMethodManagerService( 1672): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@9d0c3840 attribute=null, token = android.os.BinderProxy@9d103508
I/ActivityManager( 1672): Process com.linecorp.linesdk.sample (pid 2917) has died.
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 1672): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 1672): onLoadSoundEffects(), Error -1 while loading samples
I/ActivityManager( 1672): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.linecorp.linesdk.sample/.MainActivity} from pid 1886
D/dalvikvm( 1672): GC_FOR_ALLOC freed 734K, 24% free 13095K/17204K, paused 12ms, total 12ms
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 7753728
D/dalvikvm( 2946): Not late-enabling CheckJNI (already on)
D/dalvikvm( 1175): GC_EXPLICIT freed 41K, 4% free 2995K/3112K, paused 0ms+0ms, total 4ms
I/ActivityManager( 1672): Start proc com.linecorp.linesdk.sample for activity com.linecorp.linesdk.sample/.MainActivity: pid=2946 uid=10057 gids={50057, 3003}
D/dalvikvm( 1175): GC_EXPLICIT freed <1K, 4% free 2996K/3112K, paused 0ms+0ms, total 2ms
D/dalvikvm( 1175): GC_EXPLICIT freed <1K, 4% free 2996K/3112K, paused 0ms+0ms, total 3ms
E/jdwp    ( 2946): Failed sending reply to debugger: Broken pipe
D/dalvikvm( 2946): Debugger has detached; object registry had 1 entries
D/AndroidRuntime( 2946): Shutting down VM
W/dalvikvm( 2946): threadid=1: thread exiting with uncaught exception (group=0x9cd52b20)
E/AndroidRuntime( 2946): FATAL EXCEPTION: main
E/AndroidRuntime( 2946): Process: com.linecorp.linesdk.sample, PID: 2946
E/AndroidRuntime( 2946): java.lang.RuntimeException: Unable to get provider com.squareup.picasso.PicassoProvider: java.lang.ClassNotFoundException: Didn't find class "com.squareup.picasso.PicassoProvider" on path: DexPathList[[zip file "/data/app/com.linecorp.linesdk.sample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.linecorp.linesdk.sample-2, /vendor/lib, /system/lib]]
E/AndroidRuntime( 2946): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
E/AndroidRuntime( 2946): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
E/AndroidRuntime( 2946): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
E/AndroidRuntime( 2946): 	at android.app.ActivityThread.access$1500(ActivityThread.java:135)
E/AndroidRuntime( 2946): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E/AndroidRuntime( 2946): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2946): 	at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2946): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 2946): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2946): 	at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2946): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 2946): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 2946): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2946): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.squareup.picasso.PicassoProvider" on path: DexPathList[[zip file "/data/app/com.linecorp.linesdk.sample-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.linecorp.linesdk.sample-2, /vendor/lib, /system/lib]]
E/AndroidRuntime( 2946): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 2946): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime( 2946): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime( 2946): 	at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
E/AndroidRuntime( 2946): 	... 12 more
D/EGL_emulation( 1886): eglMakeCurrent: 0xb868cda0: ver 3 0
W/ActivityManager( 1672):   Force finishing activity com.linecorp.linesdk.sample/.MainActivity
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1323008
D/        ( 1672): HostConnection::get() New Host Connection established 0xb87d8480, tid 1683
D/dalvikvm( 1672): GC_FOR_ALLOC freed 1350K, 28% free 12444K/17204K, paused 9ms, total 9ms
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
D/dalvikvm( 2102): GC_FOR_ALLOC freed 2075K, 26% free 9131K/12200K, paused 35ms, total 35ms
W/ActivityManager( 1672): Activity pause timeout for ActivityRecord{9d3f21e0 u0 com.linecorp.linesdk.sample/.MainActivity t5 f}
D/EGL_emulation( 1886): eglMakeCurrent: 0xb868cda0: ver 3 0
E/EGL_emulation( 1886): tid 1886: eglSurfaceAttrib(1199): error 0x3009 (EGL_BAD_MATCH)
W/HardwareRenderer( 1886): Backbuffer cannot be preserved
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
D/gralloc_ranchu( 1174): gralloc_alloc: Creating ashmem region of size 1298432
E/WindowManager( 1672): Starting window AppWindowToken{9d53fcc0 token=Token{9dbf55e0 ActivityRecord{9d3f21e0 u0 com.linecorp.linesdk.sample/.MainActivity t5}}} timed out
W/ActivityManager( 1672): Activity destroy timeout for ActivityRecord{9d3f21e0 u0 com.linecorp.linesdk.sample/.MainActivity t5 f}
I/Process ( 2946): Sending signal. PID: 2946 SIG: 9
I/ActivityManager( 1672): Process com.linecorp.linesdk.sample (pid 2946) has died.
W/InputMethodManagerService( 1672): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@9d4bf4b8 attribute=null, token = android.os.BinderProxy@9d103508
D/ConnectivityService( 1672): Sampling interval elapsed, updating statistics ..
D/ConnectivityService( 1672): Done.
D/ConnectivityService( 1672): Setting timer for 720seconds

Doctor

image

Any suggestion or help is appreciated.

Thank you.

How login with bot_prompt=aggressive

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Please describe what you did before you encounter the issue.

What did you expect?

Please describe what you did expect to happen.

What happened actually?

Please describe what happened actually.

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

Does this SDK support share by Line?

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Please describe what you did before you encounter the issue.

What did you expect?

Please describe what you did expect to happen.

What happened actually?

Please describe what happened actually.

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

flutter line sdk-1.3.0 'flutter line sdk/flutter line sdk-Swift.h' file not found

sdk版本:line sdk-1.3.0

看了文档要求使用use_frameworks!,但是项目已经被禁止使用use_frameworks!,改用了use_modular_headers!,所以会一直报这个错误,
建议:
在FlutterLineSdkPlugin.m文件更改:

#import "FlutterLineSdkPlugin.h"

#if __has_include( <flutter_line_sdk/flutter_line_sdk-Swift.h>)
#import <flutter_line_sdk/flutter_line_sdk-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "flutter_line_sdk-Swift.h"

#endif
@implementation FlutterLineSdkPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  [SwiftFlutterLineSdkPlugin registerWithRegistrar:registrar];
}
@end

可以更新个小版本吗?

Cancel / OK Button Event

(PHYSICAL PHONE) - Iphone 11
I am facing PlatformException(3003, User cancelled or interrupted the login process., [:], null) after tapped "OK" Button,Why?
And it shouldnt be same event when tapped "Cancel" Button.

(Iphone 11 Simulator)
When tapped Both button ("OK" / "Cancel") , It will not have any event, just stuck

Please help me !

messageImage_1709706889647
messageImage_1709706896426

Flutter3.0

What did you do?

Now, I'm using version Flutter 3.0.
But, this SDK using Dart SDK version 2.16.2

What did you expect?

Please version up.

What happened actually?

flutter pub add flutter_line_sdk
The current Dart SDK version is 2.16.2.

Because PACKAGE_NAME requires SDK version >=2.17.0 <3.0.0, version solving failed.

Could not find androidx.lifecycle:lifecycle-extensions:2.5.0.

What did you do?

I depend on flutter_line_sdk: ^2.3.6, and then ran my android app.

What did you expect?

Compiled and passed.

What happened actually?

Build output "Could not find androidx.lifecycle:lifecycle-extensions:2.5.0.".

This is because my app depends on androidx.lifecycle 2.5.0, and line-sdk-android 5.9.1 depends on androidx.lifecycle 2.2.0. According to gradle's rules for resolving dependency conflicts, all androidx.lifecycle artifacts of line-sdk-android 5.9.1 are upgraded to 2.5.0. Unfortunately, starting from androidx.lifecycle 2.3.0, lifecycle-extensions is no longer published, So the above problem occurs.

Your environment?

flutter_line_sdk 2.3.6
androidx.lifecycle 2.5.0

The pubspec.lock should not be contained in this repo

Is it a security issue?

No.

What did you do?

Please describe what you did before you encounter the issue.

Clone the repo and build the package.

What did you expect?

Please describe what you did expect to happen.

The package should build against with the lasted dependencies.

What happened actually?

Please describe what happened actually.

It reads the pubspec.lock file and keeps using old dependencies and environments.

According to the guideline of pub.dev, the lock file should not be contained and submitted to CVS.

For regular packages, don’t commit the pubspec.lock file. Regenerating the pubspec.lock file lets you test your package against the latest compatible versions of its dependencies.

Ref: https://dart.dev/guides/libraries/private-files

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

N/A

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

N/A

How can I use nonce, nonceId ?

Hi,

When using LineSDK.instance.login(), I can't find the param to handle nonce, nonceId. How can I do that?

Thank you.

How to get email when using api for retrieving and verifying tokens?

Is it a security issue?

No

What did you do?

Cal Line api to get idtoken and verify it

What did you expect?

firstname, lastname, email in the token

What happened actually?

Token only contains name as below:

iss:https://access.line.me
sub:Ud1699a5d7fc9f2e0796189181d68c5a0
aud:2004784545
exp:1714720722
iat:1714717122
nonce:O_FLYKAQP6I3rfAG4UJtNfacdeCpc1Eu
amr:[] 1 item
name:Siya Sharma

Your environment?

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

CocoaPods could not find compatible versions for pod "flutter_line_sdk"

hello,使用 iOS 模拟器 运行 flutter 项目时报错。

环境如下:

flutter_line_sdk: ^1.3.0

[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.7 19H15 darwin-x64, locale zh-Hans-CN)
    • Flutter version 1.22.6 at /Users/ios/Documents/8_multi_platform/flutter
    • Framework revision 9b2d32b605 (4 months ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/ios/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/ios/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.56.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.22.0

报错如下:
CocoaPods' output:

 
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Finding Podfile changes

      A flutter_line_sdk
      - Flutter
      - flutter_svprogresshud
      - image_picker
      - path_provider
      - shared_preferences
      - sqflite
      - thrio
      - webview_flutter
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `flutter_line_sdk` from `.symlinks/plugins/flutter_line_sdk/ios`
    -> Fetching podspec for `flutter_svprogresshud` from `.symlinks/plugins/flutter_svprogresshud/ios`
    -> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
    -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
    -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
    -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
    -> Fetching podspec for `thrio` from `.symlinks/plugins/thrio/ios`
    -> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/ios`
    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
    [!] CocoaPods could not find compatible versions for pod "flutter_line_sdk":
      In Podfile:
        flutter_line_sdk (from `.symlinks/plugins/flutter_line_sdk/ios`)
    Specs satisfying the `flutter_line_sdk (from `.symlinks/plugins/flutter_line_sdk/ios`)` dependency were found, but they required a higher minimum deployment target.

谢谢!!

Could not resolve all dependencies for configuration

On Android Studio Grandle Sync

Gradle sync failed: Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not determine artifacts for com.linecorp.linesdk:linesdk:5.4.1:

On flutter build
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_line_sdk' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Setting
Flutter version 3.3.4
kotlin_version = '1.7.20'
com.android.tools.build:gradle:7.3.1

flutter_line_sdk iOS 10.0 or later as the deployment target

Is it a security issue?

no

What did you do?

flutter_line_sdk ^2.3.0

Please describe what you did before you encounter the issue.
this flutter_line_sdk as the deployment target iOS 10.0 or later, but dependency 'LineSDKSwift', '~> 5.3',In fact, LineSDKSwift dependency 5.9, this deployment target is iOS 11.0, So it will report an error.

What did you expect?

Unified flutter_line_sdk^2.3.0 and LineSDKSwift^5.9.0 deployment target

Please describe what you did expect to happen.

What happened actually?

Please describe what happened actually.

Your environment?

Xcode 14.0.1
mini deployment iOS12

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

[Only iOS]PlatformException(3003, User cancelled or interrupted the login process., [:], null)

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Press the LINE Login button on iOS.(Android is ok)

What did you expect?

When I called the line login instance at flutter_line_sdk: ^1.3.0

What happened actually?

PlatformException(3003, User cancelled or interrupted the login process., [:], null)

Your environment?

iOS 14.7, iPhone 12 pro.

Sample project

https://apps.apple.com/us/app/crosser-make-global-friends/id1565490273

APK compilation failed due to conflict with inappwebview

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Please describe what you did before you encounter the issue.

What did you expect?

Please describe what you did expect to happen.

What happened actually?

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.1.0-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)

     Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

* 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

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Flutter 3.3.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 6928314d50 (2 days ago) • 2022-10-25 16:34:41 -0400
Engine • revision 3ad69d7be3
Tools • Dart 2.18.2 • DevTools 2.15.0

build.gradle

compileSdkVersion 33
minSdkVersion 21
targetSdkVersion 33

Sample project

Steps to reproduce:

  • Create a new flutter project
  • Add dependencies:
flutter_line_sdk: ^2.3.0
flutter_inappwebview: ^5.4.3+7
  • Run flutter build apk

I can't get the Access Token.When i give correct channel id and package name give it

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Please describe what you did before you encounter the issue.

What did you expect?

Please describe what you did expect to happen.

What happened actually?

Please describe what happened actually.

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

Android loginRequestCode is always zero

On Android, the Intent requestCode that launches the LINE app seems to always be zero.

What did you expect?

Provide a way to set the requestCode or make the default requestCode random.

Want minSdkVersion to revert to 21

Is it a security issue?

No

What did you do?

Our project minSdk=21, I upgraded flutter_line_sdk: 2.3.6, the compilation failed

What did you expect?

Restore minSdk=21

403 forbidden

Is it a security issue?

No
If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Please describe what you did before you encounter the issue.
I set up the config correctly, and re-did it again. The app was working one week ago but now when ii press login with line button in my app it takes me to line app but with forbidden 403 screen.

What did you expect?

Get the token from the user.

What happened actually?

I got a 403 page

Your environment?

Dart SDK version: 3.1.3
flutter_line_sdk: ^2.3.6

Sample project

LineSDK.instance.setup(dotEnv.LineID).then((_) {
    print("LineSDK Prepared");
  });
  
  try {
      final result =
          await LineSDK.instance.login(scopes: ['profile', 'email', 'openid']);

      final userId = result.userProfile!.userId;
      
      return userId;
    } catch (e) {
      return Future.error('error');
    }

[iOS] Signing for "LineSDKSwift-LineSDK" requires a development team

[✓] Flutter (Channel stable, 2.10.5, on macOS 12.6.1 21G217 darwin-x64, locale
zh-Hant-TW)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

The plugin I used is 2.3.1 and after upgrading Xcode to 14.1, I got this error and build failed with below message.

Signing for "LineSDKSwift-LineSDK" requires a development team. Select a development team in the Signing & Capabilities editor.

Cannot resolve Android's dependency

Is it a security issue?

No

What did you do?

Build Flutter app which depends on this package

What did you expect?

Successfully complete the build

What happened actually?

Failed to build the app due to flutter_line_sdk depends on line-sdk-android:5.4.1 but the version of the library does not exist on Maven Central or other repositories

Your environment?

Package version: 2.3.2

Sample project

N/A

how to get line email?

If using this SDK we can get lineUserId:

final loginResult = await LineSDK.instance.login(scopes: ["profile", "openid", "email"]);
final lineUserId = loginResult.userProfile?.userId;

How we can get lineEmail?

Originally posted by @Selecao in #46 (comment)

Android Studio emulator can't open the login page

I download the example code and try to run on the Android studio.
When i click the signin button, the page direct to the login page address, but stop and nothing show.
Then i try to test on the phone, everything is o.k..
I don't know what's wrong, Could I get any advice?
Thanks first.

3003错误

喵神大大,遇到一个问题找了很久都无法解决:

版本:flutter_line_sdk-1.3.0
flutterSDK:2.10.1
Dart SDK version: 2.16.2

在iOS端登录后返回“The user cancelled or interrupted the login process. Code 3003”,
我确保已经按文档要求进行配置了,有人建议在application:(UIApplication *)application openURL方法添加“LoginManager.shared.application(app, open: url)”实现,因为我iOS端工程是OC项目,貌似LineSDK没有桥接文件可以让oc调用?

redirect_uri無法設定

今天當我使用Line登入的時候,我發現如果手機沒有安裝Line App,程式就會自動導網頁登入,但是網頁登入若將LINE Login settings中的Web App開關打開,填入Redirect_uri使用。SDK中並沒有Option設定可填入Redirect_uri。

這樣的話是否只能將Web App的選項關閉?還是說有什麼方法可以在SDK中填入Redirect_uri ?

截圖 2021-04-24 上午1 53 09

error 'Unable to load class named [io.jsonwebtoken.impl.DefaultJwtParser]'

Is it a security issue?

May be no...

What happened actually?

Actually, in flutter debug mode, It works well. but when I install my flutter app in my device with release mode of flutter, Gets error like this.

PlatformException(INTERNAL_ERROR, java.io.IOException: org.json.JSONException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtParser] from the thread context, current, or system/application ClassLoaders.  All heuristics have been exhausted.  Class could not be found.
I/flutter (26210):      at c.d.c.c.a.d.a(:2)
I/flutter (26210):      at c.d.c.c.a.a.a.a(:45)
I/flutter (26210):      at c.d.c.c.a.a.a.b(:19)
I/flutter (26210):      at com.linecorp.linesdk.auth.internal.c$a.a(:22)
I/flutter (26210):      at com.linecorp.linesdk.auth.internal.c$a.doInBackground(:1)
I/flutter (26210):      at android.os.AsyncTask$2.call(AsyncTask.java:333)
I/flutter (26210):      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
I/flutter (26210):      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
I/flutter (26210):      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
I/flutter (26210):      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
I/flutter (26210):      at java.lang.Thread.run(Thread.java:764)
I/flutter (26210): Caused by: org.json.JSONException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtParser] from the thread context, current, or system/application ClassLoaders

Authorization menu works well like this.

Screenshot_20191220-160654_LINE

How can I solve this problem??
(I already tried this issue. line/line-sdk-android#7, may be nothing to do with this issue... )

  • my proguard code is
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.**  { *; }
-keep class io.flutter.util.**  { *; }
-keep class io.flutter.view.**  { *; }
-keep class io.flutter.**  { *; }
-keep class io.flutter.plugins.**  { *; }
-keep class org.spongycastle.** { *; }
-keep class io.jsonwebtoken.** { *; }
-dontwarn org.spongycastle.**
-dontwarn io.flutter.embedding.**
-dontwarn android.**
-dontwarn com.squareup.picasso.**

Your environment?

in release mode
Android 9.0
Galaxy s10e(SM-G970N)
in debug mode
emulator pixel2 and, 3, Andorid sdk version 28, Window10

Lost connection to device when hot restart in iOS.

Is it a security issue?

none

What did you do?

Lost connection to device when hot restart in iOS.
It occur in simulator and real device.

IDE: Android Studio.

What did you expect?

Not lost connection to device.

What happened actually?

Lost connection to device

Your environment?

Android Studio: 3.5.3
iOS: 13.3

flutter doctor

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.3 19D49f, locale ja-JP) 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[!] IntelliJ IDEA Community Edition (version 2018.3.3)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.41.1)
[✓] Connected device (3 available)

! Doctor found issues in 1 category.
flutter --version

Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (3 weeks ago) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0

Sample project

flutter_line_sdk example code

[Feature] get phone number from app login

Is it a security issue?

No

What did you do?

Login using flutter line SDK.

What did you expect?

I should be able to specific 'phone' in scopes and get phone number as a result.

Build Error in `minSdk of at most 16`

What did you do?

Please describe what you did before you encounter the issue.

What did you expect?

flutter run on android R

What happened actually?

Launching lib/main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
/Users/cocs/devs/CODUSTRY/flutter/android/app/src/debug/AndroidManifest.xml Error:
	uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library [:flutter_line_sdk] /Users/cocs/devs/CODUSTRY/flutter/build/flutter_line_sdk/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
	Suggestion: use a compatible library with a minSdk of at most 16,
		or increase this project's minSdk version to at least 17,
		or use tools:overrideLibrary="com.linecorp.flutter_line_sdk" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 17 declared in library [:flutter_line_sdk] /Users/cocs/devs/CODUSTRY/flutter/build/flutter_line_sdk/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
  	Suggestion: use a compatible library with a minSdk of at most 16,
  		or increase this project's minSdk version to at least 17,
  		or use tools:overrideLibrary="com.linecorp.flutter_line_sdk" to force usage (may lead to runtime failures)

* 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 17s
Finished with error: Gradle task assembleDebug failed with exit code 1

Your environment?

Sample project

How to get email when i line login

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Please describe what you did before you encounter the issue.

What did you expect?

Please describe what you did expect to happen.

What happened actually?

Please describe what happened actually.

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

link linepay url

I use a linepay request API and get a linepay app url, but I don't know how to use it with deep link and app link, will you develop the feature of link linepay url in this package?

linepay app url seems like:"line://pay/payment/xxxxxxxx"

Can't run example code

I use the example but can't execute it

E/AndroidRuntime(22094): FATAL EXCEPTION: DefaultDispatcher-worker-1 E/AndroidRuntime(22094): Process: app.test.com, PID: 22094 E/AndroidRuntime(22094): java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: DefaultDispatcher-worker-1 E/AndroidRuntime(22094): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794) E/AndroidRuntime(22094): at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback(FlutterJNI.java:727) E/AndroidRuntime(22094): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:140) E/AndroidRuntime(22094): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230) E/AndroidRuntime(22094): at com.linecorp.flutter_line_sdk.LineSdkWrapper$getCurrentAccessToken$1.invokeSuspend(LineSdkWrapper.kt:184) E/AndroidRuntime(22094): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32) E/AndroidRuntime(22094): at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:236) E/AndroidRuntime(22094): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594) E/AndroidRuntime(22094): at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60) E/AndroidRuntime(22094): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742) V/LifecycleChannel(22094): Sending AppLifecycleState.inactive message. V/DartMessenger(22094): Sending message with callback over channel 'flutter/lifecycle' V/DartMessenger(22094): Received message from Dart over channel 'flutter/platform' V/DartMessenger(22094): Deferring to registered handler to process message. V/PlatformChannel(22094): Received 'SystemChrome.setSystemUIOverlayStyle' message. V/LifecycleChannel(22094): Sending AppLifecycleState.paused message. V/DartMessenger(22094): Sending message with callback over channel 'flutter/lifecycle' V/DartExecutor(22094): Detached from JNI. De-registering the platform message handler for this Dart execution context.

[√] Flutter (Channel beta, v1.7.8+hotfix.2, on Microsoft Windows [Version 6.1.7601], locale zh-TW)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.4)
[√] Connected device (2 available)

build failed after 1.2.4

What did you do?

after 1.2.4, flutter build apk
compiled failed

e: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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: /Users/sekizawakeisuke/.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'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork

   > 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 23s

Your environment?


[✓] Flutter (Channel beta, v1.12.13+hotfix.6, on Mac OS X 10.15.2 19C57, locale ja-JP)
    • Flutter version 1.12.13+hotfix.6 at /Users/sekizawakeisuke/github/flutter/flutter
    • Framework revision 18cd7a3601 (2 weeks ago), 2019-12-11 06:35:39 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/sekizawakeisuke/Library/Android/sdk
    • Android NDK at /Users/sekizawakeisuke/Library/Android/sdk/ndk-bundle
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Users/sekizawakeisuke/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3, Build version 11C29
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Users/sekizawakeisuke/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.6010548/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3.1)
    • IntelliJ at /Users/sekizawakeisuke/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see

[iOS] Login line account auto switch from line app to line web

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

When I login line in iOS, my device has installed the Line app but still not login account. The issue is that when navigate from my app to the line app for starting login line account, it automatically switches from line app to the web line for login. I have setup onlyWebLogin variable false but not work.

What did you expect?

When I setup onlyWebLogin variable as false, it will not automatically switch from Line app to web Line.

What happened actually?

Auto navigate to web Line while line app is installed

Your environment?

flutter 3.3.9
flutter_line_sdk: 2.3.5

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6.2 21G320 darwin-arm, locale
en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.74.3)
[✓] Connected device (4 available)
[✓] HTTP Host Availability

Issue on IOS since upgrade of flutter to 1.20.1 on stable channel

Hi,

I recently upgraded flutter to the latest version :

Flutter 1.20.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2ae34518b8 (4 days ago) • 2020-08-05 19:53:19 -0700
Engine • revision c8e3b94853
Tools • Dart 2.9.0

And now the build on IOS is failing, I use Android Studio and tried to build for Iphone 11 pro max simulator and a physical Iphone 6. It works perfectly fine on Android but when trying to build for IOS the following error appears in the console:

/Users/***/.pub-cache/hosted/pub.dartlang.org/flutter_line_sdk-1.3.0/ios/Classes/SwiftFlutterLineSdkPlugin.swift:4:8: error: no such module 'LineSDK'
import LineSDK
Command CompileSwift failed with a nonzero exit code

Could you please advice ?

Please let me know if you need more information.

Thank you

'flutter_line_sdk/flutter_line_sdk-Swift.h' file not found

What did you do?

Adding flutter_line_sdk to the Flutter project.

What did you expect?

Running the project without any errors.

What happened actually?

Try running both flutter run and running on Xcode, the error stated that 'flutter_line_sdk/flutter_line_sdk-Swift.h' file not found

Your environment?

flutter_line_sdk 1.0.3
Flutter 1.10.7
Xcode 11.0
macOS 10.15

Duplicate class androidx.lifecycle.ViewModelLazy error when just adding the library to pubspec.yaml

Is it a security issue?

No

What did you do?

add flutter_line_sdk: ^2.3.2 to pubspec.yaml

What did you expect?

The app should be at least compilable, like before adding flutter_line_sdk.

What happened actually?

The app can not be built even without any usage of the library.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.1.0-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.1.0) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)

     Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

flutter --version
Flutter 3.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84a1e904f4 (13 days ago) • 2023-05-09 07:41:44 -0700
Engine • revision d44b5a94c9
Tools • Dart 3.0.0 • DevTools 2.23.1

Sample project

No sample project

pubspec.yaml:

name: my app
description: my app

publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
  sdk: ">=2.15.1 <3.0.0"

dependencies:
  flutter:
    sdk: flutter


  cupertino_icons: ^1.0.5
  webview_flutter: ^4.0.7
  google_auth: ^0.0.2
  facebook_auth: ^0.0.2
  package_info_plus: ^3.1.0
  uuid: ^3.0.7
  url_launcher: ^6.1.10
  path_provider: ^2.0.14
  image_picker: ^0.8.7+1
  image: ^4.0.15
  webview_flutter_android: ^3.4.5
  flutter_localizations:
    sdk: flutter
  intl: any
  shared_preferences: ^2.1.0
  provider: ^6.0.5
  flutter_launcher_icons: ^0.13.1
  flutter_line_sdk: ^2.3.2


dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^2.0.1

flutter:
  uses-material-design: true
  generate: true
flutter_launcher_icons:
  android: true
  ios: true
  remove_alpha_ios: true
  image_path: "assets/icon/icon.png"

Android crash: java.lang.IllegalStateException: Reply already submitted

What did you do?

Click button and call

final LoginResult result = await LineSDK.instance.login(
        scopes: ["profile", "openid", "email"],
      );

and press Back button of android device quickly.

What did you expect?

Cancel the login-request.

What happened actually?

Crash.

Your environment?

flutter_Line_sdk-1.2.6
android os 8.1.0

Verifying ID Token

Is it a security issue? Yes

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

According to the LINE documentation, it is important to verify the id token. https://developers.line.biz/en/reference/line-login/#verify-id-token

What did you expect?

I was expecting a built in method that handles this verification. Just like how there is a verifyAccessToken method for access token verification.

What happened actually?

If there is a reason for this, could there be an explanation in the documentation why there is no method for verifying the id token? Otherwise, will there be id token verification in the future?

iOS login gives error "400 Bad request with invalid redirect_uri value. Check if it is registered in a LINE developers site"

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

I followed REDDME.md 's instruction and set up the iOS configuration and test run.

Please describe what you did before you encounter the issue.

What did you expect?

login successful

Please describe what you did expect to happen.

What happened actually?

I receive 400 Bad request with invalid redirect_uri value. Check if it is registered in a LINE developers site

Please describe what happened actually.

I wonder if README is updated

https://github.com/line/flutter_line_sdk/#ios-app-settings
here, there's a section called

iOS scheme Set to line3rdp., followed by the bundle identifier. For example, if your bundle identifier is com.example.app, set the iOS scheme to line3rdp.com.example.app. Only one iOS scheme can be specified.

but that is not in the web console.

Your environment?

Package
flutter_line_sdk:
dependency: "direct main"
description:
name: flutter_line_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"

Xcode
Version 13.3.1 (13E500a)

iOS 12.3.1

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

INTERNAL_ERROR, OpenId issuedAt is after current time: Thu Dec 21 15:07:50 GMT+07:00 2023,

Is it a security issue?

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

What did you do?

Today, I receive this issue "PlatformException(INTERNAL_ERROR, OpenId issuedAt is after current time: Thu Dec 21 15:07:50 GMT+07:00 2023, null, null)" and I can not login in my app with line account

What did you expect?

Login as normal

What happened actually?

throw an exception PlatformException(INTERNAL_ERROR, OpenId issuedAt is after current time: Thu Dec 21 15:07:50 GMT+07:00 2023, null, null)

Your environment?

Some information of the environment in which the issue happened. Package version, Xcode version, iOS version, etc.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.6, on macOS 12.6.2 21G320 darwin-arm64, locale
en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.74.3)
[✓] Connected device (3 available)
[✓] Network resources

Sample project

It would be appreciated if you can provide a link to or update a sample project that we can download and reproduce the issue.

Execution failed for task ':flutter_line_sdk:compileDebugKotlin'.

I keep encountering this building error
Screenshot 2024-03-26 at 6 53 38 PM

What did you do?

I have tried both version 17 and 1.8
like below in app/build.gradle
Screenshot 2024-03-26 at 6 48 35 PM

none of them works.

Once I remove line sdk in pubspec.yaml, I could build my project successfully with ver 17 and 1.8.

Your environment?

[✓] Flutter (Channel stable, 3.16.9, on macOS 14.4 23E214 darwin-arm64, locale en-TW)
• Flutter version 3.16.9 on channel stable at /Users/bowei/fvm/versions/3.7.0
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 41456452f2 (9 weeks ago), 2024-01-25 10:06:23 -0800
• Engine revision f40e976bed
• Dart version 3.2.6
• DevTools version 2.28.5

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/bowei/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.73.1)
• VS Code at /Users/bowei/Desktop/Visual Studio Code.app/Contents
• Flutter extension version 3.60.0

⣟[✓] Connected device (3 available)
• SM G9960 (mobile) • RFCR1155DYX • android-arm64 • Android 13 (API 33)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4 23E214 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.59

[✓] Network resources
• All expected network resources are available.

• No issues found!

Help me please, my boss is gonna kill me...

Warning when publishing new version

Is it a security issue?

No.

What did you do?

Run flutter pub publish to publish a new version for this plugin.

What did you expect?

The publish finishes without any warning or issue.

What happened actually?

Flutter pub gives out a warning:

Package validation found the following potential issue:
* In pubspec.yaml the flutter.plugin.{androidPackage,iosPrefix,pluginClass} keys 
   are deprecated. Consider using the flutter.plugin.platforms key introduced in 
   Flutter 1.10.0

  See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin

Your environment?

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.19.0-4.0.pre.11, on Mac OS X 10.15.5 19F96, locale zh-Hans-JP)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.45.1)
[✓] Connected device (1 available)

Sample project

The plugin itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.