Skip to content

Commit a38aa70

Browse files
author
ehowlsla
committed
unity sdk 지원을 위한 리팩토링
1 parent 897cca9 commit a38aa70

File tree

135 files changed

+6378
-2702
lines changed

Some content is hidden

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

135 files changed

+6378
-2702
lines changed

bootpay/.DS_Store

4 KB
Binary file not shown.

bootpay/bootpay.iml

Lines changed: 26 additions & 22 deletions
Large diffs are not rendered by default.

bootpay/build.gradle

Lines changed: 65 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
12
apply plugin: 'com.android.library'
23
apply plugin: 'kotlin-android'
34

5+
46
android {
57
compileSdkVersion 26
68
buildToolsVersion '28.0.3'
@@ -18,32 +20,83 @@ android {
1820
}
1921
}
2022
compileOptions {
21-
sourceCompatibility = '1.8'
22-
targetCompatibility = '1.8'
23+
sourceCompatibility JavaVersion.VERSION_1_8
24+
targetCompatibility JavaVersion.VERSION_1_8
2325
}
2426
}
2527

2628
dependencies {
27-
implementation fileTree(dir: 'libs', include: ['*.jar'])
29+
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
30+
implementation 'com.android.support:appcompat-v7:26.1.0'// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
31+
// implementation files('libs/unity.jar')
32+
// implementation files('libs/gson-2.8.5.jar')
33+
// implementation files('libs/okio-2.2.2.jar')
34+
// implementation files('libs/retrofit-2.5.0.jar')
35+
// implementation files('libs/converter-gson-2.5.0.jar')
36+
// implementation files('libs/converter-moshi-2.5.0.jar')
37+
implementation files('libs/adapter-rxjava-2.5.0.jar')
38+
// implementation files('libs/okhttp-3.14.2.jar')
39+
// implementation files('libs/PersistentCookieJar-v1.0.1.aar')
40+
// implementation files('libs/play-services-ads-identifier-16.0.0.aar')
41+
// implementation files('libs/play-services-basement-16.2.0.aar')
42+
// implementation files('libs/rxjava-1.0.2.jar')
43+
44+
2845
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
2946
exclude group: 'com.android.support', module: 'support-annotations'
3047
})
31-
implementation 'com.google.code.gson:gson:2.8.2'
32-
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
33-
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
34-
implementation 'com.squareup.retrofit2:converter-moshi:2.3.0'
35-
implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
36-
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
37-
implementation 'com.android.support:appcompat-v7:26.0.0'// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
38-
// implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.'
48+
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.31" // build for use kotlin in unity development
49+
// implementation 'com.google.code.gson:gson:2.8.2'
50+
// implementation 'com.squareup.retrofit2:retrofit:2.3.0'
51+
// implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
52+
// implementation 'com.squareup.retrofit2:converter-moshi:2.3.0'
53+
// implementation 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
54+
// implementation 'com.squareup.okhttp3:okhttp:3.10.0'
55+
// implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
56+
57+
// implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
58+
// implementation 'com.pddstudio:encrypted-preferences:1.3.0'
59+
3960

4061
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.3.21'
41-
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
62+
63+
4264
}
65+
4366
repositories {
4467
mavenCentral()
4568
}
4669

4770

71+
//task to delete the old jar
72+
task deleteOldJar(type: Delete) {
73+
delete 'release/Bootpay.jar'
74+
}
75+
76+
//unity 빌드방법 - 아래 jar 다운로드 후 libs에 넣고, export jar 를 하면 생성된다
77+
//http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
78+
//https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST
79+
//https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=converter-gson&v=LATEST
80+
//https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=converter-moshi&v=LATEST
81+
//https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=adapter-rxjava&v=LATEST
82+
//https://search.maven.org/remote_content?g=com.squareup.okhttp3&a=okhttp3&v=LATEST
83+
//http://central.maven.org/maven2/com/squareup/okhttp3/okhttp/3.14.2/okhttp-3.14.2.jar
84+
//https://repository.mulesoft.org/nexus/content/repositories/public/com/github/franmontiel/PersistentCookieJar/v1.0.1/PersistentCookieJar-v1.0.1.aar
85+
//https://maven.google.com/com/google/android/gms/play-services-ads-identifier/16.0.0/play-services-ads-identifier-16.0.0.aar
86+
//http://central.maven.org/maven2/io/reactivex/rxjava/1.0.2/rxjava-1.0.2.jar
87+
//https://maven.google.com/com/google/android/gms/play-services-basement/16.2.0/play-services-basement-16.2.0.aar
88+
//http://central.maven.org/maven2/io/reactivex/rxjava/1.3.8/rxjava-1.3.8.jar
89+
90+
//task to export contents as jar
91+
task exportJar(type: Copy) {
92+
from('build/intermediates/intermediate-jars/release/')
93+
into('release/')
94+
include('classes.jar')
95+
rename('classes.jar', 'Bootpay.jar')
96+
}
97+
98+
exportJar.dependsOn(deleteOldJar, build)
99+
100+
48101
apply plugin: 'com.github.dcendents.android-maven'
49102
group='com.github.bootpay'
12.4 KB
Binary file not shown.
14.2 KB
Binary file not shown.
195 KB
Binary file not shown.

bootpay/src/.DS_Store

0 Bytes
Binary file not shown.

bootpay/src/main/.DS_Store

0 Bytes
Binary file not shown.

bootpay/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
</activity>
1717
</application>
1818

19+
1920
</manifest>

bootpay/src/main/java/.DS_Store

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)