Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
name: Check spotless
runs-on: ubuntu-latest
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
Expand Down Expand Up @@ -69,6 +72,9 @@ jobs:
name: Build debug
runs-on: ubuntu-latest
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/android-debug-artifact-ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
echo "::set-output name=repo_name::${{ fromJson(steps.request.outputs.data).head.repo.full_name }}"
echo "::set-output name=repo_clone_url::${{ fromJson(steps.request.outputs.data).head.repo.clone_url }}"
echo "::set-output name=repo_ssh_url::${{ fromJson(steps.request.outputs.data).head.repo.ssh_url }}"
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- name: Checkout PR Branch
uses: actions/checkout@v6
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/android-debug-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
apk:
runs-on: ubuntu-latest
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/android-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
name: Check spotless
runs-on: ubuntu-latest
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
Expand All @@ -40,6 +43,9 @@ jobs:
name: Build debug and run Jacoco tests
runs-on: ubuntu-latest
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/android-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
name: Check spotless
runs-on: ubuntu-latest
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
Expand All @@ -37,7 +40,10 @@ jobs:
name: Build debug, Jacoco test and publish to codacy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
Expand Down Expand Up @@ -106,6 +112,9 @@ jobs:
matrix:
api-level: [ 21, 28 ]
steps:
- name: Export secret to env
run: |
echo "AMAZE_CLOUD_GOOGLE_CLIENT_ID=${{ secrets.AMAZE_CLOUD_GOOGLE_CLIENT_ID }}" >> $GITHUB_ENV
- name: checkout
uses: actions/checkout@v6
- name: Java 17
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Built application files
*.apk
*.aar
!app/libs/*.aar
*.ap_
*.aab

Expand Down
49 changes: 45 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.util.concurrent.TimeUnit
import com.android.build.gradle.internal.cxx.configure.GradleLocalPropertiesKt

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
Expand Down Expand Up @@ -33,6 +36,10 @@ android {
"room.expandProjection": "true"]
}
}

def googleClientId = getValueFromEnvOrProperties("AMAZE_CLOUD_GOOGLE_CLIENT_ID")
def bareGoogleClientId = googleClientId.replace(".apps.googleusercontent.com", "")
manifestPlaceholders["googleClientIdForRedirect"] = "com.googleusercontent.apps.${bareGoogleClientId}"
}

signingConfigs {
Expand All @@ -54,8 +61,8 @@ android {

release {
signingConfig signingConfigs.release

minifyEnabled true
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
buildConfigField "String", "CRYPTO_IV", "\"LxbHiJhhUXcj\""
buildConfigField "String", "FTP_SERVER_KEYSTORE_PASSWORD", "\"vishal007\""
Expand Down Expand Up @@ -145,6 +152,8 @@ dependencies {
implementation libs.androidX.constraintLayout
implementation libs.androidX.multidex //Multiple dex files
implementation libs.androidX.biometric
implementation libs.androidX.security
implementation libs.androidX.browser.customtabs
implementation libs.room.runtime
implementation libs.room.rxjava2

Expand All @@ -168,7 +177,7 @@ dependencies {
testImplementation libs.jsoup
testImplementation libs.room.migration
testImplementation libs.mockk
testImplementation libs.kotlin.coroutine.test
testImplementation libs.kotlin.coroutines.test
testImplementation libs.androidX.core.testing
kspTest libs.auto.service
testImplementation 'ch.qos.logback:logback-classic:1.4.14'
Expand Down Expand Up @@ -199,7 +208,6 @@ dependencies {
implementation libs.libsu.core
implementation libs.libsu.io

playImplementation libs.cloudrail.si.android
playImplementation libs.junrar
playImplementation libs.google.play.billing

Expand All @@ -215,6 +223,7 @@ dependencies {
implementation libs.commons.net
//OkHttp
implementation libs.okhttp
implementation libs.okhttp.loggingInterceptor

implementation libs.bcpkix.jdk18on
implementation libs.bcprov.jdk18on
Expand All @@ -234,6 +243,20 @@ dependencies {
transitive = true
}

implementation(libs.google.api.client) {
transitive = false
}

implementation(libs.google.oauth.client) {
transitive = false
}

implementation(libs.google.http.client) {
transitive = false
}

implementation(libs.google.http.client.gson)

//zip4j: support password-protected zips
implementation libs.zip4j

Expand All @@ -249,6 +272,10 @@ dependencies {
implementation project(':file_operations')
implementation project(':portscanner')

implementation libs.kotlin.reflect
implementation platform(libs.kotlin.coroutines.bom)
implementation libs.kotlin.coroutines.android
implementation libs.kotlin.coroutines.rxjava2
implementation libs.kotlin.stdlib.jdk8
implementation libs.acra.core
implementation libs.slf4j.api
Expand All @@ -257,6 +284,10 @@ dependencies {

implementation libs.gson
implementation libs.amaze.trashBin
implementation libs.retrofit
implementation libs.retrofit.jacksonConverter
implementation libs.jackson.module.kotlin
implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
}

kotlin {
Expand All @@ -265,12 +296,16 @@ kotlin {

configurations.configureEach {
resolutionStrategy {
cacheChangingModulesFor(0, TimeUnit.SECONDS)
dependencySubstitution {
substitute module("commons-logging:commons-logging-api:1.1") using module("commons-logging:commons-logging:1.1.1")
substitute module("com.android.support:support-annotations:27.1.1") using module("com.android.support:support-annotations:27.0.2")
// These two lines are added to prevent possible class clashes between awaitility (which uses hamcrest 2.1) and junit (which uses hamcrest 1.3).
substitute module('org.hamcrest:hamcrest-core:1.3') using module("org.hamcrest:hamcrest:2.1")
substitute module('org.hamcrest:hamcrest-library:1.3') using module("org.hamcrest:hamcrest:2.1")
// Force coroutines to a specific version to avoid conflicts
substitute module("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:*") using module("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.10.2")
substitute module("org.jetbrains.kotlinx:kotlinx-coroutines-android:*") using module("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
}
}
}
Expand Down Expand Up @@ -332,9 +367,15 @@ if (propFile.canRead()) {
println 'signing.properties not found'
android.buildTypes.release.signingConfig = null
}

repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://jcenter.bintray.com" }
}

String getValueFromEnvOrProperties(String name) {
def localProperties = GradleLocalPropertiesKt.gradleLocalProperties(rootDir, project.providers)
return System.getenv(name) ?: localProperties[name]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions app/proguard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@
public static final int define_*;
}

#From here CloudRail
-keep class com.cloudrail.** { *; }

#From here BouncyCastle
-keep class org.bouncycastle.crypto.* {*;}
-keep class org.bouncycastle.crypto.agreement.** {*;}
Expand Down

This file was deleted.

29 changes: 0 additions & 29 deletions app/src/fdroid/java/com/cloudrail/si/CloudRail.java

This file was deleted.

Loading
Loading