Skip to content

Commit

Permalink
Merge pull request #1 from MG-ng/develop
Browse files Browse the repository at this point in the history
Fixed Bug
  • Loading branch information
MG-ng authored Mar 27, 2020
2 parents e008bc5 + c1479d2 commit c7f35e5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 34 deletions.
59 changes: 30 additions & 29 deletions .github/workflows/publish-apk.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Android APK CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Releasing using Hub
uses: ShaunLWM/action-release-debugapk@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
APP_FOLDER: app
RELEASE_TITLE: Virus Ticker Widget

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Releasing using Hub
uses: ShaunLWM/action-release-debugapk@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
APP_FOLDER: app
RELEASE_TITLE: Virus Ticker Widget
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ public boolean onTouch( View v, MotionEvent event ) {
*/
public static String extractLocation( String line ) {
String country = "";
if( line.startsWith( "\"" ) )
country = line.split( "\"" )[ 1 ];
if( line.endsWith( "\"" ) )
country = line.split( "\"" )[ line.split( "\"" ).length -1 ];
else
country = line.split( "," )[ 0 ];
country = line.split( "," )[ line.split( "," ).length -1 ];
Log.w( TAG, "CountryB = " + country );
if( country.isEmpty() ) country = line.split( "," )[ 1 ];
Log.w( TAG, "CountryA = " + country );
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<string name="dark">Dunkel</string>
<string name="light">Hell</string>

<string name="choose_your_country">Wähle dein Land</string>
<string name="choose_your_country">Wähle dein Land oder deine Stadt/Region</string>
<string name="type">Art</string>
<string name="theme">Aussehen</string>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<string name="dark">Dark</string>
<string name="light">Light</string>

<string name="choose_your_country">Choose your Country</string>
<string name="choose_your_country">Choose your country or city</string>
<string name="type">Type</string>
<string name="theme">Theme</string>

Expand Down

0 comments on commit c7f35e5

Please sign in to comment.