Android In App Review

Jan 28 2021 · Kotlin 1.4, Android 5, Android Studio 4

Part 1: Implementing In App Review

03. Build An In App Review Module

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 02. Set Up The Project Next episode: 04. Store Review Preferences

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 03. Build An In App Review Module

After adding a new module, I deleted the kotlin_version property from the Gradle file.

This is because we already have that defined, but adding a new module creates a duplicate which will cause build errors.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

To start implementing the In App Review feature, you’ll create a new feature module that will let you completely decouple the code from the rest of the app.

implementation project(':inappreview')
plugins {
  id 'com.android.library'
  id 'kotlin-android'
  id 'kotlin-kapt'
  id 'dagger.hilt.android.plugin'
}
  defaultConfig {
    minSdkVersion versions.minSdk
    targetSdkVersion versions.targetSdk
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    consumerProguardFiles "consumer-rules.pro"
  }
dependencies {

  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
  implementation project(':styles')
  implementation project(':preferences')

  ...
}
  implementation "androidx.appcompat:appcompat:${versions.appCompat}"
  implementation "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}"
  implementation "androidx.core:core-ktx:${versions.coreKtx}"
  implementation "androidx.cardview:cardview:${versions.cardView}"
  // Play core
  api "com.google.android.play:core:${versions.playCore}"
  api "com.google.android.play:core-ktx:${versions.playCoreKtx}"
  // Hilt (Dagger)
  // https://developer.android.com/training/dependency-injection/hilt-android
  implementation "com.google.dagger:hilt-android:${versions.hilt}"
  kapt "com.google.dagger:hilt-android-compiler:${versions.hilt}"