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

Develop huawei compare #369

Open
wants to merge 43 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3e400c6
Added automatic pro version for installs before 2023-01-19
patrickunterwegs Jan 19, 2023
b2e4b14
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jan 19, 2023
bfcdcec
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jan 20, 2023
4cd5318
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jan 21, 2023
d143c29
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Feb 11, 2023
49a3385
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Feb 11, 2023
56c67bb
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Feb 13, 2023
82d0a52
added tools:replace="android:allowBackup" for huawei
patrickunterwegs Feb 13, 2023
57d3169
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Feb 28, 2023
b518940
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Mar 14, 2023
2ecc73b
Added update check for Huawei flavor
patrickunterwegs Mar 17, 2023
f898dfe
Fixed issue in updatemanager
patrickunterwegs Mar 20, 2023
db2c3ff
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Apr 16, 2023
534746e
Added UpdateCheckManager stubs for other flavors
patrickunterwegs Apr 16, 2023
ba6cbe9
[BUG] Widget crashes when group by status or classification is selected
patrickunterwegs Apr 16, 2023
4e43d6a
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Apr 20, 2023
0b45f5e
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Apr 25, 2023
a32cdd4
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs May 10, 2023
7b31d72
Updated versions
patrickunterwegs May 10, 2023
ce21d0b
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 12, 2023
834dd9b
added fix for huawei
patrickunterwegs Jun 12, 2023
a11b070
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 13, 2023
c20a3c6
Update android-tests-huawei.yml
patrickunterwegs Jun 13, 2023
5b2b96e
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 19, 2023
2f1b33f
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 19, 2023
abc114c
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 19, 2023
8faf989
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 19, 2023
78e205b
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jul 28, 2023
e774f24
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jul 30, 2023
6b43c01
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Aug 3, 2023
8bc276e
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Aug 7, 2023
c6d226c
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Aug 26, 2023
649da89
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Sep 30, 2023
5b60c84
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Nov 12, 2023
1c5893a
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Dec 11, 2023
e32803b
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jan 4, 2024
c437541
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jan 16, 2024
acf4753
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Feb 8, 2024
88f9b31
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Mar 28, 2024
64cf5f3
Merge branch 'develop' into develop-HUAWEI
patrickunterwegs Jun 5, 2024
842658a
release notes update
patrickunterwegs Jun 5, 2024
2043fd2
Disabled configuration cache for huawei
patrickunterwegs Jun 5, 2024
06fd0b9
Huawei version updates
patrickunterwegs Jun 5, 2024
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
8 changes: 5 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
id "kotlin-parcelize"
id "kotlinx-serialization"
id "com.google.devtools.ksp"
//id "com.huawei.agconnect"
id "com.huawei.agconnect"
}


Expand Down Expand Up @@ -193,7 +193,9 @@ dependencies {
amazonImplementation "com.google.android.gms:play-services-location:21.2.0"

// Huawei billing
//huaweiImplementation "com.huawei.hms:iap:$version_huawei_iap"
huaweiImplementation "com.huawei.hms:iap:$version_huawei_iap"
huaweiImplementation "com.huawei.hms:appservice:6.10.0.300"


// Google Maps
gplayImplementation "com.google.maps.android:maps-compose:5.0.1"
Expand Down Expand Up @@ -261,7 +263,7 @@ dependencies {
implementation "androidx.glance:glance-appwidget:1.1.0-rc01"

implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05"

implementation "androidx.profileinstaller:profileinstaller:1.3.1"

//image loading from the web
Expand Down
20 changes: 20 additions & 0 deletions app/src/amazon/java/at/techbee/jtx/flavored/UpdateCheckManager.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) Techbee e.U.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/

package at.techbee.jtx.flavored

import android.app.Activity



class UpdateCheckManager(val activity: Activity) : UpdateCheckManagerDefinition {

override fun checkForUpdates() {
// currently only used in HUAWEI
}
}
19 changes: 19 additions & 0 deletions app/src/generic/java/at/techbee/jtx/flavored/UpdateCheckManager.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) Techbee e.U.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/

package at.techbee.jtx.flavored

import android.app.Activity


class UpdateCheckManager(val activity: Activity) : UpdateCheckManagerDefinition {

override fun checkForUpdates() {
// currently only used in HUAWEI
}
}
19 changes: 19 additions & 0 deletions app/src/gplay/java/at/techbee/jtx/flavored/UpdateCheckManager.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) Techbee e.U.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/

package at.techbee.jtx.flavored

import android.app.Activity


class UpdateCheckManager(val activity: Activity) : UpdateCheckManagerDefinition {

override fun checkForUpdates() {
// currently only used in HUAWEI
}
}
42 changes: 42 additions & 0 deletions app/src/huawei/java/at/techbee/jtx/flavored/UpdateCheckManager.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright (c) Techbee e.U.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/

package at.techbee.jtx.flavored

import android.app.Activity
import android.content.Intent
import android.os.Build
import com.huawei.hms.jos.JosApps
import com.huawei.updatesdk.service.appmgr.bean.ApkUpgradeInfo
import com.huawei.updatesdk.service.otaupdate.CheckUpdateCallBack
import com.huawei.updatesdk.service.otaupdate.UpdateKey


class UpdateCheckManager(val activity: Activity) : UpdateCheckManagerDefinition {

override fun checkForUpdates() {
val client = JosApps.getAppUpdateClient(activity)
client.checkAppUpdate(activity, object: CheckUpdateCallBack {
override fun onUpdateInfo(intent: Intent?) {
if (intent != null) {
val info = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
intent.getSerializableExtra(UpdateKey.INFO, ApkUpgradeInfo::class.java)
} else {
intent.getSerializableExtra(UpdateKey.INFO) as ApkUpgradeInfo?
}
if(intent.getBooleanExtra(UpdateKey.MUST_UPDATE, false))
JosApps.getAppUpdateClient(activity).showUpdateDialog(activity, info, false)
}
}
override fun onMarketInstallInfo(p0: Intent?) { }
override fun onMarketStoreError(p0: Int) { }
override fun onUpdateStoreError(p0: Int) { }
})
}

}
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@
</intent>
</queries>

<!-- 'tools:replace="android:allowBackup"' necessary for Huawei flavor -->
<application
android:allowBackup="true"
tools:replace="android:allowBackup"
android:fullBackupOnly="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/at/techbee/jtx/MainActivity2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import at.techbee.jtx.database.locals.StoredListSettingData
import at.techbee.jtx.database.properties.Attachment
import at.techbee.jtx.flavored.BillingManager
import at.techbee.jtx.flavored.JtxReviewManager
import at.techbee.jtx.flavored.UpdateCheckManager
import at.techbee.jtx.ui.GlobalStateHolder
import at.techbee.jtx.ui.about.AboutScreen
import at.techbee.jtx.ui.about.AboutViewModel
Expand Down Expand Up @@ -140,6 +141,7 @@ class MainActivity2 : AppCompatActivity() {
TimeZoneRegistryFactory.getInstance().createRegistry() // necessary for ical4j
createNotificationChannels() // Register Notification Channel for Reminders
BillingManager.getInstance().initialise(this)
UpdateCheckManager(this).checkForUpdates()

/* START Initialise biometric prompt */
globalStateHolder.biometricPrompt = BiometricPrompt(this, ContextCompat.getMainExecutor(this),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) Techbee e.U.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/

package at.techbee.jtx.flavored

interface UpdateCheckManagerDefinition {

fun checkForUpdates()
}
20 changes: 20 additions & 0 deletions app/src/ose/java/at/techbee/jtx/flavored/UpdateCheckManager.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) Techbee e.U.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*/

package at.techbee.jtx.flavored

import android.app.Activity



class UpdateCheckManager(val activity: Activity) : UpdateCheckManagerDefinition {

override fun checkForUpdates() {
// currently only used in HUAWEI
}
}
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ buildscript {
version_review = "2.0.1"
version_compose = "1.6.7"
version_about_libraries = "11.2.0"
version_huawei = "1.8.1.300"
version_huawei_iap = "6.10.0.300"
version_huawei = "1.9.1.302"
version_huawei_iap = "6.13.0.300"
version_accompanist = "0.34.0"
version_osmdroid = "6.1.18"
}
Expand All @@ -44,7 +44,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }

// Huawei - only for use in Huawei branch
//maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://developer.huawei.com/repo/' }
}

dependencies {
Expand All @@ -53,7 +53,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$version_kotlin"
classpath "org.jetbrains.kotlin:kotlin-serialization:$version_kotlin"
// Huawei - only for use in Huawei branch
//classpath "com.huawei.agconnect:agcp:$version_huawei"
classpath "com.huawei.agconnect:agcp:$version_huawei"
}
}

Expand Down
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/207090015.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Fixed task duplication when changing collections
* Fixed potential crashes when adding a subtask
* Fixed broken alarms
* Upgraded widget (including layout changes to comply with default widgets)
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true

# configuration cache [https://docs.gradle.org/current/userguide/configuration_cache.html]
org.gradle.configuration-cache=true
#org.gradle.configuration-cache=true
#org.gradle.configuration-cache.problems=warn

# https://docs.gradle.org/current/userguide/build_cache.html
Expand All @@ -15,3 +15,6 @@ android.useAndroidX=true
android.nonTransitiveRClass=true
android.nonFinalResIds=true
android.enableR8.fullMode=false

#Special for Huawei because AGP 8.0 is not supported
apmsInstrumentationEnabled=false
Loading