Skip to content

Commit

Permalink
chore: Project setup support for Android 14
Browse files Browse the repository at this point in the history
  • Loading branch information
baruckis committed Dec 3, 2023
1 parent a0ee363 commit 4f727ed
Show file tree
Hide file tree
Showing 21 changed files with 289 additions and 191 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://kriptofolio.app

## License

Copyright 2018-2020 Andrius Baruckis www.baruckis.com | kriptofolio.app
Copyright 2018-2023 Andrius Baruckis www.baruckis.com | kriptofolio.app

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ android {
applicationId "com.baruckis.kriptofolio"
minSdkVersion versions.min_sdk
targetSdkVersion versions.target_sdk
versionCode 3
versionName "1.2.0" // major . minor . patch
versionCode 4
versionName "1.2.1" // major . minor . patch
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down Expand Up @@ -74,7 +74,7 @@ android {
}
}

applicationVariants.all { variant ->
applicationVariants.configureEach { variant ->
variant.resValue "string", "versionName", variant.versionName }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package com.baruckis.kriptofolio.utilities
*/

// This testing sandbox has free access to all endpoints and all subscription plans to test with a
// snapshot of CoinMarketCap market data. It is used for DEMO purpose.
// mock data. It is used for DEMO purpose.
const val API_SERVICE_BASE_URL = "https://sandbox-api.coinmarketcap.com/"

const val API_SERVICE_AUTHENTICATION_KEY = "" // TODO: Use your API Key provided by CoinMarketCap Professional API Developer Portal.
const val API_SERVICE_AUTHENTICATION_KEY = "b54bcf4d-1bca-4e8e-9a24-22ff2c3d462c" // Test API Key   provided byCoinMarketCap Professional API Developer Portal.
6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
android:name="com.baruckis.kriptofolio.ui.mainlist.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/AppTheme.NoActionBar">
android:theme="@style/AppTheme.NoActionBar"
android:exported="true">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -54,7 +55,8 @@
android:name="com.baruckis.kriptofolio.ui.addsearchlist.AddSearchActivity"
android:launchMode="singleTop"
android:parentActivityName="com.baruckis.kriptofolio.ui.mainlist.MainActivity"
android:theme="@style/AppTheme.NoActionBar">
android:theme="@style/AppTheme.NoActionBar"
android:exported="true">

<intent-filter>
<action android:name="android.intent.action.SEARCH" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object AppInjector {

}

override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle?) {
override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ class AddSearchActivity : BaseActivity(), Injectable, CryptocurrencyAmountDialog
// This listener lets you identify when search was launched and closed.
private val searchExpandListener = object : MenuItem.OnActionExpandListener {

override fun onMenuItemActionExpand(item: MenuItem?): Boolean {
override fun onMenuItemActionExpand(item: MenuItem): Boolean {
swipeRefreshLayout.isEnabled = false
info_activity_add_search.text = StringBuilder(getString(R.string.string_info_results_of_search, listAdapter.count.toString())).toString()
return true
}

override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
override fun onMenuItemActionCollapse(item: MenuItem): Boolean {
textChangeDelayJob?.cancel()
swipeRefreshLayout.isEnabled = true
info_activity_add_search.text = StringBuilder(getString(R.string.string_info_last_updated_on_date_time, viewModel.lastUpdatedOnDate)).toString()
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings_licenses.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2018-2020 Andrius Baruckis www.baruckis.com | kriptofolio.app
~ Copyright 2018-2023 Andrius Baruckis www.baruckis.com | kriptofolio.app
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@
<resources>

<string name="license_mycryptocoins_apache_v2_copyright" translatable="false">"
Copyright 2018-2020 Andrius Baruckis www.baruckis.com | kriptofolio.app
Copyright 2018-2023 Andrius Baruckis www.baruckis.com | kriptofolio.app
</string>

<string name="license_kotlin_apache_v2_copyright" translatable="false">"
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
android.defaults.buildfeatures.buildconfig=true
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
19 changes: 1 addition & 18 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
#
# Copyright 2018-2020 Andrius Baruckis www.baruckis.com | kriptofolio.app
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Fri Aug 23 10:56:59 EEST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-all.zip
Loading

0 comments on commit 4f727ed

Please sign in to comment.