update ticker list and ticker list parsing

This commit is contained in:
fknives 2021-02-14 17:10:31 +02:00
parent 72af2aa4c7
commit 882cb957fc
8 changed files with 32 additions and 22 deletions

View file

@ -47,15 +47,15 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
implementation "androidx.core:core-ktx:1.3.1"
implementation "androidx.core:core-ktx:1.3.2"
implementation "androidx.appcompat:appcompat:1.2.0"
implementation "androidx.constraintlayout:constraintlayout:2.0.1"
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation "androidx.recyclerview:recyclerview:1.1.0"
implementation "com.google.android.material:material:1.2.1"
implementation "com.google.android.material:material:1.3.0"
testImplementation "junit:junit:4.13"
testImplementation "junit:junit:4.13.1"
androidTestImplementation "androidx.test.ext:junit:1.1.2"
androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"

View file

@ -11,6 +11,9 @@ class ParseTicker {
.firstOrNull()
?.text
?.toString()
?.split("·")
?.firstOrNull()
?.trim()
} else {
null
}

View file

@ -1,14 +1,16 @@
<resources>
<string name="app_name">RStockList</string>
<string name="app_usage_description">
This is a simple app to load all the stock tickers from Rev.\n
Clicking on the "Start Service" button will first navigate you to settings. You need to activate this app\'s AccessibilityService.
Next clicking the "Start Service" button will show a notification, then you need to navigate to Rev to the list of stocks.\n
At that point you should click Start Loading. Now the it will start to sync the data from Rev.\n
You should leave your phone for a few minutes.\n
When the sync finished the notification disappears and data is saved into a csv file.\n
You may use that file to import into Google Sheet or other platform where you want to verify and filter that data.\n
This file sharing is done from this screen, the tickers will be also shown\n
This is a simple app to load all the stock tickers from Rev.\n
- Clicking on the "Start Service" button will first navigate you to settings. You need to activate this app\'s AccessibilityService (Downloaded Services).
- Next clicking the "Start Service" button will show a notification.
- If the notification doesn\'t show but the settings is opened again, there is some caching issue, forstop the application and retry.\n
- You need to navigate to Rev to the list of all stocks.\n
- At that point you should click Start Loading. Now the it will start to sync the data from Rev.\n
- You should leave your phone for a few minutes.\n
When the sync finished the notification disappears and data is saved into a csv file.\n
You may use that file to import into Google Sheet or other platform where you want to verify and filter that data.\n
This file sharing is done from this screen, the tickers will be also shown below\n
</string>
<string name="start_service_cta">Start Service</string>
<string name="file_last_updated_at">File last updated at: %s</string>