LINE SDK for iOS Swift

repository·master·Indexed 21 days ago

https://github.com/line/line-sdk-ios-swift

A Swift-based SDK for implementing LINE Login and accessing user profile data via OpenID Connect 1.0 in iOS applications. Requires iOS 15.0 or later and Xcode 14.1 or later. The SDK enables seamless user authentication and integration with LINE APIs.

Tokens
1K
Snippets
7
Records
10
Agent score
25%

What's inside line-sdk-ios-swift

  1. Overview of LINE SDK for iOS Swift

    master

    The LINE SDK for iOS Swift is a modern Swift-based SDK designed to implement LINE APIs in iOS applications. It focuses on providing an engaging and personalized user experience through two primary capabilities:

    1. User Authentication: Enables LINE Login, allowing users to log in to your service using their existing LINE accounts. If users are already logged into the LINE app on their iOS device, they can authenticate automatically without re-entering credentials.
    2. OpenID Connect Support: Supports the OpenID Connect 1.0 specification. After user authorization, you can retrieve ID tokens containing the user's LINE profile, allowing you to utilize their information without building a separate user management system.
  2. Run the LINE SDK starter app

    master

    You can explore the SDK's features by running the provided sample application. Follow these steps:

    1. Clone the repository:
      git clone https://github.com/line/line-sdk-ios-swift.git
    2. Open the LineSDK.xcworkspace file in Xcode.
    3. Build and run the LineSDKSample scheme.
    git clone https://github.com/line/line-sdk-ios-swift.git
  3. How to use the LINE SDK

    master

    To integrate the LINE SDK into your iOS application, follow these high-level steps:

    1. Create a channel: Set up your LINE channel via the LINE Developers console.
    2. Integrate LINE Login: Use the SDK to implement the login flow within your iOS app.
    3. Make API calls: Execute API calls either directly from your app using the SDK or from your server-side via the Social API.
  4. Available fastlane iOS actions

    master

    The repository provides several custom fastlane actions for iOS automation, including testing, linting, documentation generation, and release management. Most commands can be prefixed with bundle exec to ensure the correct environment is used.

    # Example: Run tests
    [bundle exec] fastlane ios tests
    
    # Example: Create xcframeworks
    [bundle exec] fastlane ios xcframework
  5. Lint dependency manager compatibility

    master

    Use these actions to check for compatibility with different dependency managers:

    • ios lint: General linting for dependency manager compatibility.
    • ios lint_pod: Linting specifically for CocoaPods.
    • ios lint_spm: Linting specifically for Swift Package Manager.
    [bundle exec] fastlane ios lint_spm
  6. Manage iOS releases and versions

    master

    Use these actions to handle release workflows and versioning:

    • ios release: Release a new version.
    • ios to_beta: Switch to the Beta environment.
    • ios change_log: Generate/manage the change log.
    • ios bump_constant_version: Bump the constant version.
    • ios bump_reference_top_version: Bump the reference top version.
    • ios xcframework: Create binary frameworks in the xcframework format under the build/ folder.
    [bundle exec] fastlane ios release
  7. Run iOS tests and coverage

    master

    Use the following actions to execute different test suites:

    • ios tests: Run standard tests.
    • ios sdk_tests: Run SDK-specific tests.
    • ios sdk_tests_with_coverage: Run SDK-specific tests with coverage reporting.
    • ios sample_tests: Run sample tests.
    # Run standard tests
    [bundle exec] fastlane ios tests
    
    # Run SDK tests with coverage
    [bundle exec] fastlane ios sdk_tests_with_coverage