Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ Create and update your Mailchimp contacts from your Android app. The Mailchimp S

Coming Soon

### Adding The Mailchimp SDK to your Project

First, add https://jitpack.io to your list of maven repositories if it's not already present. Ex. This is an list of Gradle repositories that contains jitpack

```gradle
repositories {
mavenCentral()
maven { url 'https://jitpack.io' } // <-- New repository
}
```

Next add the Mailchimp SDK to your list of dependencies. Below is a gradle example

```gradle
implementation 'com.github.mailchimp:Mailchimp-SDK-Android:0.1.0'
```

### Initializing the SDK

The first step is to create the configuration object. The configuration object has three different fields.
Expand Down
45 changes: 30 additions & 15 deletions mailchimp-sdk-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,36 @@
* limitations under the License.
*/

apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28


defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

testOptions {
unitTests.returnDefaultValues = true
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
Expand All @@ -24,19 +52,6 @@ dependencies {
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
}

sourceCompatibility = "7"
targetCompatibility = "7"

repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
24 changes: 24 additions & 0 deletions mailchimp-sdk-api/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
~ Licensed under the Mailchimp Mobile SDK License Agreement (the "License");
~ you may not use this file except in compliance with the License. Unless
~ required by applicable law or agreed to in writing, software distributed
~ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
~ OR CONDITIONS OF ANY KIND, either or express or implied.
~
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<!--
~ Licensed under the Mailchimp Mobile SDK License Agreement (the "License");
~ you may not use this file except in compliance with the License. Unless
~ required by applicable law or agreed to in writing, software distributed
~ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
~ OR CONDITIONS OF ANY KIND, either or express or implied.
~
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mailchimp.sdk.api"/>