Skip to content

Commit

Permalink
Merge pull request #767 from prebid/752-update-gma-version-to-newest
Browse files Browse the repository at this point in the history
Update GMA Version to 23.1.0
  • Loading branch information
jsligh authored Jun 20, 2024
2 parents 027fde2 + cf14b77 commit a52642b
Show file tree
Hide file tree
Showing 63 changed files with 812 additions and 75 deletions.
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ version: 2.1
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
# See: https://circleci.com/docs/2.0/orb-intro/
orbs:
android: circleci/android@1.0.3
android: circleci/android@2.5.0
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
android-test:
executor:
name: android/android-machine
tag: default
steps:
- checkout
- android/change-java-version:
java-version: 17
- android/start-emulator-and-run-tests:
post-emulator-launch-assemble-command: ./gradlew PrebidDemoKotlin:assembleAndroidTest
test-command: ./gradlew PrebidDemoKotlin:connectedDebugAndroidTest
Expand All @@ -29,12 +32,14 @@ jobs:
type: string
executor:
name: android/android-machine

tag: default
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- android/change-java-version:
java-version: 17
- run:
command: << parameters.buildCommand >>

Expand All @@ -44,11 +49,14 @@ jobs:
# See: https://circleci.com/docs/2.0/executor-types/
executor:
name: android/android-machine
tag: default
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- android/change-java-version:
java-version: 17
# And finally run the release build
- run:
name: Test Frameworks
Expand Down
11 changes: 6 additions & 5 deletions Example/PrebidDemoJava/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
apply plugin: 'com.android.application'

android {
setCompileSdkVersion(33)
namespace "org.prebid.mobile.javademo"
setCompileSdkVersion(34)
setBuildToolsVersion("30.0.3")
defaultConfig {
minSdkVersion 19
targetSdkVersion 33
minSdkVersion 21
targetSdkVersion 34
versionCode 1
versionName "1.0.0"
applicationId "org.prebid.mobile.javademo"
Expand All @@ -14,8 +15,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildFeatures {
dataBinding true
Expand Down
3 changes: 1 addition & 2 deletions Example/PrebidDemoJava/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.prebid.mobile.javademo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Required permissions -->
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
11 changes: 6 additions & 5 deletions Example/PrebidDemoKotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
setCompileSdkVersion(33)
namespace "org.prebid.mobile.prebidkotlindemo"
setCompileSdkVersion(34)
setBuildToolsVersion("30.0.3")
defaultConfig {
minSdkVersion 19
targetSdkVersion 33
minSdkVersion 21
targetSdkVersion 34
versionCode 1
versionName "1.0.0"
applicationId "org.prebid.mobile.prebidkotlindemo"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildFeatures {
dataBinding true
Expand Down
3 changes: 1 addition & 2 deletions Example/PrebidDemoKotlin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.prebid.mobile.prebidkotlindemo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Required permissions -->
<uses-permission android:name="android.permission.INTERNET"/>
Expand Down
13 changes: 7 additions & 6 deletions Example/PrebidInternalTestApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

android {
setCompileSdkVersion(33)
namespace "org.prebid.mobile.renderingtestapp"
setCompileSdkVersion(34)
setBuildToolsVersion("30.0.3")
defaultConfig {
minSdkVersion 19
targetSdkVersion 33
minSdkVersion 21
targetSdkVersion 34
versionCode 1
versionName "1.0.0"
applicationId "org.prebid.mobile.renderingtestapp"
Expand All @@ -40,11 +41,11 @@ android {
exclude 'LICENSE.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
adbOptions {
timeOutInMs 5 * 60 * 1000 // 5 minutes
Expand Down
3 changes: 1 addition & 2 deletions Example/PrebidInternalTestApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.prebid.mobile.renderingtestapp">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class ConsentSettingsFragment : PreferenceFragmentCompat(), SharedPreferences.On
getDefaultSharedPreference()?.registerOnSharedPreferenceChangeListener(this)
}

override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String) {
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {

when (val preference = findPreference<Preference>(key)) {
when (val preference = key?.let { findPreference<Preference>(it) }) {
is IntegerEditTextPreferenceWithValue ->
preference.summary = sharedPreferences?.getInt(key, -1).toString()
is EditTextPreferenceWithValue ->
Expand Down
9 changes: 8 additions & 1 deletion PrebidMobile/PrebidMobile-admobAdapters/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ apply from: '../publisher.gradle'
apply from: '../tests.gradle'

android {
namespace "org.prebid.mobile.admob.adapters"
defaultConfig {
minSdkVersion 19
minSdkVersion 21
}
testOptions {
unitTests.all {
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
systemProperty 'robolectric.invokedynamic.enable', 'false'
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="org.prebid.mobile.admob.adapters"/>
<manifest/>
Loading

0 comments on commit a52642b

Please sign in to comment.