Google Play Core 라이브러리 개요

이 페이지에서는 Google Play Core 라이브러리를 설명하고 이를 프로젝트에 추가하는 방법을 설명합니다.

Google Play Core 라이브러리는 Google Play 스토어와 연결하는 앱의 런타임 인터페이스입니다. 다음과 같은 작업을 할 수 있습니다.

Play Core 라이브러리는 자바, 네이티브, Unity로 제공됩니다. 최신 출시에 관한 자세한 내용은 출시 노트를 참고하세요.

Play Core 자바 및 Kotlin 라이브러리에서 이전

Play Core 자바 및 Kotlin 라이브러리는 기능별 여러 Android 라이브러리로 분할되었습니다. 이렇게 하면 Play Core 라이브러리가 앱에 추가하는 크기가 줄어들고 개별 기능의 출시 주기가 더 빨라집니다.

이 이전에서 각 기능의 동작은 일관되게 유지되었고, 유일한 주요 변경사항은 새 버전에서 Google Play 서비스의 Task API를 채택했다는 점입니다.

아래 목록을 사용하여 새 라이브러리로 이전하고 새로운 기능과 버그 수정을 활용하세요. 여러 Play 기능을 사용하면 build.gradle 파일에 여러 라이브러리를 한 번에 가져올 수 있습니다.

일반적인 이전 단계

  1. Task 객체의 기존 import 문을 import com.google.android.play.core.tasks.*;에서 import com.google.android.gms.tasks.*;로 업데이트합니다. 모든 클래스 이름은 변경되지 않습니다.
  2. build.gradle 파일에서 이전 Play Core 라이브러리의 모든 가져오기를 삭제합니다.

Play Asset Delivery 라이브러리 통합

Groovy

// In your app’s build.gradle file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // So, make sure you also include that repository in your project's build.gradle file.
    implementation 'com.google.android.play:asset-delivery:2.2.1'

    // For Kotlin users also add the Kotlin extensions library for Play Asset Delivery:
    implementation 'com.google.android.play:asset-delivery-ktx:2.2.1'
    ...
}

Kotlin

// In your app’s build.gradle.kts file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // So, make sure you also include that repository in your project's build.gradle file.
    implementation("com.google.android.play:asset-delivery:2.2.1")

    // For Kotlin users also import the Kotlin extensions library for Play Asset Delivery:
    implementation("com.google.android.play:asset-delivery-ktx:2.2.1")
    ...
}

Play Feature Delivery 라이브러리 통합

Groovy

// In your app’s build.gradle file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // So, make sure you also include that repository in your project's build.gradle file.
    implementation 'com.google.android.play:feature-delivery:2.1.0'

    // For Kotlin users, also add the Kotlin extensions library for Play Feature Delivery:
    implementation 'com.google.android.play:feature-delivery-ktx:2.1.0'
    ...
}

Kotlin

// In your app’s build.gradle.kts file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // Make sure you also include that repository in your project's build.gradle file.
    implementation("com.google.android.play:feature-delivery:2.1.0")

    // For Kotlin users, also import the Kotlin extensions library for Play Feature Delivery:
    implementation("com.google.android.play:feature-delivery-ktx:2.1.0")
    ...
}

Play In-App Review 라이브러리 통합

Groovy

// In your app’s build.gradle file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // Make sure you also include that repository in your project's build.gradle file.
    implementation 'com.google.android.play:review:2.0.1'

    // For Kotlin users, also add the Kotlin extensions library for Play In-App Review:
    implementation 'com.google.android.play:review-ktx:2.0.1'
    ...
}

Kotlin

// In your app’s build.gradle.kts file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // Make sure you also include that repository in your project's build.gradle file.
    implementation("com.google.android.play:review:2.0.1")

    // For Kotlin users, also import the Kotlin extensions library for Play In-App Review:
    implementation("com.google.android.play:review-ktx:2.0.1")
    ...
}

Play In-App Update 라이브러리 통합

Groovy

// In your app’s build.gradle file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // Make sure you also include that repository in your project's build.gradle file.
    implementation 'com.google.android.play:app-update:2.1.0'

    // For Kotlin users, also add the Kotlin extensions library for Play In-App Update:
    implementation 'com.google.android.play:app-update-ktx:2.1.0'
    ...
}

Kotlin

// In your app’s build.gradle.kts file:
...
dependencies {
    // This dependency is downloaded from the Google’s Maven repository.
    // Make sure you also include that repository in your project's build.gradle file.
    implementation("com.google.android.play:app-update:2.1.0")

    // For Kotlin users, also import the Kotlin extensions library for Play In-App Update:
    implementation("com.google.android.play:app-update-ktx:2.1.0")
    ...
}

Play Core 소프트웨어 개발 키트 서비스 약관

최종 수정일: 2020년 9월 24일
  1. Play Core 소프트웨어 개발 키트를 사용하면 Google API 서비스 약관('API 서비스 약관')과 함께 다음 약관에 동의하는 것으로 간주됩니다. 약관이 상충하는 경우 본 약관이 'API 서비스 약관'보다 우선하여 적용됩니다. 본 약관 및 'API 서비스 약관'을 자세히 읽어 보시기 바랍니다.
  2. 본 약관에서 'API'는 '재배포 가능 코드'를 비롯하여 Google API, 기타 개발자 서비스 및 관련 소프트웨어를 의미합니다.
  3. '재배포 가능 코드'는 Google에서 제공하는 객체 코드 또는 API를 호출하는 헤더 파일입니다.
  4. 본 약관 및 'API 서비스 약관'에 따라 API 클라이언트의 일부로 포함하는 목적으로만 '재배포 가능 코드'를 복사하여 배포할 수 있습니다. Google 및 라이선스 제공자가 '재배포 가능 코드'와 관련된 모든 지식 재산 및 기타 독점적 권리를 비롯한 모든 권리, 명의 및 이권을 소유합니다. 귀하는 '재배포 가능 코드'를 수정, 번역하거나 '재배포 가능 코드'의 2차 저작물을 생성할 수 없습니다.
  5. Google은 언제든지 통지와 함께 약관을 변경할 수 있으며 변경 후 Play Core 소프트웨어 개발 키트의 사용을 거부할 기회를 제공합니다. Google은 https://developer.android.com/guide/playcore/license에서 약관 수정에 관해 통지합니다. 변경사항은 소급 적용되지 않습니다.