Google Play Core लाइब्रेरी की खास जानकारी

इस पेज पर Google Play Core लाइब्रेरी के बारे में बताया गया है. साथ ही, उन्हें अपनी लाइब्रेरी में जोड़ने का तरीका बताया गया है प्रोजेक्ट.

Google Play Core लाइब्रेरी, Google Play के साथ आपके ऐप्लिकेशन का रनटाइम इंटरफ़ेस होती हैं स्टोर. यहां कुछ काम किए जा सकते हैं, जैसे:

Play Core लाइब्रेरी इनमें उपलब्ध हैं Java, नेटिव और Unity. ज़्यादा के लिए की जानकारी पाने के लिए, प्रॉडक्ट की जानकारी.

Play Core Java और Kotlin Library से माइग्रेट करना

Play Core Java और Kotlin Library को कई हिस्सों में बांटा गया है Android लाइब्रेरी की सुविधाओं के हिसाब से. इससे Play Core लाइब्रेरी का साइज़ कम हो जाता है साथ ही, इससे आपको ऐप्लिकेशन की अलग-अलग सुविधाओं को तेज़ी से रिलीज़ करने में मदद मिलती है.

इस माइग्रेशन में हर सुविधा का व्यवहार एक जैसा रहा है, सिर्फ़ एक खास बदलाव यह है कि नए वर्शन ने Google Play Services' Task API.

नई लाइब्रेरी में माइग्रेट करने और नई सुविधाओं का फ़ायदा पाने के लिए, नीचे दी गई सूची का इस्तेमाल करें और गड़बड़ियां ठीक की गई हैं. अगर आप Google Play की एक से ज़्यादा सुविधाओं का इस्तेमाल करते हैं, तो आपके पास Google Play की कई सुविधाएं इंपोर्ट करने का विकल्प आपकी build.gradle फ़ाइल में, एक साथ कई लाइब्रेरी में.

माइग्रेशन के सामान्य तरीके

  1. टास्क ऑब्जेक्ट के किसी भी मौजूदा इंपोर्ट स्टेटमेंट को import com.google.android.play.core.tasks.*; से import com.google.android.gms.tasks.*; में अपडेट करें. सभी क्लास के नाम नहीं बदले गए हैं.
  2. अपनी build.gradle फ़ाइल में, Play Core लाइब्रेरी की पुरानी लाइब्रेरी से इंपोर्ट किए गए सभी डेटा को हटा दें.

Play ऐसेट डिलीवरी लाइब्रेरी को इंटिग्रेट करना

ग्रूवी

// 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.2'

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

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.2")

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

Play Feature Delivery Library को इंटिग्रेट करना

ग्रूवी

// 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 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 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 की सॉफ़्टवेयर डेवलपमेंट किट की सेवा की शर्तें

पिछली बार किए गए बदलावों की तारीख: 24 सितंबर, 2020
  1. Play Core सॉफ़्टवेयर डेवलपमेंट किट का इस्तेमाल करने का मतलब है कि आप Google API की सेवा की शर्तों ("एपीआई की सेवा की शर्तें") के अलावा इन शर्तों से भी सहमत हैं. अगर कभी इन शर्तों पर विवाद होता है, तो एपीआई की सेवा की शर्तों के मुकाबले इन शर्तों को प्राथमिकता दी जाएगी. कृपया इन शर्तों और एपीआई की सेवा की शर्तों को ध्यान से पढ़ें.
  2. इन शर्तों के लिए, "एपीआई" इसका मतलब है, Google के एपीआई, अन्य डेवलपर सेवाएं, और उनसे जुड़े सॉफ़्टवेयर. इनमें फिर से डिस्ट्रिब्यूशन किया जा सकने वाला कोड भी शामिल है.
  3. “फिर से असाइन किया जा सकने वाला कोड” का मतलब है, Google से मिला ऑब्जेक्ट कोड या ऐसी हेडर फ़ाइलें जो एपीआई को कॉल करती हैं.
  4. इन शर्तों और एपीआई की सेवा की शर्तों के तहत, फिर से डिस्ट्रिब्यूशन किए जा सकने वाले कोड को सिर्फ़ अपने एपीआई क्लाइंट के हिस्से के तौर पर शामिल करने के लिए, उसे कॉपी और डिस्ट्रिब्यूट किया जा सकता है. Google और इसके लाइसेंस देने वालों के पास, फिर से डिस्ट्रिब्यूशन किए जा सकने वाले कोड में, सभी अधिकार, टाइटल, और हित शामिल हैं. इसके अलावा, बौद्धिक संपत्ति और अन्य मालिकाना अधिकारों का भी मालिकाना हक है. आपको फिर से असाइन करने लायक कोड में बदलाव करने, उसका अनुवाद करने या उसके व्युत्पन्न काम बनाने की अनुमति नहीं है.
  5. Google, नोटिस देकर और आने वाले समय में Play की सॉफ़्टवेयर डेवलपमेंट किट के इस्तेमाल को अस्वीकार करने का मौका देकर, किसी भी समय इन शर्तों में बदलाव कर सकता है. Google शर्तों में हुए बदलावों के बारे में, https://developer.android.com/guide/playcore/लाइसेंस पर पोस्ट करेगा. बदलाव रेट्रोऐक्टिव (पहले से लागू) नहीं होंगे.