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

Update build tools, languages, SDK, and app libraries #661

Merged
merged 37 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
00c3e22
WIP solve kapt issues
ariel10aguero Oct 6, 2023
e81ff55
revert kapt
ariel10aguero Oct 6, 2023
6352d7b
Replace kapt kapt kaptDeps.google.hilt to implementation deps.google.…
ariel10aguero Oct 6, 2023
3b500c3
Replace kapt kaptDeps.square.moshiCodegen to implementation deps.squa…
ariel10aguero Oct 6, 2023
06c854d
Remove id kotlin kapt
ariel10aguero Oct 6, 2023
a3c47b7
Upgrade google secrets library
ariel10aguero Oct 6, 2023
5f9b3d5
Delete Android Manifest and namespace for modules that do not use and…
ariel10aguero Oct 6, 2023
733507b
Upgrade node library version
ariel10aguero Oct 6, 2023
d0bed75
remove kapt from kotlin-android
ariel10aguero Oct 6, 2023
be3fde1
Remove enableUncompressedNativeLibs and apply it to the specifc module
ariel10aguero Oct 6, 2023
55cfb3b
Upgrade sqldelight version, upgrade androidGradle, add missing anotat…
ariel10aguero Oct 6, 2023
94c1ada
solve value_ parm error on db by specifying the parm names
ariel10aguero Oct 6, 2023
615dc4c
Change kotlin and gradle version on submodule
ariel10aguero Oct 6, 2023
26d6eea
Fix revert conflict files
ariel10aguero Oct 9, 2023
a4501a3
Revert all the kapt files
ariel10aguero Oct 9, 2023
8f35cb9
Compatible versions
ariel10aguero Oct 10, 2023
6b82524
Solve some conditionals issues that gradle complained about
ariel10aguero Oct 10, 2023
895456b
add kapt to submodule
ariel10aguero Oct 10, 2023
69751c2
Gradle 7.5
ariel10aguero Oct 10, 2023
a71e6b4
app running
ariel10aguero Oct 10, 2023
807462e
Upgrade coroutines library
ariel10aguero Oct 10, 2023
cc0e3a8
update navigation library
ariel10aguero Oct 10, 2023
3fe2e45
Add POST_NOTIFICATIONS permission on Sphinx Manifest
ariel10aguero Oct 11, 2023
c5fe9aa
Upgrade insetter library
ariel10aguero Oct 12, 2023
5d736c0
Update Coli library
ariel10aguero Oct 12, 2023
d745898
Upgrade Okhttp library
ariel10aguero Oct 12, 2023
0ce6ba3
Fix payments endpoint
ariel10aguero Sep 29, 2023
96e6d8e
Add progress bar for list of contacts on dashboard
ariel10aguero Sep 29, 2023
256506e
Prepare release 1.0.0-beta06
ariel10aguero Oct 12, 2023
d91129e
Fix attachment UI
ariel10aguero Oct 13, 2023
5fed531
Prepare release 1.0.0-beta07
ariel10aguero Oct 13, 2023
a220b46
Upgrade to Java 17
ariel10aguero Oct 16, 2023
4945a8b
Initialize Firebase instance and adds POST_NOTIFICATIONS permission
ariel10aguero Oct 17, 2023
9f9e908
upgrade compileSdk to 33
ariel10aguero Oct 18, 2023
5a06ffd
Ungrade google services version
ariel10aguero Oct 18, 2023
cb0d5c3
update JDK 17.0.8.1 on PR.yml
ariel10aguero Oct 18, 2023
6f71d93
Workflow version updated
tomastiminskas Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 11.0.8
- name: Set up JDK 17.0.8
uses: actions/setup-java@v1
with:
java-version: 11.0.8
java-version: 17.0.8

- name: Run Android Linter
run: ./gradlew :sphinx:application:sphinx:lintDebug --warning-mode=all
Expand Down
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ buildscript {
classpath plugin.androidGradle
classpath plugin.androidx.navigation.safeArgs
classpath plugin.google.hilt
classpath plugin.google.secretsGradle
classpath plugin.gradleVersions
classpath plugin.node
classpath plugin.kotlin.gradle
classpath plugin.square.exhaustive
classpath plugin.square.sqlDelight
Expand All @@ -31,6 +33,7 @@ allprojects {
maven { url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" }
maven { url 'https://jitpack.io' }
maven { url "https://chaquo.com/maven" }
maven { url "https://plugins.gradle.org/m2/" }
}

tasks.withType(Test) {
Expand All @@ -44,19 +47,19 @@ allprojects {

plugins.withId("com.android.library") {
extensions.getByName("android").compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

plugins.withId("kotlin") {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
jvmTarget = JavaVersion.VERSION_17
freeCompilerArgs += [
"-Xinline-classes",
"-Xopt-in=kotlin.RequiresOptIn",
Expand Down
8 changes: 8 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# ChangeLog

# Version 1.0.0-beta07 (2023-10-13)
- Fixes for push notifications
- Fixes on file attachments

# Version 1.0.0-beta06 (2023-10-12)
- Adds fixes to the payment endpoint
- Adds a progress bar to the contact list on the dashboard

# Version 1.0.0-beta05 (2023-09-25)
- Adds fixes on phone signer

Expand Down
9 changes: 4 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,21 @@ kapt.use.worker.api=true
kapt.include.compile.classpath=false
# Enable In Logcat to determine Kapt
#kapt.verbose=true
android.bundle.enableUncompressedNativeLibs=false

VERSION_NAME=1.0.0-beta05
VERSION_NAME=1.0.0-beta07

# The trailing 2 digits are for `alpha##` releases. For example:
# 4.4.1-alpha02 = 441102 where `102` stands for alpha02
# 4.4.1-beta01 = 441201 where `201` stands for beta01
# 4.4.1-rc01 = 441301 where `301` stands for rc01
VERSION_CODE=100205
VERSION_CODE=100207


# Kotlin-Android submodule
KA_VERSION_NAME=1.0.0-beta05
KA_VERSION_NAME=1.0.0-beta07

# The trailing 2 digits are for `alpha##` releases. For example:
# 4.4.1-alpha02 = 441102 where `102` stands for alpha02
# 4.4.1-beta01 = 441201 where `201` stands for beta01
# 4.4.1-rc01 = 441301 where `301` stands for rc01
KA_VERSION_CODE=100205
KA_VERSION_CODE=100207
29 changes: 15 additions & 14 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
/*************************/
ext.versions = [
'buildTools': "30.0.3",
'compileSdk': 31,
'compileSdk': 33,
'minSdk': 23,
'androidGradle': '4.2.2',
'androidGradle': '7.4.2',
'arch': '2.1.0',
'camera': '1.1.0-alpha10',
'cameraView': '1.0.0-alpha30',
'coil': '1.3.0',
'coroutines': '1.5.1',
'insetter': '0.5.0',
'lifecycle' : '2.3.1',
'hilt' : '2.37',
'coil': '1.4.0',
'coroutines': '1.6.4',
'insetter': '0.6.1',
'lifecycle' : '2.4.0',
'hilt' : '2.42',
'hiltJetpack': '1.0.0-alpha03',
'kotlin' : '1.5.21',
'moshi' : '1.12.0',
'navigation' : '2.3.5',
'okhttp' : '4.9.1',
'sqlDelight' : '1.5.0',
'kotlin' : '1.6.21',
'moshi' : '1.13.0',
'navigation' : '2.5.3',
'okhttp' : '4.10.0',
'sqlDelight' : '1.5.4',
'toplAndroid': '2.1.2',
'targetSdk' : 33
]
Expand Down Expand Up @@ -51,7 +51,6 @@ ext.deps = [
exifInterface: "androidx.exifinterface:exifinterface:1.3.2",
lifecycle: [
commonJava8: "androidx.lifecycle:lifecycle-common-java8:${versions.lifecycle}",
hilt: "androidx.hilt:hilt-lifecycle-viewmodel:${versions.hiltJetpack}",
processLifecycleOwner: "androidx.lifecycle:lifecycle-process:${versions.lifecycle}",
runtime: "androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}",
viewModel: "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}",
Expand Down Expand Up @@ -166,8 +165,10 @@ ext.plugin = [
],
google: [
hilt: "com.google.dagger:hilt-android-gradle-plugin:${versions.hilt}",
secretsGradle: "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1"
],
gradleVersions: "com.github.ben-manes:gradle-versions-plugin:0.39.0",
gradleVersions: "com.github.ben-manes:gradle-versions-plugin:0.42.0",
node: "com.github.node-gradle:gradle-node-plugin:7.0.1",
kotlin: [
dokka: "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1",
gradle: "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

# https://gradle.org/release-checksums/
distributionSha256Sum=9bb8bc05f562f2d42bdf1ba8db62f6b6fa1c3bf6c392228802cc7cb0578fe7e0
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip
distributionSha256Sum=97a52d145762adc241bad7fd18289bf7f6801e08ece6badf80402fe2b9f250b1
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
2 changes: 1 addition & 1 deletion socket-io/client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'com.github.node-gradle.node' version '3.1.0'
id 'java-library'
id 'kotlin'
id 'com.github.node-gradle.node'
}

node {
Expand Down
2 changes: 1 addition & 1 deletion socket-io/engine/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'com.github.node-gradle.node' version '3.1.0'
id 'java-library'
id 'kotlin'
id 'com.github.node-gradle.node'
}

node {
Expand Down
3 changes: 1 addition & 2 deletions sphinx/activity/features/connectivity-helper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ android {
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments disableAnalytics: 'true'
Expand All @@ -23,6 +21,7 @@ android {
minifyEnabled false
}
}
namespace 'chat.sphinx.connectivity_helper'
}

dependencies {
Expand Down
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="chat.sphinx.connectivity_helper">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
4 changes: 1 addition & 3 deletions sphinx/activity/features/signer-manager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ android {
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.compileSdk
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments disableAnalytics: 'true'
Expand All @@ -25,6 +23,7 @@ android {
minifyEnabled false
}
}
namespace 'chat.sphinx.signer_manager'
}

dependencies {
Expand All @@ -51,7 +50,6 @@ dependencies {

implementation deps.jncryptor

implementation deps.androidx.lifecycle.hilt
implementation deps.jna.sdk
implementation deps.paho.sdk
implementation deps.kotlinx.serialization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="chat.sphinx.signer_manager"/>
<manifest />
3 changes: 1 addition & 2 deletions sphinx/activity/features/user-colors-helper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ android {
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments disableAnalytics: 'true'
Expand All @@ -24,6 +22,7 @@ android {
minifyEnabled false
}
}
namespace 'chat.sphinx.user_colors_helper'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="chat.sphinx.user_colors_helper"/>
<manifest />
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ android {
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments disableAnalytics: 'true'
Expand All @@ -24,6 +22,7 @@ android {
minifyEnabled false
}
}
namespace 'chat.sphinx.video_player_controller'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="chat.sphinx.video_player_controller">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
3 changes: 1 addition & 2 deletions sphinx/activity/insetter-activity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ android {
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments disableAnalytics: 'true'
Expand All @@ -23,6 +21,7 @@ android {
minifyEnabled false
}
}
namespace 'chat.sphinx.insetter_activity'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="chat.sphinx.insetter_activity" />
<manifest />
4 changes: 1 addition & 3 deletions sphinx/activity/main/activitymain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ android {
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments disableAnalytics: 'true'
Expand All @@ -27,6 +25,7 @@ android {
minifyEnabled false
}
}
namespace 'chat.sphinx.activitymain'
}

dependencies {
Expand Down Expand Up @@ -104,7 +103,6 @@ dependencies {

implementation deps.chrisbanes.insetter

implementation deps.androidx.lifecycle.hilt
implementation deps.google.hilt
kapt kaptDeps.google.hilt

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="chat.sphinx.activitymain">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application>
<activity
Expand Down
Loading
Loading