Skip to content

Commit

Permalink
Created an Android Artifact, Added a Manifest Entry, Added version ca…
Browse files Browse the repository at this point in the history
…talogs (#414)
  • Loading branch information
handstandsam authored Aug 16, 2022
1 parent 6cf4720 commit b956e7b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 6 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ buildscript {
classpath files('gradle/dropbox-pem-converter-plugin')
classpath 'gradle.plugin.com.github.blindpirate:gradle-legacy-osgi-plugin:0.0.6'
classpath "com.vanniktech:gradle-maven-publish-plugin:0.18.0"
classpath(libs.android.gradle.plugin)
classpath(libs.kotlin.gradle.plugin)
}
}

repositories {
mavenCentral()
}

dependencies {
// Important: Jackson 2.8+ will be free to use JDK7 features and no longer guarantees JDK6
// compatibility
Expand Down Expand Up @@ -273,6 +271,11 @@ apply plugin: 'com.vanniktech.maven.publish'
/* END PRIVATE REPO ONLY */

allprojects {
repositories {
google()
mavenCentral()
}

plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
Expand Down
17 changes: 17 additions & 0 deletions dropbox-android-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("com.android.library")
kotlin("android")
}

android {
compileSdk = libs.versions.android.compile.sdk.get().toInt()
defaultConfig {
minSdk = libs.versions.android.min.sdk.get().toInt()
targetSdk = libs.versions.android.target.sdk.get().toInt()
}
}

dependencies {
implementation(libs.kotlin.stdlib)
project(":")
}
6 changes: 6 additions & 0 deletions dropbox-android-sdk/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dropbox.core.android">
<queries>
<package android:name="com.dropbox.android"/>
</queries>
</manifest>
25 changes: 25 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[versions]
android_compile_sdk = "33"
android_gradle_plugin = "7.2.2"
android_min_sdk = "24"
android_target_sdk = "32"
androidx_activity = "1.5.0"
junit_jupiter = "5.8.2"
kotlin = "1.7.10"
kotlin_coroutines = "1.6.4"

[libraries]
android_gradle_plugin = { module = "com.android.tools.build:gradle", version.ref = "android_gradle_plugin" }
androidx_activity = { module = "androidx.activity:activity", version.ref = "androidx_activity" }
junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit_jupiter" }
kotlin_gradle_plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin_stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin_test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin_test_annotations_common = { module = "org.jetbrains.kotlin:kotlin-test-annotations-common", version.ref = "kotlin" }
kotlin_test_common = { module = "org.jetbrains.kotlin:kotlin-test-common", version.ref = "kotlin" }
kotlin_test_junit5 = { module = "org.jetbrains.kotlin:kotlin-test-junit5", version.ref = "kotlin" }
kotlin_test_jvm = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin_coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlin_coroutines" }

[plugins]
kotlin_jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
include ':proguard'


include ':dropbox-android-sdk'

0 comments on commit b956e7b

Please sign in to comment.