Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
open-ios::
open in_app_review/example/ios/Runner.xcworkspace
open in_app_review/example/ios/Runner.xcworkspace

run-macos::
cd example; flutter run -d macos
5 changes: 4 additions & 1 deletion in_app_review/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand All @@ -26,5 +28,6 @@ migrate_working_dir/
/pubspec.lock
**/doc/api/
.dart_tool/
.packages
.flutter-plugins
.flutter-plugins-dependencies
build/
25 changes: 11 additions & 14 deletions in_app_review/.metadata
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
# This file should be version controlled and should not be manually edited.

version:
revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
channel: stable
revision: "edada7c56edf4a183c1735310e123c7f923584f1"
channel: "stable"

project_type: plugin

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
create_revision: edada7c56edf4a183c1735310e123c7f923584f1
base_revision: edada7c56edf4a183c1735310e123c7f923584f1
- platform: android
create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
create_revision: edada7c56edf4a183c1735310e123c7f923584f1
base_revision: edada7c56edf4a183c1735310e123c7f923584f1
- platform: ios
create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
create_revision: edada7c56edf4a183c1735310e123c7f923584f1
base_revision: edada7c56edf4a183c1735310e123c7f923584f1
- platform: macos
create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
- platform: windows
create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1
create_revision: edada7c56edf4a183c1735310e123c7f923584f1
base_revision: edada7c56edf4a183c1735310e123c7f923584f1

# User provided section

Expand Down
4 changes: 4 additions & 0 deletions in_app_review/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [2.0.11]

- Regenerate the plugin & migrate Android platform code from Java to Kotlin

# [2.0.10]

- Add a privacy manifest to iOS and MacOS.
Expand Down
8 changes: 8 additions & 0 deletions in_app_review/MAINTENANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Android

## Opening Android Studio

1. Build the example app via `cd example/; flutter build apk --config-only`
2. Open Android Studio -> Open an existing Android Studio Project -> in_app_review/example/android/build.gradle.kts
3. In the Gradle Sync dialog, select OK
4. In the Android Gradle Plugin Update dialog, select Don't remind me again for this project.
4 changes: 4 additions & 0 deletions in_app_review/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
48 changes: 30 additions & 18 deletions in_app_review/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
group 'dev.britannio.in_app_review'
version '1.0-SNAPSHOT'
group = "dev.britannio.in_app_review"
version = "1.0-SNAPSHOT"

buildscript {
ext.kotlin_version = '1.7.10'
ext.kotlin_version = "2.1.0"
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("com.android.tools.build:gradle:8.7.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
}

Expand All @@ -21,39 +21,51 @@ allprojects {
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: "com.android.library"
apply plugin: "kotlin-android"

android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'dev.britannio.in_app_review'
}
namespace = "dev.britannio.in_app_review"

compileSdkVersion 33
compileSdk = 35

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = JavaVersion.VERSION_11
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
main.java.srcDirs += "src/main/kotlin"
test.java.srcDirs += "src/test/kotlin"
}

defaultConfig {
minSdkVersion 16
minSdk = 21
}

dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito:mockito-core:5.0.0")
// Release notes: https://developer.android.com/reference/com/google/android/play/core/release-notes-in_app_reviews
implementation 'com.google.android.play:review:2.0.2'
implementation 'com.google.android.play:review-ktx:2.0.2'
// Release notes: https://developers.google.com/android/guides/releases
implementation 'com.google.android.gms:play-services-base:18.2.0'
implementation 'com.google.android.gms:play-services-base:18.7.2'
}

testOptions {
unitTests.all {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
}
}
Loading