diff --git a/.circleci/config.yml b/.circleci/config.yml index 116334f..0b1e672 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,35 +1,30 @@ -version: 2 +version: 2.1 jobs: build: docker: - - image: circleci/android:api-27-alpha + - auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + image: cimg/android:2023.04 environment: + JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64 JVM_OPTS: -Xmx3200m - working_directory: ~/android-sdk - steps: - checkout - run: - name: Create configuration files - command: | - touch api_keys.properties - cat > keystore.properties << EOL - keyAlias = circleci - keyPassword = circleci - storeFile = ./../keystore.jks - storePassword = circleci - EOL + name: Copy configuration files + command: cp .circleci/config/* . - restore_cache: - key: v1-dependencies-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + key: v2-dependencies-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - run: name: Download dependencies command: ./gradlew androidDependencies - save_cache: paths: - ~/.gradle - key: v1-dependencies-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + key: v2-dependencies-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - run: name: Run tests @@ -45,3 +40,10 @@ jobs: path: ~/junit - store_artifacts: path: ~/junit + +workflows: + workflow: + jobs: + - build: + context: + - org-global diff --git a/.keep b/.circleci/config/api_keys.properties similarity index 100% rename from .keep rename to .circleci/config/api_keys.properties diff --git a/.circleci/config/keystore.properties b/.circleci/config/keystore.properties new file mode 100644 index 0000000..89fcec8 --- /dev/null +++ b/.circleci/config/keystore.properties @@ -0,0 +1,4 @@ +keyAlias = circleci +keyPassword = circleci +storeFile = ./../keystore.jks +storePassword = circleci diff --git a/.gitignore b/.gitignore index f7cf2b6..3590440 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,4 @@ captures/ *.jks # Keys and passwords -keystore.properties +/keystore.properties diff --git a/README.md b/README.md index 620dd18..a02ece9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ allprojects { ```gradle dependencies { - implementation 'com.github.talkable:android-sdk:0.5.11' + implementation 'com.github.talkable:android-sdk:0.5.12' } ``` diff --git a/app/build.gradle b/app/build.gradle index 2edfa2a..2a64840 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,13 +13,13 @@ android { storePassword keystoreProperties['storePassword'] } } - compileSdkVersion 27 + compileSdkVersion 31 defaultConfig { applicationId "com.talkable.demo" minSdkVersion 16 - targetSdkVersion 27 - versionCode 33 - versionName "0.5.2" + targetSdkVersion 31 + versionCode 34 + versionName "0.5.3" } buildTypes { release { @@ -28,12 +28,16 @@ android { signingConfig signingConfigs.config } } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(path: ':sdk') - implementation 'com.android.support:design:27.1.1' - implementation 'com.android.support:support-v4:27.1.1' + implementation 'com.google.android.material:material:1.0.0' + implementation 'androidx.legacy:legacy-support-v4:1.0.0' testImplementation 'junit:junit:4.12' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index be019c5..828657c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ package="com.talkable.demo"> + + android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" + android:exported="true"> @@ -43,8 +45,9 @@ + - diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index ee404c2..fd4e777 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -20,7 +20,8 @@ android:layout_height="wrap_content" android:orientation="vertical"> - - - + - - - + - - - + - - - + - - - + - - - + - - - +