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 {
7
7
applicationId " com.unity3d.ads.example"
8
8
minSdkVersion 19
9
9
targetSdkVersion 30
10
- versionCode = 3740
11
- versionName = " 3.7.4 "
10
+ versionCode = 3750
11
+ versionName = " 3.7.5 "
12
12
}
13
13
14
14
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 {
19
19
ext {
20
20
GROUP_ID = " com.unity3d.ads"
21
21
ARTIFACT_ID = " unity-ads"
22
- VERSION_ID = " 3.7.4 "
23
- VERSION_CODE = 3740
22
+ VERSION_ID = " 3.7.5 "
23
+ VERSION_CODE = 3750
24
24
SIGN_AAR = properties. getProperty(" SIGN_AAR" ) ?: false
25
25
}
26
26
@@ -74,10 +74,10 @@ android {
74
74
75
75
dependencies {
76
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' )
77
+ androidTestCompileOnly project(' :unity-scaradapter-2000' )
78
+ androidTestCompileOnly project(' :unity-scaradapter-1950' )
79
+ androidTestCompileOnly project(' :unity-scaradapter-1920' )
80
+ androidTestCompileOnly project(' :unity-scaradapter-common' )
81
81
androidTestImplementation ' org.mockito:mockito-core:2.28.2'
82
82
androidTestImplementation ' org.mockito:mockito-android:2.25.0'
83
83
androidTestImplementation ' androidx.test:runner:1.3.0'
Original file line number Diff line number Diff line change @@ -42,22 +42,4 @@ dependencies {
42
42
compileOnly ' com.google.android.gms:play-services-ads:19.2.0'
43
43
}
44
44
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 {
42
42
compileOnly ' com.google.android.gms:play-services-ads:19.5.0'
43
43
}
44
44
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 {
42
42
compileOnly ' com.google.android.gms:play-services-ads:20.1.0'
43
43
}
44
44
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 {
36
36
androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
37
37
}
38
38
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