Skip to content

[PR-24286] Republish Talkable Android app #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ jobs:
- auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
image: cimg/android:2023.04
image: cimg/android:2024.01.1
environment:
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
JVM_OPTS: -Xmx3200m

steps:
Expand Down
19 changes: 10 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: 'com.android.application'


def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties")))

android {
namespace 'com.talkable.appdemo'
signingConfigs {
config {
keyAlias keystoreProperties['keyAlias']
Expand All @@ -13,13 +13,13 @@ android {
storePassword keystoreProperties['storePassword']
}
}
compileSdkVersion 31
compileSdkVersion 34
defaultConfig {
applicationId "com.talkable.demo"
minSdkVersion 16
targetSdkVersion 31
versionCode 34
versionName "0.5.3"
applicationId "com.talkable.appdemo"
minSdkVersion 21
targetSdkVersion 34
versionCode 35
versionName "0.5.4"
}
buildTypes {
release {
Expand All @@ -32,12 +32,13 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildToolsVersion '36.0.0'
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(path: ':sdk')
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
19 changes: 19 additions & 0 deletions app/src/androidTest/java/com/talkable/appdemo/ApplicationTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.talkable.appdemo;

import android.app.Application;
import androidx.test.core.app.ApplicationProvider;
import org.junit.Test;
import static org.junit.Assert.*;

/**
* <a href="https://developer.android.com/studio/test">Testing Fundamentals</a>
*/

public class ApplicationTest {
@Test
public void testApplication() {
// Getting the application context using AndroidX ApplicationProvider
Application app = ApplicationProvider.getApplicationContext();
assertNotNull(app); // Assert that the Application context is not null
}
}
13 changes: 0 additions & 13 deletions app/src/androidTest/java/com/talkable/demo/ApplicationTest.java

This file was deleted.

5 changes: 2 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.talkable.demo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET"/>
Expand All @@ -13,7 +12,7 @@
android:theme="@style/AppTheme"
android:name=".DemoApp">
<activity
android:name="com.talkable.demo.MainActivity"
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:exported="true">
<intent-filter>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.talkable.demo;
package com.talkable.appdemo;

import android.app.Application;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.talkable.demo;
package com.talkable.appdemo;

import android.app.Activity;
import android.os.Bundle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.talkable.demo;
package com.talkable.appdemo;


import android.widget.Toast;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.talkable.demo.MainActivity">
tools:context="com.talkable.appdemo.MainActivity">

<ScrollView
android:layout_width="fill_parent"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.talkable.demo;
package com.talkable.appdemo;

import org.junit.Test;

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.4'
classpath 'com.github.bjoernq:unmockplugin:0.7.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'com.android.tools.build:gradle:8.1.4'
classpath 'com.github.bjoernq:unmockplugin:0.7.8'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
sdk_version_code=42
sdk_version_name=0.5.13
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Jun 19 22:47:32 EEST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
Loading