Skip to content

Commit 5ae0c0c

Browse files
authored
El dorado (#29)
* verion changes * update
1 parent c948d3d commit 5ae0c0c

File tree

8 files changed

+26
-25
lines changed

8 files changed

+26
-25
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
bin/
1313
gen/
1414
out/
15+
app/release
1516

1617
# Gradle files
1718
.gradle/

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
_*This project is not in active development or support*_
22

33
# Trip-O-Meter
4-
[![Build Status](https://travis-ci.org/midhunhk/trip-o-meter.svg?branch=main)](https://travis-ci.org/midhunhk/trip-o-meter)
54
[![Release](https://img.shields.io/github/release/midhunhk/trip-o-meter.svg)](https://github.com/midhunhk/trip-o-meter/releases)
6-
[![GitHub commits](https://img.shields.io/github/commits-since/midhunhk/trip-o-meter/v2.0.18.svg)](https://github.com/midhunhk/trip-o-meter)
5+
[![GitHub commits](https://img.shields.io/github/commits-since/midhunhk/trip-o-meter/v3.0.0.svg)](https://github.com/midhunhk/trip-o-meter)
76
[![Issues](https://img.shields.io/github/issues/midhunhk/trip-o-meter.svg)](https://github.com/midhunhk/trip-o-meter/issues)
87

98
<img alt="Trip O Meter" src="/resources/promotional/feature_graphic_v2.png" width="820"/>
@@ -27,9 +26,9 @@ The codenames for development branches are names of Lost or Mythical cities from
2726

2827
The current development branch name is :
2928

30-
***Dvaraka*** was a prosperous and advanced city located along the western coast of present-day Gujarat, India.
31-
It was known for its grandeur, opulence, and divine association with Lord Krishna.
32-
The city is often described as having majestic palaces, gardens, temples, and well-planned streets.
29+
***El Dorado*** is a legendary city or place believed to be overflowing with gold and riches. According to these stories,
30+
El Dorado was a city or kingdom located somewhere in the unexplored regions of South America, often associated with
31+
present-day Colombia or Venezuela.
3332

3433
See more - [Codenames](https://github.com/midhunhk/trip-o-meter/wiki/Codenames)
3534

app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ android {
1010
namespace "com.ae.apps.tripmeter"
1111
applicationId "com.ae.apps.tripmeter"
1212
minSdkVersion 21
13-
targetSdkVersion 33
14-
compileSdk 33
15-
versionCode 16
13+
targetSdkVersion 34
14+
compileSdk 34
15+
versionCode 17
1616
versionName "3.1.0"
1717
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1818
vectorDrawables.useSupportLibrary = true
@@ -46,14 +46,14 @@ android {
4646
dependencies {
4747
// implementation fileTree(include: ['*.jar'], dir: 'libs')
4848
// implementation 'com.github.midhunhk.lib-aeapps::4.1.0'
49-
implementation 'com.github.midhunhk.lib-aeapps:aeapps:v5.0.0-alpha.12'
49+
implementation 'com.github.midhunhk.lib-aeapps:aeapps:v5.0.0-alpha.20'
5050

51-
implementation 'androidx.appcompat:appcompat:1.6.1'
52-
implementation 'com.google.android.material:material:1.9.0'
51+
implementation 'androidx.appcompat:appcompat:1.7.0'
52+
implementation 'com.google.android.material:material:1.12.0'
5353
implementation 'androidx.cardview:cardview:1.0.0'
5454
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
55-
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
56-
implementation 'androidx.recyclerview:recyclerview:1.3.1'
55+
implementation 'androidx.vectordrawable:vectordrawable:1.2.0'
56+
implementation 'androidx.recyclerview:recyclerview:1.3.2'
5757

5858
// Unit Tests
5959
testImplementation 'junit:junit:4.13.2'

app/src/main/java/com/ae/apps/tripmeter/database/TripExpensesDatabase.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,17 +194,14 @@ public List<TripExpense> getExpensesForTrip(String tripId) {
194194
public List<TripMemberShare> getExpenseShareForTrip(String tripId) {
195195
List<TripMemberShare> memberShares = new ArrayList<>();
196196
String[] selectionArgs = {tripId};
197-
Cursor cursor = rawQuery("SELECT SUM (" + DatabaseConstants.EXPENSE_SHARE_MEMBER_SHARE + ")," +
197+
try (Cursor cursor = rawQuery("SELECT SUM (" + DatabaseConstants.EXPENSE_SHARE_MEMBER_SHARE + ")," +
198198
" " + DatabaseConstants.EXPENSE_SHARE_MEMBER_ID +
199199
" FROM " + DatabaseConstants.EXPENSE_SHARE_TABLE +
200200
" WHERE " + DatabaseConstants.EXPENSE_SHARE_TRIP_ID + " = ? " +
201-
" GROUP BY " + DatabaseConstants.EXPENSE_SHARE_MEMBER_ID, selectionArgs);
202-
try {
201+
" GROUP BY " + DatabaseConstants.EXPENSE_SHARE_MEMBER_ID, selectionArgs)) {
203202
while (cursor.moveToNext()) {
204203
memberShares.add(mapExpenseShareModel(cursor));
205204
}
206-
} finally {
207-
cursor.close();
208205
}
209206
return memberShares;
210207
}

app/src/main/java/com/ae/apps/tripmeter/fragments/PickProfileDialogFragment.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
import com.ae.apps.tripmeter.R;
3939
import com.ae.apps.tripmeter.managers.ExpenseManager;
4040

41+
import java.util.Objects;
42+
4143
/**
4244
* A DialogFragment that is used to select a profile from contacts list
4345
*/
@@ -62,8 +64,9 @@ public PickProfileDialogFragment() {
6264
public void onStart() {
6365
super.onStart();
6466

65-
getDialog().getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT,
66-
ViewGroup.LayoutParams.WRAP_CONTENT);
67+
Objects.requireNonNull(Objects.requireNonNull(getDialog()).getWindow())
68+
.setLayout(ViewGroup.LayoutParams.MATCH_PARENT,
69+
ViewGroup.LayoutParams.WRAP_CONTENT);
6770
}
6871

6972
@Override
@@ -111,6 +114,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
111114
if (resultCode == Activity.RESULT_OK && requestCode == CONTACT_PICKER_RESULT) {
112115

113116
Uri result = data.getData();
117+
assert result != null;
114118
contactId = result.getLastPathSegment();
115119

116120
ContactInfo profile = mExpenseManager.getContactFromContactId(contactId);

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<resources>
22
<string name="app_name">Trip O Meter</string>
3-
<string name="app_version_name">3.0.0 (Dvaraka)</string>
4-
<string name="app_version_code">Dwarka is an ancient city in the northwestern Indian state of Gujarat.</string>
5-
<string name="app_release_date">Aug 2023</string>
3+
<string name="app_version_name">3.1.0 (El Dorado)</string>
4+
<string name="app_version_code">El Dorado is a legendary city or place believed to be overflowing with gold and riches. According to these stories, El Dorado was a city or kingdom located somewhere in the unexplored regions of South America, often associated with present-day Colombia or Venezuela.</string>
5+
<string name="app_release_date">Jun 2024</string>
66
<string name="app_disclaim">The data shown in this app is approximate and should be used for a rough estimate only and may vary with actually observed values.</string>
77
<string name="app_desc">This app calculates an estimate of fuel and cost needed for a trip</string>
88
<string name="app_developer_info">Designed &amp; Developed at ae labs</string>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.1.0'
9+
classpath 'com.android.tools.build:gradle:8.5.0'
1010
}
1111
}
1212

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip

0 commit comments

Comments
 (0)