Skip to content

Commit 8fb7302

Browse files
authored
Feature/pdf (#65)
* Feature/pdf support (#60) * Feature/select pdf (#61) * Support for selecting pdf when using API 1.6 or 1.7 * Feature/pdf in chat message (#62) * Removed legacy method to retrieve image based on message id * Removed support for API version 1.0 and 1.1. * Added the pdf to the message and styling * PDF visible for user side * Fixed issues in test suite * Updated testing screenshots. * Introducing Kotlin and added tests for PDF support * Fixed font styling, connected download listener * Fixed upload issue with documents * Fixed an issue delaying new media messages too much * Fixed pdf's being named after image and fixed pending uploads not being visible * Added message when downloading file, handle failed, and fixed method for disabling media. * User message tint updated
1 parent e5111e9 commit 8fb7302

File tree

106 files changed

+2280
-985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2280
-985
lines changed

CHANGELOG.md

Lines changed: 39 additions & 2 deletions

README.md

Lines changed: 20 additions & 2 deletions

app/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'org.jetbrains.kotlin.android'
23

34
android {
45
namespace "nu.parley"
@@ -8,7 +9,7 @@ android {
89
minSdkVersion 21
910
targetSdk 34
1011
versionCode 1
11-
versionName "3.9.6"
12+
versionName "3.10.0"
1213
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1314
}
1415
buildTypes {
@@ -24,10 +25,14 @@ android {
2425
buildFeatures {
2526
buildConfig true
2627
}
28+
kotlinOptions {
29+
jvmTarget = '17'
30+
}
2731
}
2832

2933
dependencies {
3034
implementation fileTree(dir: 'libs', include: ['*.jar'])
35+
implementation 'androidx.core:core-ktx:1.13.1'
3136

3237
// AndroidX
3338
implementation 'androidx.appcompat:appcompat:1.6.1'
@@ -37,7 +42,7 @@ dependencies {
3742
implementation "com.google.firebase:firebase-messaging:23.4.1"
3843

3944
// Library
40-
// implementation 'com.github.parley-messaging:android-library:3.9.7' // Remote
45+
// implementation 'com.github.parley-messaging:android-library:3.10.0' // Remote
4146
implementation project(':parley') // Local
4247

4348
// Tests
@@ -46,4 +51,4 @@ dependencies {
4651
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
4752
}
4853

49-
apply plugin: 'com.google.gms.google-services'
54+
apply plugin: 'com.google.gms.google-services'

app/src/main/java/nu/parley/ui/ChatActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected void onCreate(Bundle savedInstanceState) {
3434
* All of these settings are optional.
3535
*/
3636
private void setParleyViewSettings() {
37-
// parleyView.setImagesEnabled(false); // Optional, default `true`
37+
// parleyView.setMediaEnabled(false); // Optional, default `true`
3838
// parleyView.setNotificationsPosition(ParleyPosition.Vertical.BOTTOM); // Optional, default `TOP`
3939

4040
parleyView.setListener(() -> Log.d("ChatActivity", "The user did sent a message"));

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
buildscript {
2+
ext {
3+
kotlin_version = '1.9.24'
4+
}
25
repositories {
36
google()
47
jcenter()
58
}
69
dependencies {
710
classpath 'com.android.tools.build:gradle:8.2.2'
811
classpath 'com.google.gms:google-services:4.4.1'
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
913
}
1014
}
1115

39.5 KB
3.08 KB
-285 KB
2.12 KB
2.12 KB

0 commit comments

Comments
 (0)