diff --git a/.gitignore b/.gitignore index fbcf181..929e346 100644 --- a/.gitignore +++ b/.gitignore @@ -85,3 +85,7 @@ lint/tmp/ # Android Profiling *.hprof + +.idea/ +.idea/misc.xml +app/config.gradle diff --git a/README.md b/README.md index f45a7c0..936465c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Stock-List-Extract-Android Simple App to extract the list of ticker symbols from R -## IF you need only the file: last updated at 2020.10.13 -file: [stock_list_1599869417144.csv](https://github.com/fknives/Stock-List-Extract-Android/blob/dev/stock_list_1599869417144.csv) +## IF you need only the file: last updated at 2021.02.14 +file: [stock_list_1613311888669.csv](https://github.com/fknives/Stock-List-Extract-Android/blob/dev/stock_list_1613311888669.csv) ## Setup: - create a config.gradle file @@ -13,9 +13,9 @@ file: [stock_list_1599869417144.csv](https://github.com/fknives/Stock-List-Extra - install the application on your phone - Start the application - Click on Start Service -- Enable Accessibility Service +- Enable Accessibility Service (Downloaded Services) - Click on Start Service again -- Notice a notification is shown +- Notice a notification is shown (if not force stop the app and start from point 2) - Navigate to R All Stocks List - Tap on the Notification - Notice the app starts to load from the screen (the notification is updated) diff --git a/app/build.gradle b/app/build.gradle index fce1a0d..5720022 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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" diff --git a/app/src/main/java/org/fknives/rstocklist/appsync/ParseTicker.kt b/app/src/main/java/org/fknives/rstocklist/appsync/ParseTicker.kt index 394523e..b9cc435 100644 --- a/app/src/main/java/org/fknives/rstocklist/appsync/ParseTicker.kt +++ b/app/src/main/java/org/fknives/rstocklist/appsync/ParseTicker.kt @@ -11,6 +11,9 @@ class ParseTicker { .firstOrNull() ?.text ?.toString() + ?.split("ยท") + ?.firstOrNull() + ?.trim() } else { null } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 62a2f59..294911d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,14 +1,16 @@ RStockList - 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 Start Service File last updated at: %s diff --git a/build.gradle b/build.gradle index 0cbe343..1aee35a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,13 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = "1.4.0" + ext.kotlin_version = "1.4.20" repositories { google() jcenter() } dependencies { - classpath "com.android.tools.build:gradle:4.0.1" - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "com.android.tools.build:gradle:4.1.2" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0e19c02..2cada1a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri Sep 11 21:30:17 EEST 2020 +#Sun Feb 14 16:23:08 EET 2021 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip diff --git a/stock_list_1613311888669.csv b/stock_list_1613311888669.csv new file mode 100644 index 0000000..9489f82 --- /dev/null +++ b/stock_list_1613311888669.csv @@ -0,0 +1 @@ +VIACA,AFRM,VIR,BWA,DAN,HST,DG,LOGI,EPAM,MCFE,DIN,RF,MSP,KEY,CLX,AFL,LI,CNP,NKLA,RTX,TMO,WY,CDNS,VG,TFC,MS,MTG,TV,MKL,INFN,CERN,KTOS,DFS,GDDY,SMFG,CWEN,WIX,PDD,NOW,IAG,DRI,CF,SRE,BKR,LX,EXAS,PENN,GNW,MTD,NLOK,BUD,ZTS,UNM,GWPH,TDOC,TAK,PBCT,BK,GGAL,PLNT,FIS,MOS,CROX,MDB,PDCE,ARMK,AVB,REAL,DASH,WB,ULTA,NICE,CRSP,NTCO,AEP,STLD,TRV,FREQ,EXC,GNTX,S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