1+
12apply plugin : ' com.android.library'
23apply plugin : ' kotlin-android'
34
5+
46android {
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
2628dependencies {
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+
4366repositories {
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+
48101apply plugin : ' com.github.dcendents.android-maven'
49102group= ' com.github.bootpay'
0 commit comments