diff --git a/android/app/build.gradle b/android/app/build.gradle index 7b98331..b290694 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,229 +1,229 @@ apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation * entryFile: "index.android.js", * * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ entryFile: "index.js", enableHermes: false, // clean and rebuild if changing ] apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * * For example, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that * give correct results when using with locales other than en-US. Note that * this variant is about 6MiB larger per architecture than default. */ def jscFlavor = 'org.webkit:android-jsc:+' /** * Whether to enable the Hermes VM. * * This should be set on project.ext.react and mirrored here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ def enableHermes = project.ext.react.get("enableHermes", false); // Load keystore def keystorePropertiesFile = rootProject.file("keystore.properties"); def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) android { compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.agprojects.sylk" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" - versionCode 201 - versionName "2.1.0" + versionCode 202 + versionName "2.2.0" multiDexEnabled true } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } release { storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] } } buildTypes { debug { signingConfig signingConfigs.debug } release { // Caution! In production, you need to generate your own keystore file. // see https://facebook.github.io/react-native/docs/signed-apk-android. signingConfig signingConfigs.release minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // https://developer.android.com/studio/build/configure-apk-splits.html def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'com.google.firebase:firebase-core:16.0.0' implementation "com.google.firebase:firebase-messaging:17.3.0" implementation('com.google.firebase:firebase-analytics') { exclude module: "play-services-ads-identifier" exclude module: "play-services-measurement" exclude module: "play-services-measurement-impl" exclude module: "play-services-measurement-sdk" } implementation "com.facebook.react:react-native:+" // From node_modules implementation "androidx.multidex:multidex:2.0.1" if (enableHermes) { def hermesPath = "../../node_modules/hermes-engine/android/"; debugImplementation files(hermesPath + "hermes-debug.aar") releaseImplementation files(hermesPath + "hermes-release.aar") } else { implementation jscFlavor } } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) diff --git a/changelog.txt b/changelog.txt index 03cb06f..91b7a9e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,223 +1,233 @@ +Android 2.20 Mon Oct 18 17:55:17 -03 2021 + + * Improved handling of incoming calls + * Allow answer video calls with audio only + * Fixed handling importing private key from another device + * Use internal alert panel + * Improved navigation + * Various bug fixes + + iOS 2.3.6 & Android 1.98 Wed Oct 6 17:16:36 -03 2021 * Escalate to conference fixes * Conference improvements * Render images in the conference * Fixed for Android 8 rendering of buttons * Add test contacts at 1st run * Improve enrollment process * Improve accesability when bigger fonts are used * Audio calls fixes * Update export private key * Fixes for PSTN calls * Fixes for contacts sync * Fixes for replicating contacts * Account management fixes * Improved ringtones * Call reconnect fixes * Fixes for import keys * Improve private key import/export panels * Clear notifications when app is in focus iOS 2.2.4 & Android 1.8.3 Wed Sep 22 17:23:43 -03 2021 * Phone calls history fixes * Push notifications for messaging * Added gravatar * Update app badge on new messages * Message scrolling improvements * Don't switch contacts when receive incoming message * Fixed updating last message * Added load earlier messages * Cancel outgoing call in progress after 45 seconds * Improve ringtone delay * Refactor contextual message menu * Fixed sorting contacts by tags * Always show both password fields in Enrollment iOS 2.1.8 & Android 1.73 Fri Sep 17 10:53:30 -03 2021 * Fixed enrollment on smaller screens * Message synchronization fixes * Fixed crash when searching contacts * Use photos from addressbook for matched contacts * Fixed crash when adding a new contact iOS 2.1.7 & Android 1.72 Thu Sep 16 16:07:47 -03 2021 * Added OpenPGP key lookup * Message synchronization fixes and improvements * Various bug fixes iOS 2.1.5 & Android 1.71 Tue Sep 14 12:53:26 -03 2021 * Message synchronization fixes * Support for multiple accounts * Speed improvements * Various bug fixes iOS 2.1.4 & Android 1.70 / Sat Sep 11 15:47:27 -03 2021 * Edit contact fixes * Fixed deleting all messages for current account * Fixed syncing server history * Added support for multiple accounts on same device * Show software version in About panel iOS 2.1.3 & Android 1.69 / Thu Sep 09 10:05:37 -03 2021 * Added offline messaging * Added real-time replication for read-messages * Added real-time replication for delete-messages * Added real-time replication for delete-conversations * Added message replication functions * Added loading of earlier messages * Added OpenPGP public key management * Simplify message status modal * Fixed refreshing message info * Improve contextual menu and back navigation * Improve web calls contacts * Navigation fixes * Replace ios token separator # with - * Added react-native-openpgp dependency * Added react-native-fast-openpgp dependency * Implement OpenPGP encryption * Added functions to attach photos to messages * Make key exchange compatible with python * Improve contact diplay with chat on subtitle line * Improve add contact panel * Added navigation between call and chat for same contact * Improve look and feel * Improve contact management * Contacts search fixes * Fixed navigating to home screen * Landscape fixes * Added modal panel to confirm message deletion * Improve display of contacts cards * Added menu items for calls * Contact fixes iOS 1.3.8 & Android 1.61 / Wed Nov 18 11:36:26 -03 2020 * Fixed waking up from OS dialer * Fixed Call id when starting conference from the system * Fixed handling incoming calls from OS and preserve media type * Fixed call state check for incoming calls * Fixed revert speakerphone state * Fix for edit conference modal * CallKeep fixes for Android * Fixed CallKeep didDeactivateAudioSession * Fixed propagating media type * Display call reject cause * Improve inviting participants at a later time iOS 1.3.7 / Wed Nov 11 11:13:58 -03 2020 * Improve display of call and conference statistics * Remove dead participants from conference view * Fixed display of packet loss * Propagate display name from favorites * Close call in one more corner case * Print media type in waiting for media line * Fixed answering new call while in a call * Make sure between calls vibration is always cancelled * Trim username and password strings in sign-in form * Added menu link for version update iOS 1.3.5 / Thu Oct 29 08:42:04 -03 2020 * Propagate display name from favorites * Close call in one more corner case * Improve conference statistics and remove dead participants from view * Added network statistics to conferences participants * Added packet loss and bandwidth usage info r54 / Fri Oct 9 11:36:31 -03 2020 * Added early media (PSTN calls) * Added UI feedback when inviting participants to audio conference * Added blocked domains feature * Added deep linking to open the app using sylk:// * Added display name management for favorite contacts * Added in search contacts matching for conference participants * Added initial statistics for bandwidth usage and packet loss * Added option to save participants after conference ends * Added own display name management * Added refresh history from server by swiping down the list * Added refreshHistory to history state * Added save of favorites from conference participants * Added share links to conferences and propagate cancel from push * Added management of participants for conference favorites * Added persistent group calls / edit conference favorite entries * Added audio only conferences * Added handling of a new incoming call while in a call * Better display of incoming call status * Do not notify a missed call when same conference was already accepted * Do not raise incoming notifications about a new conference when in a conference * Don't go to /ready after delay if there is a call in progress * Fixed audio only conferencing bugs * Fixed cancelling going to ready when a new call stars * Fixed cancelling incoming calls * Fixed cancelling incoming calls when Android is asleep * Fixed closing edit display name dialog * Fixed conference lookup for own account * Fixed crash when going to background * Fixed duplicate Android connections when transitioning to the foreground * Fixed escalate to conference * Fixed handling of cancel for incoming calls when in the background * Fixed handling second incoming call * Fixed lookup of display name in conference calls * Fixed mangling guest usernames in history * Fixed receiving calls on iOS when phone is locked * Fixed reconnecting outgoing calls * Fixed refreshing favorites * Fixed reseting answering in Call * Fixed retry registration when account is wrong * Fixed retrying register when server timeout * Fixed sequence for incoming call on Android when app is swipped out * Fixed sorting history when matching contacts * Fixed starting conference from push * Fixed starting the app from external link to https://webrtc.sipthor.net * Fixed storting history entries * Fixed update registration after display name changed * Fixed updating conference contacts * Fixed updating the Navigator bar state icon * Fixes for answering calls when the devices wakes up from background * Fixes for conferences * Fixes for incoming conference requests * Handle better phone numbers in alert panel * Hide conference menu when is audio only * Honor the media type proposed by conference invite * Imediattely close callkeep call when user presses hangup * Improve addressbook management * Improve audio only conferences * Improve call me maybe text * Improve connect status icon * Improve dislay and redial of conference history items * Improve display of display name in audio calls * Improve experience to reconnect audio call * Improve handling of incoming calls when phone is locked * Improve invite participants modals * Improve reconnecting failed calls * Improve saving conference and invite progress * Improve setting of display name * Improved display of bandwidth usage * Improved inviting previous participants to conferences * Improved starting calls from external URLs * Increased fastlane upload timeout * On logout remove push token and preserve account data in login screen * Propagate lookedup contact photo to all call components * Request camera and mic permission at start on Android * Show last conference number of participants in history view * Stop alert panel if call already rejected * Unregister explicitely on logout route * Use default domain from account