Skip to content

Commit 73eee20

Browse files
committed
Release 3.7.4
1 parent 618ce50 commit 73eee20

File tree

122 files changed

+4156
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+4156
-30
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ captures
77
testServerAddress.txt
88
app/bin
99
unity-ads/bin
10+
libs
1011
javadoc
1112
.settings
1213
.project

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ test-local-staging-localhost: device-connected wake-up-device push-test-server-a
3737
run-all-tests: test-instrumentation test-legacy test-integration
3838

3939
test-ci:
40-
./gradlew connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.InstrumentationTestSuite,com.unity3d.ads.test.LegacyTestSuite
40+
./gradlew unity-ads:connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.InstrumentationTestSuite,com.unity3d.ads.test.LegacyTestSuite
4141

4242
test-instrumentation:
43-
./gradlew connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.InstrumentationTestSuite
43+
./gradlew unity-ads:connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.InstrumentationTestSuite
4444

4545
test-legacy:
46-
./gradlew connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.LegacyTestSuite
46+
./gradlew unity-ads:connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.LegacyTestSuite
4747

4848
test-integration:
49-
./gradlew connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.IntegrationTestSuite
49+
./gradlew unity-ads:connectedDebugAndroidTest -i -w --stacktrace -Pandroid.testInstrumentationRunnerArguments.class=com.unity3d.ads.test.IntegrationTestSuite
5050

5151
push-test-server-address-ip:
5252
echo http://$(shell ifconfig |grep "inet" |grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" |grep -v -E "^0|^127" -m 1):8080 > testServerAddress.txt

app/build.gradle

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.unity3d.ads.example"
88
minSdkVersion 19
99
targetSdkVersion 30
10-
versionCode = 3720
11-
versionName = "3.7.2"
10+
versionCode = 3740
11+
versionName = "3.7.4"
1212
}
1313

1414
flavorDimensions "arEnabled"
@@ -27,18 +27,13 @@ android {
2727
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2828
}
2929
}
30-
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_7
32-
targetCompatibility JavaVersion.VERSION_1_7
33-
}
3430
}
3531

3632
dependencies {
37-
implementation fileTree(include: ['*.jar'], dir: 'libs')
38-
implementation 'androidx.appcompat:appcompat:1.0.0'
39-
implementation 'com.google.android.material:material:1.0.0'
40-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
41-
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
33+
implementation "com.google.android.material:material:1.3.0"
34+
implementation "androidx.appcompat:appcompat:1.3.0"
35+
implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
4236
arImplementation 'com.google.ar:core:1.4.0'
37+
implementation 'androidx.transition:transition:1.4.1'
4338
implementation project(':unity-ads')
4439
}
-4.17 KB
Loading

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
allprojects {
22
repositories {
33
google()
4-
jcenter()
4+
mavenCentral()
55
}
66
}
77

88
buildscript {
99
repositories {
10-
jcenter()
1110
gradlePluginPortal()
1211
google()
1312
}
1413

1514
dependencies {
16-
classpath 'com.android.tools.build:gradle:4.1.3'
15+
classpath 'com.android.tools.build:gradle:4.2.1'
1716
classpath 'org.jacoco:org.jacoco.core:0.8.1'
1817
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.20.0'
1918
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
2019
}
2120
}
2221

23-
apply from: 'nexusPublishing.gradle'
22+
apply from: 'nexusPublishing.gradle'

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-6.5-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

settings.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
include ':app', ':unity-ads'
1+
include ':unity-scaradapter-1920'
2+
include ':unity-scaradapter-1950'
3+
include ':unity-scaradapter-2000'
4+
include ':unity-scaradapter-common'
5+
include ':app', ':unity-ads'

unity-ads/build.gradle

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ dependencies {
1919
ext {
2020
GROUP_ID = "com.unity3d.ads"
2121
ARTIFACT_ID = "unity-ads"
22-
VERSION_ID = "3.7.2"
23-
VERSION_CODE = 3720
22+
VERSION_ID = "3.7.4"
23+
VERSION_CODE = 3740
2424
SIGN_AAR = properties.getProperty("SIGN_AAR") ?: false
2525
}
2626

@@ -47,6 +47,7 @@ android {
4747
buildConfigField('int', 'VERSION_CODE', "$versionCode")
4848
buildConfigField('String', 'VERSION_NAME', "\"$versionName\"")
4949
testBuildType "debug"
50+
multiDexEnabled true
5051

5152
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
5253
testInstrumentationRunnerArguments disableAnalytics: 'true' // Won't work yet, see: https://code.google.com/p/android/issues/detail?id=188241
@@ -71,6 +72,25 @@ android {
7172
}
7273
}
7374

75+
dependencies {
76+
implementation fileTree(dir: 'libs', include: ['*.jar'])
77+
androidTestImplementation project(':unity-scaradapter-2000')
78+
androidTestImplementation project(':unity-scaradapter-1950')
79+
androidTestImplementation project(':unity-scaradapter-1920')
80+
androidTestImplementation project(':unity-scaradapter-common')
81+
androidTestImplementation 'org.mockito:mockito-core:2.28.2'
82+
androidTestImplementation 'org.mockito:mockito-android:2.25.0'
83+
androidTestImplementation 'androidx.test:runner:1.3.0'
84+
androidTestImplementation 'androidx.test:rules:1.3.0'
85+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
86+
androidTestImplementation 'com.google.android.gms:play-services-ads:19.5.0'
87+
compileOnly 'com.google.ar:core:1.0.0'
88+
compileOnly project(':unity-scaradapter-2000')
89+
compileOnly project(':unity-scaradapter-1950')
90+
compileOnly project(':unity-scaradapter-1920')
91+
compileOnly project(':unity-scaradapter-common')
92+
}
93+
7494
task javadoc(type: Javadoc) {
7595
description "Generates Javadoc for Release"
7696
source = android.sourceSets.main.java.srcDirs
@@ -126,4 +146,4 @@ def getPropertyStringWithDefaultValue(String key, String defaultValue) {
126146

127147
apply from: 'publishing.gradle'
128148
apply from: 'artifactory.gradle'
129-
apply from: 'jacoco.gradle'
149+
apply from: 'jacoco.gradle'

unity-ads/src/androidTest/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
3636
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
3737
android:hardwareAccelerated="true" />
38+
<!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
39+
<meta-data
40+
android:name="com.google.android.gms.ads.APPLICATION_ID"
41+
android:value="ca-app-pub-3940256099942544~3347511713"/>
3842
</application>
3943

4044
</manifest>

unity-ads/src/androidTest/java/com/unity3d/ads/test/InstrumentationTestSuite.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.unity3d.ads.test;
22

3+
import com.unity3d.ads.test.instrumentation.services.ads.gmascar.GmaScarTestSuite;
34
import com.unity3d.ads.test.instrumentation.services.ads.operation.AdOperationTests;
45
import com.unity3d.ads.test.instrumentation.services.ads.operation.LoadModuleDecoratorInitializationBufferTests;
56
import com.unity3d.ads.test.instrumentation.services.ads.operation.LoadModuleDecoratorTests;
@@ -28,7 +29,6 @@
2829
AcquisitionTypeTest.class,
2930
AdsPropertiesTests.class,
3031
InitializationNotificationCenterTest.class,
31-
// LoadBridgeTest.class,
3232
WebPlayerViewSettingsCacheTest.class,
3333
WebPlayerViewCacheTest.class,
3434
BannerViewCacheTests.class,
@@ -42,7 +42,8 @@
4242
LoadModuleDecoratorInitializationBufferTests.class,
4343
AdOperationTests.class,
4444
ShowModuleTests.class,
45-
ConfigurationTest.class
45+
ConfigurationTest.class,
46+
GmaScarTestSuite.class
4647
})
4748

4849
public class InstrumentationTestSuite {}

0 commit comments

Comments
 (0)