Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 446cc2f

Browse files
committed
gradle fix
1 parent 73528a5 commit 446cc2f

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

OpenIAB

Submodule OpenIAB updated 107 files

settings.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
include ':Unity Plugin'
2-
1+
include ':Unity Plugin', ':library'
32
project(':Unity Plugin').projectDir = file('unity_plugin')
3+
project(':library').projectDir = new File('OpenIAB/library')

unity_plugin/build.gradle

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525

2626
dependencies {
2727
compile fileTree(dir: 'libs', include: '*.jar')
28-
compile "org.onepf:openiab:$openIabVersion"
28+
compile project(':library')
2929
}
3030

3131
task buildPlugin(dependsOn: 'assembleRelease') << {
@@ -35,17 +35,18 @@ task buildPlugin(dependsOn: 'assembleRelease') << {
3535
mkdir outAbsoluteDir
3636
mkdir unityPackageAbsolutePath
3737

38-
def openIabJar = project.configurations.compile.find {
39-
it.name.startsWith "openiab-${openIabVersion}"
40-
}
38+
//def openIabJar = project.configurations.compile.find {
39+
// it.name.startsWith "openiab-${openIabVersion}"
40+
//}
4141

42-
assert openIabJar != null
42+
def openIabJar = project.rootProject.file('OpenIAB/library/build/intermediates/bundles/release/classes.jar')
43+
44+
//assert openIabJar != null
4345
ant.unzip(src: openIabJar.absolutePath, dest: outAbsoluteDir)
4446

4547
// Copy compiled unity-plugin java source
4648
copy {
47-
from "${project(':Unity Plugin').projectDir.absolutePath}" +
48-
"${sep}build${sep}intermediates${sep}classes${sep}release"
49+
from "${project(':Unity Plugin').projectDir.absolutePath}" + "${sep}build${sep}intermediates${sep}classes${sep}release"
4950
into outAbsoluteDir
5051
include '**/*.class'
5152
}
97.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)