Fixes issue with Poker Agent CSV import + bumps version

od
Laurent 6 years ago
parent 57a4af9619
commit 8ab999e0f6
  1. 4
      app/build.gradle
  2. 2
      app/src/main/java/net/pokeranalytics/android/util/csv/ProductCSVDescriptors.kt
  3. 3
      app/src/main/java/net/pokeranalytics/android/util/csv/SessionCSVDescriptor.kt
  4. 3
      app/src/main/res/layout/row_header_title_amount.xml
  5. 2
      app/standard/release/output.json

@ -33,8 +33,8 @@ android {
applicationId "net.pokeranalytics.android" applicationId "net.pokeranalytics.android"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 28 targetSdkVersion 28
versionCode 70 versionCode 73
versionName "2.2.12" versionName "2.3.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }

@ -29,7 +29,7 @@ class ProductCSVDescriptors {
SessionField.SmallBlind("SB"), SessionField.SmallBlind("SB"),
SessionField.BigBlind("BB"), SessionField.BigBlind("BB"),
SessionField.NetResult("P/L"), SessionField.NetResult("P/L"),
SessionField.Duration("Hrs", randomTime = true), SessionField.Duration("Hrs", randomTime = false),
SessionField.LimitAndGame("Type") SessionField.LimitAndGame("Type")
) )
} }

@ -181,7 +181,8 @@ class SessionCSVDescriptor(source: DataSource, private var isTournament: Boolean
} }
if (startInSeconds < 0) { if (startInSeconds < 0) {
throw PAIllegalStateException("negative start: $startDate, start = $startInSeconds, net = ${session.result?.netResult}") startInSeconds = 20 * 3600.0
// throw PAIllegalStateException("negative start: $startDate, start = $startInSeconds, net = ${session.result?.netResult}")
} }
val hour = (startInSeconds / 3600.0).toInt() val hour = (startInSeconds / 3600.0).toInt()

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" <androidx.appcompat.widget.LinearLayoutCompat
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rowHeaderTitleAmount.container" android:id="@+id/rowHeaderTitleAmount.container"

@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":70,"versionName":"2.2.12","enabled":true,"outputFile":"PokerAnalytics_2.2.12(70)_191014_1156_release.apk","fullName":"standardRelease","baseName":"standard-release"},"path":"PokerAnalytics_2.2.12(70)_191014_1156_release.apk","properties":{}}] [{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":73,"versionName":"2.3.1","enabled":true,"outputFile":"PokerAnalytics_2.3.1(73)_191102_1506_release.apk","fullName":"standardRelease","baseName":"standard-release"},"path":"PokerAnalytics_2.3.1(73)_191102_1506_release.apk","properties":{}}]
Loading…
Cancel
Save