File tree Expand file tree Collapse file tree 10 files changed +52
-89
lines changed
Expand file tree Collapse file tree 10 files changed +52
-89
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ dependencies {
1919ext {
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
7575dependencies {
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'
Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments