Skip to content

Commit

Permalink
Merge pull request #193 from apptentive/branch_5.5.0
Browse files Browse the repository at this point in the history
Release 5.5.0
  • Loading branch information
weeeBox authored Nov 14, 2019
2 parents 5d2686a + fe42651 commit a3e4b9f
Show file tree
Hide file tree
Showing 185 changed files with 952 additions and 597 deletions.
116 changes: 116 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ android:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-28.0.3
- build-tools-29.0.2
# - android-25
- android-28
- android-29
- extra-android-m2repository
- extra-google-m2repository
- extra-google-google_play_services
- addon-google_apis-google-28
- addon-google_apis-google-29
# - sys-img-armeabi-v7a-google_apis-25
# - sys-img-armeabi-v7a-android-25
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager "platforms;android-29"
install: true
before_script:
# - echo "y" | android update sdk -a --no-ui --filter android-25
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2019-11-12 - v5.5.0

#### Fixes

* Added support for AndroidX.

# 2019-10-24 - v5.4.7

#### Fixes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use your app, to talk to them at the right time, and in the right way.

##### [Release Notes](https://learn.apptentive.com/knowledge-base/android-sdk-release-notes/)

##### Binary releases are hosted for Maven [here](http://search.maven.org/#artifactdetails|com.apptentive|apptentive-android|5.4.7|aar)
##### Binary releases are hosted for Maven [here](http://search.maven.org/#artifactdetails|com.apptentive|apptentive-android|5.5.0|aar)

#### Reporting Bugs

Expand Down
34 changes: 19 additions & 15 deletions apptentive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,35 @@ init()
apply plugin: 'com.android.library'

dependencies {
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'

testImplementation 'junit:junit:4.12'
testImplementation "org.powermock:powermock-module-junit4:1.6.2"
testImplementation "org.powermock:powermock-module-junit4-rule:1.6.2"
testImplementation "org.powermock:powermock-api-mockito:1.6.2"
testImplementation "org.powermock:powermock-classloading-xstream:1.6.2"
testImplementation 'org.powermock:powermock-module-junit4:1.6.6'
testImplementation 'org.powermock:powermock-module-junit4-rule:1.6.6'
testImplementation 'org.powermock:powermock-api-mockito:1.6.6'
testImplementation 'org.powermock:powermock-classloading-xstream:1.6.6'

// Required for instrumented tests
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
}

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 29
buildToolsVersion '29.0.2'

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 29
// BUILD_NUMBER is provided by Jenkins. Default to 1 in dev builds.
versionCode System.getenv("BUILD_NUMBER") as Integer ?: System.getenv("TRAVIS_BUILD_NUMBER") as Integer ?: 1
versionName project.version
consumerProguardFiles 'consumer-proguard-rules.pro'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resValue "string", "apptentive_distribution_version", versionName
vectorDrawables.useSupportLibrary = true
}
Expand Down Expand Up @@ -182,6 +183,9 @@ artifacts {
afterEvaluate {
androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}
repositories {
mavenCentral()
}

def init() {
// Set project information that will be available to all tasks.
Expand Down
4 changes: 2 additions & 2 deletions apptentive/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

-keep class android.os.Build { *; }
-keep class android.graphics.Typeface { *; }
-keep class android.support.v4.app.Fragment { *; }
-keep class android.support.v4.app.FragmentManagerImpl { *; }
-keep class androidx.fragment.app.Fragment { *; }
-keep class androidx.fragment.app.FragmentManagerImpl { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package com.apptentive.android.sdk;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import androidx.test.InstrumentationRegistry;

public class InstrumentationTestCaseBase extends TestCaseBase {
protected Context getContext() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

package com.apptentive.android.sdk.conversation;

import android.support.test.InstrumentationRegistry;

import androidx.test.InstrumentationRegistry;
import com.apptentive.android.sdk.ApptentiveInternal;
import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.TestCaseBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.security.keystore.KeyGenParameterSpec;
import android.security.keystore.KeyProperties;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;

import com.apptentive.android.sdk.Encryption;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.security.keystore.KeyGenParameterSpec;
import android.security.keystore.KeyProperties;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import com.apptentive.android.sdk.Encryption;
import com.apptentive.android.sdk.InstrumentationTestCaseBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
package com.apptentive.android.sdk.module.engagement;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.test.runner.AndroidJUnit4;
import androidx.annotation.NonNull;
import androidx.test.runner.AndroidJUnit4;

import com.apptentive.android.sdk.InstrumentationTestCaseBase;
import com.apptentive.android.sdk.module.engagement.interaction.model.Interaction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import android.content.Context;
import android.content.Intent;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.runner.AndroidJUnit4;

import com.apptentive.android.sdk.InstrumentationTestCaseBase;
import com.apptentive.android.sdk.module.engagement.interaction.model.Interaction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
package com.apptentive.android.sdk.module.engagement;

import android.content.Context;
import android.support.test.runner.AndroidJUnit4;

import androidx.test.runner.AndroidJUnit4;
import com.apptentive.android.sdk.InstrumentationTestCaseBase;
import com.apptentive.android.sdk.module.engagement.interaction.model.Interaction;
import com.apptentive.android.sdk.module.engagement.interaction.model.TextModalInteraction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,15 @@
package com.apptentive.android.sdk.storage;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import com.apptentive.android.sdk.encryption.EncryptionKey;
import com.apptentive.android.sdk.model.AppReleasePayload;
import com.apptentive.android.sdk.model.DevicePayload;
import com.apptentive.android.sdk.model.EventPayload;
import com.apptentive.android.sdk.model.Payload;
import com.apptentive.android.sdk.model.PersonPayload;
import com.apptentive.android.sdk.model.SdkPayload;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import com.apptentive.android.sdk.model.*;
import com.apptentive.android.sdk.module.messagecenter.model.MessageFactory;

import org.json.JSONException;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import java.io.*;

@RunWith(AndroidJUnit4.class)
public class ApptentiveDatabaseHelperTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

package com.apptentive.android.sdk.util.threading;

import android.support.test.runner.AndroidJUnit4;

import androidx.test.runner.AndroidJUnit4;
import com.apptentive.android.sdk.TestCaseBase;

import org.junit.After;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package com.apptentive.android.sdk.util.threading;

import android.support.test.runner.AndroidJUnit4;
import androidx.test.runner.AndroidJUnit4;

import com.apptentive.android.sdk.TestCaseBase;

Expand Down
Loading

0 comments on commit a3e4b9f

Please sign in to comment.