diff --git a/android/jitpack.yml b/android/jitpack.yml new file mode 100644 index 0000000..17321ad --- /dev/null +++ b/android/jitpack.yml @@ -0,0 +1,3 @@ +install: + - ./gradlew :olm-sdk:build :olm-sdk:publishToMavenLocal -x :olm-sdk:test + - find . -name "*.aar" \ No newline at end of file diff --git a/android/olm-sdk/build.gradle b/android/olm-sdk/build.gradle index e8f0f49..52a1337 100644 --- a/android/olm-sdk/build.gradle +++ b/android/olm-sdk/build.gradle @@ -1,6 +1,7 @@ import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.library' +apply plugin: 'maven-publish' android { compileSdkVersion 30 @@ -128,3 +129,13 @@ dependencies { androidTestImplementation 'androidx.test:rules:1.3.0' androidTestImplementation 'androidx.test.ext:junit:1.1.2' } + +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } +}