Skip to content

Commit 39a4b3c

Browse files
authored
Merge pull request #55 from appodeal/release/3.2.0-beta.3
Release/3.2.0-beta.3 (SDK-5290)
2 parents 22d41ab + c82b764 commit 39a4b3c

File tree

13 files changed

+35
-15
lines changed

13 files changed

+35
-15
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.2.0-beta.3
2+
3+
* Updated Kotlin to 1.8.10 and use bom for align all kotlin versions
4+
* Added android namespace for AGP version > 8;
5+
16
## 3.2.0-beta.2
27

38
* Updated Appodeal iOS SDK to [3.2.0-beta.2](https://docs.appodeal.com/ios/changelog)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Add the dependency to the `pubspec.yaml` file in your project:
4343

4444
```yaml
4545
dependencies:
46-
stack_appodeal_flutter: 3.2.0-beta.2
46+
stack_appodeal_flutter: 3.2.0-beta.3
4747
```
4848
4949
Install the plugin by running the command below in the terminal:

android/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
group 'com.appodeal.appodeal_flutter'
22

33
buildscript {
4-
ext.kotlin_version = '1.7.20'
4+
ext.kotlin_version = '1.8.10'
55
repositories {
66
google()
77
mavenCentral()
@@ -25,6 +25,11 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28+
// Conditional for compatibility with AGP <4.2.
29+
if (project.android.hasProperty("namespace")) {
30+
namespace 'com.appodeal.appodeal_flutter'
31+
}
32+
2833
compileSdk 33
2934

3035
defaultConfig {
@@ -47,7 +52,7 @@ android {
4752
}
4853

4954
dependencies {
50-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
55+
implementation(platform("org.jetbrains.kotlin:kotlin-bom:$kotlin_version"))
5156
// Appodeal SDK 3.2.0.1-beta.2
5257
implementation 'com.appodeal.ads.sdk:core:3.2.0-beta.2'
5358
implementation 'com.appodeal.ads.sdk.networks:iab:3.2.0.0-beta.2'

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx4096m
22
android.useAndroidX=true
33
android.enableJetifier=true

example/android/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2828

2929
android {
3030
compileSdk 33
31+
namespace 'com.appodeal.appodeal_flutter_example'
3132

3233
defaultConfig {
3334
minSdk 21
@@ -62,7 +63,7 @@ flutter {
6263
}
6364

6465
dependencies {
65-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
66+
implementation(platform("org.jetbrains.kotlin:kotlin-bom:$kotlin_version"))
6667
// Appodeal SDK 3.2.0.1-beta.2
6768
implementation 'com.appodeal.ads:sdk:3.2.0.1-beta.2'
6869
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
xmlns:tools="http://schemas.android.com/tools"
3-
package="com.appodeal.appodeal_flutter_example">
2+
xmlns:tools="http://schemas.android.com/tools">
43

54
<application
65
android:icon="@mipmap/ic_launcher"

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.7.20'
2+
ext.kotlin_version = '1.8.10'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.3.1'
9+
classpath 'com.android.tools.build:gradle:8.1.4'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
classpath 'com.google.gms:google-services:4.4.0'
1212
}

example/android/gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx4096m
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.defaults.buildfeatures.buildconfig=true
5+
android.nonTransitiveRClass=false
6+
android.nonFinalResIds=false

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip

example/lib/main.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ class _AppodealDemoAppState extends State<AppodealDemoApp> {
5555
home: Scaffold(
5656
appBar: AppBar(
5757
centerTitle: true,
58-
title: const Text('Appodeal Flutter Demo'),
58+
title: Column(
59+
crossAxisAlignment: CrossAxisAlignment.center,
60+
children: [
61+
Text('Appodeal Flutter Demo', style: TextStyle(fontSize: 20)),
62+
Text('ver. ${Appodeal.getSDKVersion()}',
63+
style: TextStyle(fontSize: 14)),
64+
],
65+
),
5966
),
6067
body: Column(children: [
6168
Row(

0 commit comments

Comments
 (0)