Skip to content
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

Pluggable Chat & Video #889

Open
wants to merge 66 commits into
base: development_master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
cb8ab32
Entities created for Room Db.
prajwalmw Sep 26, 2024
3baec99
@ColumnInfo added for all the entities where variable name is differe…
prajwalmw Sep 26, 2024
f0e36a4
Build issue resolved
mithunvaghela Sep 27, 2024
a6a8363
Compilation issue resolved
mithunvaghela Sep 27, 2024
d580424
IHDatabase room db class is created.
prajwalmw Sep 27, 2024
e18c272
PatientAttributeDao added
arpansircardevelopment Sep 29, 2024
9ee413e
PatientAttributeDaoMaster created
arpansircardevelopment Sep 29, 2024
e1e70e0
PatientLocationDao added
arpansircardevelopment Sep 29, 2024
53f2b47
ProviderDao added
arpansircardevelopment Sep 29, 2024
b20fd54
changes done to entity and dao classes to fix compile time issues.
prajwalmw Sep 30, 2024
555eeef
ProviderAttributeDao and RtcConnectionLogDao added
arpansircardevelopment Oct 1, 2024
5285f01
VisitDao added
arpansircardevelopment Oct 1, 2024
f4f509a
VisitAttributeDao added
arpansircardevelopment Oct 1, 2024
9941348
Room db class minor changes.
prajwalmw Oct 1, 2024
dd84cdc
Merge pull request #866 from Intelehealth/room_integration_module_pra…
mithunvaghela Oct 1, 2024
f952f0d
Merge pull request #867 from Intelehealth/kotlin_migration_room_arpan
mithunvaghela Oct 1, 2024
5937095
resource issues resolving
mithunvaghela Oct 3, 2024
3be0491
restructuring
mithunvaghela Oct 3, 2024
b8d0c2d
Merge pull request #869 from Intelehealth/development_master_pluggabl…
mithunvaghela Oct 3, 2024
f18bbb1
build issue resolved
mithunvaghela Oct 4, 2024
5482d34
Merge pull request #871 from Intelehealth/development_master_pluggabl…
mithunvaghela Oct 4, 2024
011a779
createInstance of implementor through mediator
mithunvaghela Oct 9, 2024
56240d6
(MOBAPP-1125,1128,1129,1130) Whitelabeling added, patient and visit e…
hatanvirIntele Oct 9, 2024
fcedc8f
App name changes
hatanvirIntele Oct 9, 2024
fa0c689
Endpoint updated
hatanvirIntele Oct 9, 2024
4836eaf
Dynamic module setup in progress
mithunvaghela Oct 9, 2024
fcbede7
Dynamic module setup in progress
mithunvaghela Oct 10, 2024
821d76f
Core Api Client service added.
prajwalmw Oct 10, 2024
9e222fa
Api endpoints interface methods added.
prajwalmw Oct 10, 2024
8dc7e44
missing files committed
mithunvaghela Oct 11, 2024
a369ac7
MUHS migration completed
mithunvaghela Oct 11, 2024
f81ac9c
Merge pull request #872 from Intelehealth/development_pluggable_confi…
mithunvaghela Oct 11, 2024
03855e0
Merge remote-tracking branch 'origin/development_pluggable_configurab…
mithunvaghela Oct 11, 2024
0379bc8
MUHS migration issue resolved
mithunvaghela Oct 14, 2024
2ae4bc7
config refresh interrupt issue resolved while patient registration
mithunvaghela Oct 14, 2024
c9458bb
api endpoints are added.
prajwalmw Oct 14, 2024
2f30406
minor change.
prajwalmw Oct 14, 2024
e0ce1bd
Model classes being created apart from the ones present in Entity.
prajwalmw Oct 14, 2024
0ec8d8e
required model classes are created - in progress.
prajwalmw Oct 14, 2024
4ea2674
Video dynamic module installation setup completed
mithunvaghela Oct 14, 2024
5046dc5
Video dynamic module uninstall feature added if inactive at admin side
mithunvaghela Oct 15, 2024
cde511d
removed duplicate resources
mithunvaghela Oct 16, 2024
246e507
Dynamic module testing
mithunvaghela Oct 16, 2024
42606e0
System log added
mithunvaghela Oct 17, 2024
0829223
improvements
mithunvaghela Oct 21, 2024
64446ca
unit testing on going
mithunvaghela Oct 21, 2024
02b8550
Dynamic module debugging
mithunvaghela Oct 23, 2024
f341bb6
dynamic module demo testing
mithunvaghela Oct 23, 2024
14c8055
Video module download completed
mithunvaghela Oct 24, 2024
f1780e4
Build config fields shared with all sub modules
mithunvaghela Oct 24, 2024
81b42e5
removed test dynamicfeature module
mithunvaghela Oct 24, 2024
9a662df
Merge branch 'refs/heads/core_network_development_prajwal' into devel…
mithunvaghela Oct 24, 2024
e6d17aa
rename database module to "data"
mithunvaghela Oct 24, 2024
874ce8b
data models updating
mithunvaghela Oct 24, 2024
08c68bc
download protocol authentication header added
mithunvaghela Oct 24, 2024
f8d5b08
Compilation issues resolved
mithunvaghela Nov 7, 2024
26f478c
Module downloading popup and activity designed
mithunvaghela Nov 18, 2024
ed6b9f3
dynamic chat module functional issue resolved
mithunvaghela Nov 21, 2024
598fff8
dynamic chat module completed
mithunvaghela Nov 22, 2024
3578043
dynamic video module completed
mithunvaghela Nov 26, 2024
5023813
dynamic video module download action changed
mithunvaghela Nov 27, 2024
6b75752
app initial data sync improvements in progress
mithunvaghela Dec 5, 2024
2bf0b6e
Merge remote-tracking branch 'refs/remotes/origin/development_pluggab…
mithunvaghela Dec 5, 2024
3e55ae0
Initial sync with work manager completed
mithunvaghela Dec 11, 2024
0353bf6
Initial sync with work manager completed
mithunvaghela Dec 11, 2024
e8556fa
unfpa added
mithunvaghela Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ salt.env
/app/release/
/app/src/main/assets
/webrtc/src/main/assets/config.properties
/resources/src/ida/assets/
/resources/src/kf/assets/
70 changes: 46 additions & 24 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'androidx.navigation.safeargs'
apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: "kotlin-kapt"
apply from: "resdir.gradle"
apply from: "whitelabel.gradle"
//apply from: "resdir.gradle"
apply from: "${rootProject.projectDir}/whitelabel.gradle"
apply from: "${rootProject.projectDir}/variants.gradle"
import java.text.DateFormat
import java.text.SimpleDateFormat

Expand All @@ -20,9 +21,11 @@ android {

defaultConfig {
applicationId "org.intelehealth.app"
minSdk 23
minSdk 24
targetSdk 34
versionCode 67
// versionCode 65
// versionName '5.0'
versionCode 78
versionName '5.0'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
//Change this to true to enable multidex support for Kitkat
Expand All @@ -43,10 +46,22 @@ android {
abortOnError false
}
minifyEnabled true
// debuggable true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/main.kotlin_module'
}
// use the bundle block to control which types of configuration APKs
// you want your app bundle to support.
bundle {
Expand Down Expand Up @@ -78,24 +93,31 @@ android {
kotlinOptions {
jvmTarget = '17'
}
dynamicFeatures = [':features:ondemand:chat', ':features:ondemand:video']

// dynamicFeatures = [':features:ondemand:video']

// dynamicFeatures = [':features:ondemand:klivekit']
}
dependencies {
implementation project(':features:ondemand:klivekit')
// implementation project(':features:ondemand:klivekit')
api project(':fcm')
api project(':config')
// api project(':common')
api project(':core:socket')
api(project(":resources"))
api project(":features:ondemand:mediator")
api project(":features:installer")
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.google.android.gms:play-services-fido:21.1.0'
implementation project(path: ':ihutils')
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
implementation 'androidx.navigation:navigation-fragment-ktx:2.8.3'
implementation 'androidx.navigation:navigation-ui-ktx:2.8.3'
implementation 'com.android.volley:volley:1.2.1'

testImplementation 'junit:junit:4.13.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.media:media:1.7.0'
Expand All @@ -104,13 +126,12 @@ dependencies {
//fingerprint lock
implementation 'androidx.biometric:biometric:1.1.0'

androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
//mvvm
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.8.6"
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.8.6'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.8.7'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'

// JSON Converter
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// RxJava
Expand All @@ -133,33 +154,33 @@ dependencies {
//camera view
implementation 'com.github.google:cameraview:9bbe07ba44'
//Google Guava
implementation 'com.google.guava:guava:27.1-jre'
implementation 'com.google.guava:guava:32.0.1-jre'
//Parse SDK
implementation 'com.parse:parse-android:1.15.7'
//date and time
implementation 'joda-time:joda-time:2.9.9'
implementation 'joda-time:joda-time:2.10.3'

//jsoup to parse html
implementation 'org.jsoup:jsoup:1.15.2'

implementation 'org.apache.commons:commons-lang3:3.6'

// (Java only) Targeting S+ (version 31 and above)
implementation 'androidx.work:work-runtime:2.9.0'
implementation 'androidx.work:work-runtime:2.9.1'
// optional - RxJava2 support
implementation 'androidx.work:work-rxjava2:2.9.0'
implementation 'androidx.work:work-rxjava2:2.9.1'
// optional - Test helpers
androidTestImplementation 'androidx.work:work-testing:2.9.0'
androidTestImplementation 'androidx.work:work-testing:2.9.1'

implementation "com.github.permissions-dispatcher:permissionsdispatcher:4.9.2"
annotationProcessor "com.github.permissions-dispatcher:permissionsdispatcher-processor:4.9.2"

implementation platform('com.google.firebase:firebase-bom:30.3.1')
implementation platform('com.google.firebase:firebase-bom:33.5.0')
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-messaging'
implementation "com.google.firebase:firebase-iid"
implementation "com.google.firebase:firebase-core"
// implementation "com.google.firebase:firebase-iid"
// implementation "com.google.firebase:firebase-core"

implementation 'com.google.firebase:firebase-database'
implementation 'com.google.firebase:firebase-config'
Expand All @@ -171,13 +192,14 @@ dependencies {
implementation 'com.github.piruin:quickaction:2.4.3'

implementation 'com.hbb20:ccp:2.6.1'
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta02'
implementation 'androidx.viewpager2:viewpager2:1.1.0'
implementation 'com.github.ybq:Android-SpinKit:1.4.0'

implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation 'com.github.EusebiuCandrea:ToolTipPopupWordTV:1.0.1'//
implementation 'com.github.zerobranch:SwipeLayout:1.3.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'

}
apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin
22 changes: 0 additions & 22 deletions app/resdir.gradle

This file was deleted.

This file was deleted.

83 changes: 41 additions & 42 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
android:usesCleartextTraffic="true"
tools:ignore="UnusedAttribute, LockedOrientationActivity"
tools:replace="allowBackup">
<activity
android:name=".activities.onboarding.CommonWebviewActivity"
android:exported="false" />
<!-- <activity-->
<!-- android:name=".activities.onboarding.CommonWebviewActivity"-->
<!-- android:exported="false" />-->
<activity
android:name=".activities.onboarding.PersonalConsentActivity"
android:exported="false"
Expand All @@ -69,15 +69,6 @@
android:name=".ayu.visit.VisitCreationActivity"
android:exported="false"
android:theme="@style/AppThemeMaterialNew" />
<activity
android:name=".activities.chatHelp.ChatHelpActivity_New"
android:exported="true"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="adjustPan">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".ui2.calendarviewcustom.CalendarViewDemoActivity"
android:exported="true"
Expand Down Expand Up @@ -163,15 +154,6 @@
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".activities.identificationActivity.IdentificationActivity_New"
android:exported="false"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".appointmentNew.AppointmentDetailsActivity"
android:exported="true"
Expand Down Expand Up @@ -207,6 +189,18 @@
android:exported="true"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="adjustPan" />

<activity
android:name="org.intelehealth.installer.activity.DynamicModuleDownloadingActivity"
android:exported="true"
android:theme="@style/AppThemeMaterialNew"
android:windowSoftInputMode="adjustPan">
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->

<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>
<activity
android:name=".ui.splash.activity.SplashActivity"
android:exported="true"
Expand All @@ -229,6 +223,11 @@
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>
<activity
android:name=".ui.setup.activity.SyncActivity"
android:exported="true"
android:theme="@style/AppThemeMaterialNew"
android:windowSoftInputMode="adjustPan"/>
<activity
android:name=".activities.notification.view.NotificationActivity"
android:exported="false"
Expand Down Expand Up @@ -375,26 +374,26 @@
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".webrtc.activity.IDAChatActivity"
android:exported="true"
android:theme="@style/AppThemeMaterialNew"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".webrtc.activity.IDAVideoActivity"
android:excludeFromRecents="true"
android:exported="true"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:showOnLockScreen="true"
android:taskAffinity=""
android:theme="@style/AppThemeMaterialNew"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".webrtc.activity.IDACallLogActivity"
android:exported="true"
android:theme="@style/AppThemeMaterialNew"
android:windowSoftInputMode="adjustPan" />
<!-- <activity-->
<!-- android:name=".webrtc.activity.IDAChatActivity"-->
<!-- android:exported="true"-->
<!-- android:theme="@style/AppThemeMaterialNew"-->
<!-- android:windowSoftInputMode="adjustPan" />-->
<!-- <activity-->
<!-- android:name=".webrtc.activity.IDAVideoActivity"-->
<!-- android:excludeFromRecents="true"-->
<!-- android:exported="true"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait"-->
<!-- android:showOnLockScreen="true"-->
<!-- android:taskAffinity=""-->
<!-- android:theme="@style/AppThemeMaterialNew"-->
<!-- android:windowSoftInputMode="adjustPan" />-->
<!-- <activity-->
<!-- android:name=".webrtc.activity.IDACallLogActivity"-->
<!-- android:exported="true"-->
<!-- android:theme="@style/AppThemeMaterialNew"-->
<!-- android:windowSoftInputMode="adjustPan" />-->

<service
android:name=".utilities.OpenMRSAccountAuthenticatorService"
Expand Down Expand Up @@ -445,7 +444,7 @@
</intent-filter>
</receiver>

<receiver android:name=".notificationScheduler.ScheduleNotificationReceiver"/>
<receiver android:name=".notificationScheduler.ScheduleNotificationReceiver" />

<meta-data
android:name="firebase_crashlytics_collection_enabled"
Expand Down
7 changes: 1 addition & 6 deletions app/src/main/java/android/print/PdfPrint.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package android.print;

import android.os.Build;
import android.os.CancellationSignal;
import android.os.Environment;
import android.os.ParcelFileDescriptor;
import android.print.PrintAttributes;
import android.print.PrintDocumentAdapter;
import android.print.PrintDocumentInfo;

import org.intelehealth.app.utilities.CustomLog;
import org.intelehealth.app.utilities.PublicDirFileSaverUtils;

import java.io.File;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.intelehealth.app.activities.aboutus;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

Expand All @@ -19,13 +18,11 @@
import android.text.util.Linkify;
import android.util.DisplayMetrics;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import org.intelehealth.app.R;
import org.intelehealth.app.activities.help.adapter.MostSearchedVideosAdapter_New;
import org.intelehealth.app.shared.BaseActivity;
import org.intelehealth.app.syncModule.SyncUtils;
import org.intelehealth.app.utilities.SessionManager;
Expand Down
Loading