Skip to content

Commit 524eeba

Browse files
committed
Release 3.7.5
1 parent 73eee20 commit 524eeba

File tree

10 files changed

+52
-89
lines changed

10 files changed

+52
-89
lines changed

app/build.gradle

Lines changed: 2 additions & 2 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 = 3740
11-
versionName = "3.7.4"
10+
versionCode = 3750
11+
versionName = "3.7.5"
1212
}
1313

1414
flavorDimensions "arEnabled"

fatAar.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
task deleteOldJar(type: Delete) {
2+
delete("../unity-ads/libs/${project.name}.jar")
3+
}
4+
5+
def copyJarTask(buildType) {
6+
return tasks.create("copyJars${buildType}", Copy.class) {
7+
from("build/intermediates/compile_library_classes_jar/${buildType}/")
8+
into('../unity-ads/libs/')
9+
include('classes.jar')
10+
rename('classes.jar', "${project.name}.jar")
11+
}.dependsOn(deleteOldJar)
12+
}
13+
14+
project.tasks.whenTaskAdded { Task theTask ->
15+
if (theTask.name == 'bundleLibCompileToJarRelease') {
16+
theTask.finalizedBy(copyJarTask("release"))
17+
}
18+
if (theTask.name == 'bundleLibCompileToJarDebug') {
19+
theTask.finalizedBy(copyJarTask("debug"))
20+
}
21+
}

nexusPublishing.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apply plugin: 'io.github.gradle-nexus.publish-plugin'
2+
3+
Properties properties = new Properties()
4+
if (project.rootProject.file('local.properties').exists()) {
5+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
6+
}
7+
8+
nexusPublishing {
9+
repositories {
10+
sonatype {
11+
stagingProfileId = properties.getProperty("NEXUS_PROFILE_ID")
12+
username = properties.getProperty("NEXUS_USERNAME")
13+
password = properties.getProperty("NEXUS_PASSWORD")
14+
// Add these lines if using new Sonatype infra
15+
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
16+
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
17+
}
18+
}
19+
}

scripts/build.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/test.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

unity-ads/build.gradle

Lines changed: 6 additions & 6 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.4"
23-
VERSION_CODE = 3740
22+
VERSION_ID = "3.7.5"
23+
VERSION_CODE = 3750
2424
SIGN_AAR = properties.getProperty("SIGN_AAR") ?: false
2525
}
2626

@@ -74,10 +74,10 @@ android {
7474

7575
dependencies {
7676
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')
77+
androidTestCompileOnly project(':unity-scaradapter-2000')
78+
androidTestCompileOnly project(':unity-scaradapter-1950')
79+
androidTestCompileOnly project(':unity-scaradapter-1920')
80+
androidTestCompileOnly project(':unity-scaradapter-common')
8181
androidTestImplementation 'org.mockito:mockito-core:2.28.2'
8282
androidTestImplementation 'org.mockito:mockito-android:2.25.0'
8383
androidTestImplementation 'androidx.test:runner:1.3.0'

unity-scaradapter-1920/build.gradle

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,4 @@ dependencies {
4242
compileOnly 'com.google.android.gms:play-services-ads:19.2.0'
4343
}
4444

45-
46-
task deleteOldJar(type: Delete) {
47-
delete("../unity-ads/libs/${project.name}.jar")
48-
}
49-
50-
task copyJars(type: Copy) {
51-
from('build/intermediates/compile_library_classes_jar/release/')
52-
into('../unity-ads/libs/')
53-
include('classes.jar')
54-
rename('classes.jar', "${project.name}.jar")
55-
}
56-
57-
copyJars.dependsOn(deleteOldJar)
58-
59-
project.tasks.whenTaskAdded { Task theTask ->
60-
if (theTask.name == 'bundleLibCompileToJarRelease') {
61-
theTask.finalizedBy(copyJars)
62-
}
63-
}
45+
apply from: '../fatAar.gradle'

unity-scaradapter-1950/build.gradle

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,4 @@ dependencies {
4242
compileOnly 'com.google.android.gms:play-services-ads:19.5.0'
4343
}
4444

45-
task deleteOldJar(type: Delete) {
46-
delete("../unity-ads/libs/${project.name}.jar")
47-
}
48-
49-
task copyJars(type: Copy) {
50-
from('build/intermediates/compile_library_classes_jar/release/')
51-
into('../unity-ads/libs/')
52-
include('classes.jar')
53-
rename('classes.jar', "${project.name}.jar")
54-
}
55-
56-
copyJars.dependsOn(deleteOldJar)
57-
58-
project.tasks.whenTaskAdded { Task theTask ->
59-
if (theTask.name == 'bundleLibCompileToJarRelease') {
60-
theTask.finalizedBy(copyJars)
61-
}
62-
}
45+
apply from: '../fatAar.gradle'

unity-scaradapter-2000/build.gradle

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,4 @@ dependencies {
4242
compileOnly 'com.google.android.gms:play-services-ads:20.1.0'
4343
}
4444

45-
task deleteOldJar(type: Delete) {
46-
delete("../unity-ads/libs/${project.name}.jar")
47-
}
48-
49-
task copyJars(type: Copy) {
50-
from('build/intermediates/compile_library_classes_jar/release/')
51-
into('../unity-ads/libs/')
52-
include('classes.jar')
53-
rename('classes.jar', "${project.name}.jar")
54-
}
55-
56-
copyJars.dependsOn(deleteOldJar)
57-
58-
project.tasks.whenTaskAdded { Task theTask ->
59-
if (theTask.name == 'bundleLibCompileToJarRelease') {
60-
theTask.finalizedBy(copyJars)
61-
}
62-
}
45+
apply from: '../fatAar.gradle'

unity-scaradapter-common/build.gradle

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,4 @@ dependencies {
3636
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3737
}
3838

39-
task deleteOldJar(type: Delete) {
40-
delete("../unity-ads/libs/${project.name}.jar")
41-
}
42-
43-
task copyJars(type: Copy) {
44-
from('build/intermediates/compile_library_classes_jar/release/')
45-
into('../unity-ads/libs/')
46-
include('classes.jar')
47-
rename('classes.jar', "${project.name}.jar")
48-
}
49-
50-
copyJars.dependsOn(deleteOldJar)
51-
52-
project.tasks.whenTaskAdded { Task theTask ->
53-
if (theTask.name == 'bundleLibCompileToJarRelease') {
54-
theTask.finalizedBy(copyJars)
55-
}
56-
}
39+
apply from: '../fatAar.gradle'

0 commit comments

Comments
 (0)