pull/1/head
Mateusz Lubecki 2020-12-16 20:26:53 +01:00
commit 2d54ea06cc
86 zmienionych plików z 3014 dodań i 0 usunięć

15
.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

3
.idea/.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

1
.idea/.name 100644
Wyświetl plik

@ -0,0 +1 @@
Pogoda.cc

Wyświetl plik

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
</component>
</project>

22
.idea/gradle.xml 100644
Wyświetl plik

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>

Wyświetl plik

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
<remote-repository>
<option name="id" value="Google" />
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://jitpack.io" />
</remote-repository>
</component>
</project>

9
.idea/misc.xml 100644
Wyświetl plik

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

1
app/.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1 @@
/build

52
app/build.gradle 100644
Wyświetl plik

@ -0,0 +1,52 @@
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "cc.pogoda.mobile.pogodacc"
minSdkVersion 24
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}

21
app/proguard-rules.pro vendored 100644
Wyświetl plik

@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

Wyświetl plik

@ -0,0 +1,26 @@
package cc.pogoda.mobile.pogodacc;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("cc.pogoda.mobile.pogodacc", appContext.getPackageName());
}
}

Wyświetl plik

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.pogoda.mobile.pogodacc">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Pogodacc">
<activity android:name=".activity.StationDetailsPlotsWind"></activity>
<activity android:name=".activity.StationDetailsSummaryActivity" />
<activity android:name=".activity.StationDetailsActivity" />
<activity android:name=".activity.AllStationsActivity" />
<activity android:name=".activity.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

Wyświetl plik

@ -0,0 +1,41 @@
package cc.pogoda.mobile.pogodacc.activity;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.adapter.WeatherStationRecyclerViewAdapter;
import cc.pogoda.mobile.pogodacc.dao.AllStationsDao;
import cc.pogoda.mobile.pogodacc.dao.LastStationDataDao;
import cc.pogoda.mobile.pogodacc.dao.SummaryDao;
import cc.pogoda.mobile.pogodacc.dao.mock.AllStationsDaoMock;
import cc.pogoda.mobile.pogodacc.type.web.ListOfStationData;
import cc.pogoda.mobile.pogodacc.type.web.Summary;
import android.os.Bundle;
import java.io.IOException;
public class AllStationsActivity extends AppCompatActivity {
RecyclerView recyclerViewAllStations;
Summary test;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_all_stations);
recyclerViewAllStations = findViewById(R.id.recyclerViewAllStations);
WeatherStationRecyclerViewAdapter adapter = null;
adapter = new WeatherStationRecyclerViewAdapter(new AllStationsDao().getAllStations(), this);
recyclerViewAllStations.setAdapter(adapter);
recyclerViewAllStations.setLayoutManager(new LinearLayoutManager(this));
}
}

Wyświetl plik

@ -0,0 +1,44 @@
package cc.pogoda.mobile.pogodacc.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ImageButton;
import java.util.Locale;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.activity.handler.MainActImageButtonAllStationsClickEvent;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Locale locale = new Locale("pl");
Locale.setDefault(locale);
Resources resources = this.getResources();
Configuration config = resources.getConfiguration();
config.setLocale(locale);
resources.updateConfiguration(config, resources.getDisplayMetrics());
setContentView(R.layout.activity_main);
ImageButton imageButtonAllStations = (ImageButton)findViewById(R.id.imageButtonAllStations);
if (imageButtonAllStations != null)
imageButtonAllStations.setOnClickListener(new MainActImageButtonAllStationsClickEvent(this));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main_activity_menu, menu);
return true;
}
}

Wyświetl plik

@ -0,0 +1,110 @@
package cc.pogoda.mobile.pogodacc.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import java.io.Serializable;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.activity.handler.StationDetailsActPlotsButtonClickEvent;
import cc.pogoda.mobile.pogodacc.activity.handler.StationDetailsActSummaryButtonClickEvent;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
public class StationDetailsActivity extends AppCompatActivity {
WeatherStation station;
TextView stationName = null;
TextView stationLocation = null;
TextView stationLatLon = null;
TextView stationSponsorUrl = null;
ImageButton summaryButton = null;
ImageButton plotsButton = null;
StationDetailsActSummaryButtonClickEvent summaryClickEvent = null;
StationDetailsActPlotsButtonClickEvent plotsClickEvent = null;
public StationDetailsActivity() {
stationName = null;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
float station_lat = 0.0f; // szerokość W - E
float station_lon = 0.0f; // długość S - N
StringBuilder sb = new StringBuilder();
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_station_details);
station = (WeatherStation) getIntent().getSerializableExtra("station");
stationName = findViewById(R.id.textViewStationName);
stationLocation = findViewById(R.id.textViewLocalization);
stationLatLon = findViewById(R.id.textViewLatLon);
stationSponsorUrl = findViewById(R.id.textViewSponsorUrl);
if (station != null && stationName != null) {
summaryClickEvent = new StationDetailsActSummaryButtonClickEvent(station, this);
plotsClickEvent = new StationDetailsActPlotsButtonClickEvent(station, this);
summaryButton = findViewById(R.id.imageButtonCurrent);
summaryButton.setOnClickListener(summaryClickEvent);
plotsButton = findViewById(R.id.imageButtonPlots);
plotsButton.setOnClickListener(plotsClickEvent);
stationName.setText(station.getDisplayedName());
stationLocation.setText(station.getDisplayedLocation());
station_lat = station.getLat();
station_lon = station.getLon();
stationSponsorUrl.setText(station.getSponsorUrl());
if (station_lat > 0.0f && station_lon > 0.0f) {
// europe
sb.append(station_lon);
sb.append(" N / ");
sb.append(station_lat);
sb.append(" E");
stationLatLon.setText(sb.toString());
} else if (station_lat < 0.0f && station_lon > 0.0f) {
// usa
sb.append(station_lon);
sb.append(" N / ");
sb.append(-station_lat);
sb.append(" W");
stationLatLon.setText(sb.toString());
} else if (station_lat < 0.0f && station_lon < 0.0f) {
// brazil
sb.append(-station_lon);
sb.append(" S / ");
sb.append(-station_lat);
sb.append(" W");
stationLatLon.setText(sb.toString());
} else if (station_lat > 0.0f && station_lat > 0.0f) {
// australia
sb.append(-station_lon);
sb.append(" S / ");
sb.append(station_lat);
sb.append(" E");
stationLatLon.setText(sb.toString());
}
}
}
}

Wyświetl plik

@ -0,0 +1,192 @@
package cc.pogoda.mobile.pogodacc.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.SeekBar;
import android.widget.TextView;
import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.components.XAxis;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.LineData;
import com.github.mikephil.charting.data.LineDataSet;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
import com.github.mikephil.charting.formatter.IValueFormatter;
import com.github.mikephil.charting.formatter.ValueFormatter;
import com.github.mikephil.charting.utils.ColorTemplate;
import com.github.mikephil.charting.utils.ViewPortHandler;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.activity.handler.WindPlotClickEvent;
import cc.pogoda.mobile.pogodacc.dao.LastStationDataDao;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
import cc.pogoda.mobile.pogodacc.type.web.ListOfStationData;
import cc.pogoda.mobile.pogodacc.type.web.StationData;
public class StationDetailsPlotsWind extends AppCompatActivity implements SeekBar.OnSeekBarChangeListener {
private LineChart chart;
private SeekBar seekBarX;
private TextView tvX;
private LastStationDataDao lastStationDataDao;
private WeatherStation station;
private WindPlotClickEvent plotClickEvent;
private class ValueFormatter extends com.github.mikephil.charting.formatter.ValueFormatter {
private final SimpleDateFormat mFormat = new SimpleDateFormat("dd MMM HH:mm", Locale.ENGLISH);
@Override
public String getFormattedValue(float value) {
Date date;
long millis = (long) value;
date = new Date(millis);
return mFormat.format(date);
}
}
public StationDetailsPlotsWind() {
lastStationDataDao = new LastStationDataDao();
plotClickEvent = new WindPlotClickEvent();
//station = stationSystemName;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_station_details_plots_wind);
station = (WeatherStation) getIntent().getSerializableExtra("station");
Typeface tfLight = Typeface.MONOSPACE;
setTitle("LineChartTime");
tvX = findViewById(R.id.tvXMax);
seekBarX = findViewById(R.id.seekBar1);
chart = findViewById(R.id.chart1);
// enable scaling and dragging
chart.setDragEnabled(true);
chart.setScaleEnabled(true);
chart.setDrawGridBackground(false);
chart.setHighlightPerDragEnabled(true);
// set an alternative background color
chart.setBackgroundColor(Color.WHITE);
chart.setViewPortOffsets(0f, 0f, 0f, 0f);
// add data
seekBarX.setProgress(100);
seekBarX.setOnSeekBarChangeListener(this);
XAxis xAxis = chart.getXAxis();
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM_INSIDE);
xAxis.setTypeface(tfLight);
xAxis.setTextSize(10f);
xAxis.setTextColor(Color.WHITE);
xAxis.setDrawAxisLine(false);
xAxis.setDrawGridLines(true);
xAxis.setTextColor(Color.rgb(255, 192, 56));
xAxis.setCenterAxisLabels(true);
xAxis.setGranularity(1f); // one hour
xAxis.setValueFormatter(new ValueFormatter());
YAxis leftAxis = chart.getAxisLeft();
leftAxis.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
leftAxis.setTypeface(tfLight);
leftAxis.setTextColor(ColorTemplate.getHoloBlue());
leftAxis.setDrawGridLines(true);
leftAxis.setGranularityEnabled(true);
leftAxis.setAxisMinimum(0.0f);
leftAxis.setAxisMaximum(24.0f);
leftAxis.setYOffset(0.0f);
leftAxis.setTextColor(Color.rgb(255, 192, 56));
YAxis rightAxis = chart.getAxisRight();
rightAxis.setEnabled(false);
this.setData();
}
private void setData() {
ListOfStationData data = lastStationDataDao.getLastStationData(station.getSystemName());
ArrayList<Entry> values_wind_speed = new ArrayList<>();
if (data instanceof ListOfStationData) {
for (StationData d : data.listOfStationData) {
values_wind_speed.add(new Entry(d.epoch * 1000, d.windspeed));
}
// create a dataset and give it a type
LineDataSet set1 = new LineDataSet(values_wind_speed, "Wind Speed");
set1.setAxisDependency(YAxis.AxisDependency.LEFT);
set1.setColor(ColorTemplate.getHoloBlue());
set1.setValueTextColor(ColorTemplate.getHoloBlue());
set1.setLineWidth(3.5f);
set1.setDrawCircles(true);
set1.setDrawValues(true);
set1.setFillAlpha(65);
set1.setFillColor(ColorTemplate.getHoloBlue());
set1.setHighLightColor(Color.rgb(244, 117, 117));
set1.setDrawCircleHole(false);
// create a data object with the data sets
LineData line_data = new LineData(set1);
line_data.setValueTextColor(Color.WHITE);
line_data.setValueTextSize(9f);
// set data
chart.setData(line_data);
chart.setDoubleTapToZoomEnabled(true);
chart.setOnChartValueSelectedListener(plotClickEvent);
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
return true;
}
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
tvX.setText(String.valueOf(seekBarX.getProgress()));
//setData(seekBarX.getProgress(), 50);
// redraw
chart.invalidate();
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
}

Wyświetl plik

@ -0,0 +1,73 @@
package cc.pogoda.mobile.pogodacc.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TextView;
import org.w3c.dom.Text;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.activity.updater.StationDetailsSummaryValUpdater;
import cc.pogoda.mobile.pogodacc.dao.SummaryDao;
import cc.pogoda.mobile.pogodacc.type.StationSummaryActElements;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
import cc.pogoda.mobile.pogodacc.type.web.Summary;
public class StationDetailsSummaryActivity extends AppCompatActivity {
StationSummaryActElements elems = null;
WeatherStation station = null;
StationDetailsSummaryValUpdater updater = null;
Handler handler = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
elems = new StationSummaryActElements();
Summary summary = null;
SummaryDao summary_dao = new SummaryDao();
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_station_details_summary);
station = (WeatherStation) getIntent().getSerializableExtra("station");
elems.title = findViewById(R.id.textViewStationDetailsSummaryTitle);
elems.title.setText(station.getDisplayedName());
elems.wind_dir_val = findViewById(R.id.textViewWinddirValue);
elems.wind_gusts_val = findViewById(R.id.textViewWindGustsValue);
elems.wind_speed_val = findViewById(R.id.textViewWindSpeedValue);
elems.temperature_val = findViewById(R.id.textViewTemperatureValue);
elems.qnh_val = findViewById(R.id.textViewQnhVaue);
summary = summary_dao.getStationSummary(station.getSystemName());
elems.updateFromSummary(summary);
handler = new Handler();
updater = new StationDetailsSummaryValUpdater(elems, handler, station.getSystemName());
if (handler != null && updater != null) {
handler.post(updater);
}
}
@Override
protected void onStop() {
if (handler != null && updater != null) {
handler.removeCallbacks(updater);
}
super.onStop();
}
}

Wyświetl plik

@ -0,0 +1,34 @@
package cc.pogoda.mobile.pogodacc.activity.handler;
import android.content.Intent;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import cc.pogoda.mobile.pogodacc.activity.StationDetailsActivity;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
public class AllStationsActRecyclerViewButtonClickEvent implements View.OnClickListener {
WeatherStation station;
AppCompatActivity p;
Intent intent;
public AllStationsActRecyclerViewButtonClickEvent(WeatherStation wx, AppCompatActivity parent) {
station = wx;
p = parent;
}
@Override
public void onClick(View v) {
intent = new Intent(p, StationDetailsActivity.class);
intent.putExtra("station", station);
p.startActivity(intent);
return;
}
}

Wyświetl plik

@ -0,0 +1,34 @@
package cc.pogoda.mobile.pogodacc.activity.handler;
import android.content.Intent;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import cc.pogoda.mobile.pogodacc.activity.AllStationsActivity;
public class MainActImageButtonAllStationsClickEvent implements View.OnClickListener {
AppCompatActivity parent;
Intent intent;
public MainActImageButtonAllStationsClickEvent(AppCompatActivity parent) {
this.parent = parent;
intent = new Intent(this.parent, AllStationsActivity.class);
}
@Override
public void onClick(View v) {
launchActivity();
return;
}
private void launchActivity() {
parent.startActivity(intent);
}
}

Wyświetl plik

@ -0,0 +1,32 @@
package cc.pogoda.mobile.pogodacc.activity.handler;
import android.content.Intent;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import cc.pogoda.mobile.pogodacc.activity.StationDetailsPlotsWind;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
public class StationDetailsActPlotsButtonClickEvent implements View.OnClickListener {
WeatherStation station;
AppCompatActivity p;
Intent intent;
public StationDetailsActPlotsButtonClickEvent(WeatherStation wx, AppCompatActivity parent) {
station = wx;
p = parent;
}
@Override
public void onClick(View view) {
intent = new Intent(p, StationDetailsPlotsWind.class);
intent.putExtra("station", station);
p.startActivity(intent);
}
}

Wyświetl plik

@ -0,0 +1,34 @@
package cc.pogoda.mobile.pogodacc.activity.handler;
import android.content.Intent;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import cc.pogoda.mobile.pogodacc.activity.StationDetailsActivity;
import cc.pogoda.mobile.pogodacc.activity.StationDetailsSummaryActivity;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
public class StationDetailsActSummaryButtonClickEvent implements View.OnClickListener {
WeatherStation station;
AppCompatActivity p;
Intent intent;
public StationDetailsActSummaryButtonClickEvent(WeatherStation wx, AppCompatActivity parent) {
station = wx;
p = parent;
}
@Override
public void onClick(View view) {
intent = new Intent(p, StationDetailsSummaryActivity.class);
intent.putExtra("station", station);
p.startActivity(intent);
}
}

Wyświetl plik

@ -0,0 +1,25 @@
package cc.pogoda.mobile.pogodacc.activity.handler;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.highlight.Highlight;
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;
public class WindPlotClickEvent implements OnChartValueSelectedListener {
@Override
public void onValueSelected(Entry e, Highlight h) {
float value = e.getX();
long value_int = (long) value;
Date date = new Date(value_int);
return;
}
@Override
public void onNothingSelected() {
}
}

Wyświetl plik

@ -0,0 +1,45 @@
package cc.pogoda.mobile.pogodacc.activity.updater;
import android.os.Handler;
import cc.pogoda.mobile.pogodacc.dao.SummaryDao;
import cc.pogoda.mobile.pogodacc.type.StationSummaryActElements;
import cc.pogoda.mobile.pogodacc.type.web.Summary;
public class StationDetailsSummaryValUpdater implements Runnable {
StationSummaryActElements elements = null;
Handler handler = null;
SummaryDao dao = null;
Summary station_summary = null;
String station_name;
public StationDetailsSummaryValUpdater(StationSummaryActElements elems, Handler h, String s) {
elements = elems;
handler = h;
station_name = s;
dao = new SummaryDao();
}
@Override
public void run() {
if (elements == null) {
return;
}
else {
station_summary = dao.getStationSummary(station_name);
elements.updateFromSummary(station_summary);
handler.postDelayed(this, 90000);
}
}
}

Wyświetl plik

@ -0,0 +1,25 @@
package cc.pogoda.mobile.pogodacc.activity.view;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.activity.handler.AllStationsActRecyclerViewButtonClickEvent;
public class AllStationsActRecyclerViewHolder extends RecyclerView.ViewHolder {
public TextView textView;
public Button button;
public AllStationsActRecyclerViewHolder(@NonNull View itemView) {
super(itemView);
textView = itemView.findViewById(R.id.station_name);
button = itemView.findViewById(R.id.station_button);
}
}

Wyświetl plik

@ -0,0 +1,67 @@
package cc.pogoda.mobile.pogodacc.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import cc.pogoda.mobile.pogodacc.R;
import cc.pogoda.mobile.pogodacc.activity.handler.AllStationsActRecyclerViewButtonClickEvent;
import cc.pogoda.mobile.pogodacc.activity.view.AllStationsActRecyclerViewHolder;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
public class WeatherStationRecyclerViewAdapter extends RecyclerView.Adapter<AllStationsActRecyclerViewHolder> {
private List<WeatherStation> stations;
AppCompatActivity activity;
public WeatherStationRecyclerViewAdapter(List<WeatherStation> stations, AppCompatActivity parentActivity) {
this.stations = stations;
this.activity = parentActivity;
}
@NonNull
@Override
public AllStationsActRecyclerViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
Context context = parent.getContext();
LayoutInflater inflater = LayoutInflater.from(context);
// Inflate the custom layout
View view = inflater.inflate(R.layout.activity_all_stations_linear_layout, parent, false);
// Return a new holder instance
AllStationsActRecyclerViewHolder viewHolder = new AllStationsActRecyclerViewHolder(view);
return viewHolder;
}
@Override
public void onBindViewHolder(@NonNull AllStationsActRecyclerViewHolder holder, int position) {
TextView textView = holder.textView;
Button button = holder.button;
WeatherStation station = stations.get(position);
if (station != null) {
textView.setText(station.getDisplayedName());
button.setText(R.string.select_station);
button.setOnClickListener(new AllStationsActRecyclerViewButtonClickEvent(station, activity));
}
}
@Override
public int getItemCount() {
return stations.size();
}
}

Wyświetl plik

@ -0,0 +1,78 @@
package cc.pogoda.mobile.pogodacc.dao;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
import cc.pogoda.mobile.pogodacc.type.web.ListOfAllStations;
import cc.pogoda.mobile.pogodacc.type.web.StationDefinition;
import cc.pogoda.mobile.pogodacc.web.RestClientConfig;
import cc.pogoda.mobile.pogodacc.web.StationListConsumer;
import retrofit2.Response;
public class AllStationsDao {
RestClientConfig restClient;
ListOfAllStations intermediate;
Response<ListOfAllStations> resp = null;
class Worker implements Runnable {
@Override
public void run() {
restClient = new RestClientConfig();
StationListConsumer consumer = restClient.getWeatherStationClient().create(StationListConsumer.class);
try {
resp = consumer.getAllStations().execute();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public List<WeatherStation> getAllStations() {
List<WeatherStation> out = null;
Thread worker = new Thread(new Worker());
worker.start();
try {
worker.join();
if (resp != null) {
intermediate = resp.body();
if (intermediate != null) {
out = new LinkedList<WeatherStation>();
for (StationDefinition def : intermediate.stations) {
WeatherStation elem = new WeatherStation();
elem.setSystemName(def.name);
elem.setDisplayedLocation(def.displayedLocation);
elem.setDisplayedName(def.displayedName);
elem.setLat(def.lat);
elem.setLon(def.lon);
elem.setSponsorUrl(def.sponsorUrl);
out.add(elem);
}
}
}
} catch (InterruptedException e) {
e.printStackTrace();
}
return out;
}
}

Wyświetl plik

@ -0,0 +1,54 @@
package cc.pogoda.mobile.pogodacc.dao;
import cc.pogoda.mobile.pogodacc.type.web.ListOfStationData;
import cc.pogoda.mobile.pogodacc.web.LastStationDataConsumer;
import cc.pogoda.mobile.pogodacc.web.RestClientConfig;
import cc.pogoda.mobile.pogodacc.web.StationListConsumer;
import retrofit2.Response;
public class LastStationDataDao {
RestClientConfig restClient;
Response<ListOfStationData> response = null;
String station;
class Worker implements Runnable {
@Override
public void run() {
restClient = new RestClientConfig();
LastStationDataConsumer consumer = restClient.getWeatherStationClient().create(LastStationDataConsumer.class);
try {
response = consumer.getLastDataForStation(station, true, true).execute();
} catch (Exception e) {
e.printStackTrace();
}
}
}
public ListOfStationData getLastStationData(String station) {
ListOfStationData out = null;
this.station = station;
Thread worker = new Thread(new Worker());
worker.start();
try {
worker.join();
if (response != null) {
out = response.body();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
return out;
}
}

Wyświetl plik

@ -0,0 +1,57 @@
package cc.pogoda.mobile.pogodacc.dao;
import java.io.IOException;
import cc.pogoda.mobile.pogodacc.type.web.Summary;
import cc.pogoda.mobile.pogodacc.web.RestClientConfig;
import cc.pogoda.mobile.pogodacc.web.SummaryConsumer;
import retrofit2.Response;
public class SummaryDao {
RestClientConfig restClient;
Response<Summary> response = null;
String station;
class Worker implements Runnable {
@Override
public void run() {
restClient = new RestClientConfig();
SummaryConsumer consumer = restClient.getWeatherStationClient().create(SummaryConsumer.class);
try {
response = consumer.getSummaryForStation(station).execute();
} catch (IOException e) {
e.printStackTrace();
}
}
}
public Summary getStationSummary(String station) {
Summary out = null;
this.station = station;
Thread worker = new Thread(new Worker());
worker.start();
try {
worker.join();
if (response != null) {
out = response.body();
}
} catch (InterruptedException e) {
e.printStackTrace();
}
return out;
}
}

Wyświetl plik

@ -0,0 +1,19 @@
package cc.pogoda.mobile.pogodacc.dao.mock;
import java.util.LinkedList;
import java.util.List;
import cc.pogoda.mobile.pogodacc.type.WeatherStation;
public class AllStationsDaoMock {
public List<WeatherStation> getAllStations() {
LinkedList<WeatherStation> out = new LinkedList<>();
out.add(new WeatherStation("Skrzyczne"));
out.add(new WeatherStation("Magurka"));
return out;
}
}

Wyświetl plik

@ -0,0 +1,18 @@
package cc.pogoda.mobile.pogodacc.type;
public class AvailableParameters {
public boolean windSpeed;
public boolean windGusts;
public boolean windDirection;
public boolean airTemperature;
public boolean waterTemperature;
public boolean qnh;
public boolean humidity;
}

Wyświetl plik

@ -0,0 +1,12 @@
package cc.pogoda.mobile.pogodacc.type;
import com.google.gson.JsonObject;
import java.util.Calendar;
public class CustomLocalDateTime {
public JsonObject origin;
public Calendar calendar;
}

Wyświetl plik

@ -0,0 +1,78 @@
package cc.pogoda.mobile.pogodacc.type;
import android.widget.TextView;
import cc.pogoda.mobile.pogodacc.type.web.Summary;
public class StationSummaryActElements {
public TextView title = null;
public TextView wind_speed_val = null;
public TextView wind_gusts_val = null;
public TextView wind_dir_val = null;
public TextView temperature_val = null;
public TextView qnh_val = null;
public TextView humidity_val = null;
private String convertDegreesToDir(int directionInDegrees) {
String out = null;
if (directionInDegrees <= 11 || directionInDegrees >= 349)
out = "N";
else if (directionInDegrees <= 34 && directionInDegrees > 11)
out = "N NE";
else if (directionInDegrees <= 56 && directionInDegrees > 34)
out = "NE";
else if (directionInDegrees <= 79 && directionInDegrees > 56)
out = "E NE";
else if (directionInDegrees <= 101 && directionInDegrees > 79)
out = "E";
else if (directionInDegrees <= 124 && directionInDegrees > 101)
out = "E SE";
else if (directionInDegrees <= 146 && directionInDegrees > 124)
out = "SE";
else if (directionInDegrees <= 169 && directionInDegrees > 146)
out = "S SE";
else if (directionInDegrees <= 191 && directionInDegrees > 169)
out = "S";
else if (directionInDegrees <= 214 && directionInDegrees > 191)
out = "S SW";
else if (directionInDegrees <= 236 && directionInDegrees > 214)
out = "SW";
else if (directionInDegrees <= 259 && directionInDegrees > 236)
out = "W SW";
else if (directionInDegrees <= 281 && directionInDegrees > 259)
out = "W";
else if (directionInDegrees <= 304 && directionInDegrees > 281)
out = "W NW";
else if (directionInDegrees <= 327 && directionInDegrees > 304)
out = "NW";
else if (directionInDegrees <= 349 && directionInDegrees > 327)
out = "N NW";
else;
return out;
}
public void updateFromSummary(Summary s) {
if (wind_speed_val != null)
wind_speed_val.setText(String.format("%.1f m/s", s.average_speed));
if (wind_gusts_val != null)
wind_gusts_val.setText(String.format("%.1f m/s", s.gusts));
if (wind_dir_val != null)
wind_dir_val.setText(this.convertDegreesToDir(s.direction));
if (temperature_val != null)
temperature_val.setText(String.format("%.1f °C", s.avg_temperature));
if (qnh_val != null)
qnh_val.setText(String.format("%d hPa", s.qnh));
if (humidity_val != null)
humidity_val.setText(String.format("%d %", s.humidity));
}
}

Wyświetl plik

@ -0,0 +1,76 @@
package cc.pogoda.mobile.pogodacc.type;
import java.io.Serializable;
public class WeatherStation implements Serializable {
public WeatherStation() {
}
public WeatherStation(String displayedName) {
this.displayedName = displayedName;
}
public String getDisplayedName() {
return displayedName;
}
public void setDisplayedName(String displayedName) {
this.displayedName = displayedName;
}
public String getDisplayedLocation() {
return displayedLocation;
}
public void setDisplayedLocation(String displayedLocation) {
this.displayedLocation = displayedLocation;
}
public String getSponsorUrl() {
return sponsorUrl;
}
public void setSponsorUrl(String sponsorUrl) {
this.sponsorUrl = sponsorUrl;
}
public float getLat() {
return lat;
}
public void setLat(float lat) {
this.lat = lat;
}
public float getLon() {
return lon;
}
public void setLon(float lon) {
this.lon = lon;
}
public String getSystemName() {
return systemName;
}
public void setSystemName(String systemName) {
this.systemName = systemName;
}
String systemName;
String displayedName;
String displayedLocation;
String sponsorUrl;
float lat;
float lon;
}

Wyświetl plik

@ -0,0 +1,7 @@
package cc.pogoda.mobile.pogodacc.type.web;
public class ListOfAllStations {
public StationDefinition[] stations;
}

Wyświetl plik

@ -0,0 +1,6 @@
package cc.pogoda.mobile.pogodacc.type.web;
public class ListOfStationData {
public StationData[] listOfStationData;
}

Wyświetl plik

@ -0,0 +1,39 @@
package cc.pogoda.mobile.pogodacc.type.web;
import java.time.LocalDateTime;
import cc.pogoda.mobile.pogodacc.type.CustomLocalDateTime;
public class StationData {
public int id;
public long epoch;
public CustomLocalDateTime datetime;
//public LocalDateTime datetime;
public String station;
public float temperature;
public short humidity;
public float pressure;
public short winddir;
public float windspeed;
public float windgusts;
public String tsource;
public String wsource;
public String psource;
public String hsource;
public String rsource;
}

Wyświetl plik

@ -0,0 +1,37 @@
package cc.pogoda.mobile.pogodacc.type.web;
public class StationDefinition {
public int id;
public String name;
public boolean enabled;
public String callsign;
public byte ssid;
public String displayedName;
public String displayedLocation;
public String sponsorUrl;
public String backgroundjpg;
public String moreinfo;
public float lat;
public float lon;
public boolean hasWind;
public boolean hasQnh;
public boolean hasHumidity;
public boolean hasRain;
}

Wyświetl plik

@ -0,0 +1,35 @@
package cc.pogoda.mobile.pogodacc.type.web;
public class Summary {
public long last_timestamp;
public int number_of_measurements;
public float avg_temperature;
public String temperature_qf;
public short qnh;
public String qnh_qf;
public byte humidity;
public String humidity_qf;
public short direction;
public float average_speed;
public float gusts;
public float hour_gusts;
public float hour_max_average_speed;
public float hour_min_average_speed;
public String wind_qf;
}

Wyświetl plik

@ -0,0 +1,14 @@
package cc.pogoda.mobile.pogodacc.web;
import cc.pogoda.mobile.pogodacc.type.web.ListOfStationData;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface LastStationDataConsumer {
@GET("meteo_backend/lastStationData/")
Call<ListOfStationData> getLastDataForStation(@Query("station")String station,
@Query("ascendingOrder")boolean ascendingOrder,
@Query("isLong")boolean isLong);
}

Wyświetl plik

@ -0,0 +1,25 @@
package cc.pogoda.mobile.pogodacc.web;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import cc.pogoda.mobile.pogodacc.type.CustomLocalDateTime;
import cc.pogoda.mobile.pogodacc.web.deserializer.CustomLocalDateTimeDeserializer;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class RestClientConfig {
public Retrofit getWeatherStationClient() {
Retrofit out = null;
Gson gson = new GsonBuilder().registerTypeAdapter(CustomLocalDateTime.class, new CustomLocalDateTimeDeserializer()).setLenient().create();
OkHttpClient client = new OkHttpClient();
out = new Retrofit.Builder().baseUrl("http://pogoda.cc:8080/").addConverterFactory(GsonConverterFactory.create(gson)).client(client).build();
return out;
}
}

Wyświetl plik

@ -0,0 +1,13 @@
package cc.pogoda.mobile.pogodacc.web;
import java.util.List;
import cc.pogoda.mobile.pogodacc.type.web.ListOfAllStations;
import retrofit2.Call;
import retrofit2.http.GET;
public interface StationListConsumer {
@GET("meteo_backend/listOfAllStations/")
Call<ListOfAllStations> getAllStations();
}

Wyświetl plik

@ -0,0 +1,13 @@
package cc.pogoda.mobile.pogodacc.web;
import cc.pogoda.mobile.pogodacc.type.web.Summary;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface SummaryConsumer {
@GET("meteo_backend/summary/")
Call<Summary> getSummaryForStation(@Query("station")String station);
}

Wyświetl plik

@ -0,0 +1,38 @@
package cc.pogoda.mobile.pogodacc.web.deserializer;
import android.content.Intent;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import java.lang.reflect.Type;
import java.util.Calendar;
import cc.pogoda.mobile.pogodacc.type.CustomLocalDateTime;
public class CustomLocalDateTimeDeserializer implements JsonDeserializer <CustomLocalDateTime> {
@Override
public CustomLocalDateTime deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
CustomLocalDateTime out = new CustomLocalDateTime();
out.calendar = Calendar.getInstance();
JsonObject object = json.getAsJsonObject();
Integer year_int = object.getAsJsonPrimitive("year").getAsInt();
Integer month_int = object.getAsJsonPrimitive("monthValue").getAsInt();
Integer day_int = object.getAsJsonPrimitive("dayOfMonth").getAsInt();
Integer hour_int = object.getAsJsonPrimitive("hour").getAsInt();
Integer minute_int = object.getAsJsonPrimitive("minute").getAsInt();
Integer second_int = object.getAsJsonPrimitive("second").getAsInt();
out.calendar.set(year_int, month_int, day_int, hour_int, minute_int, second_int);
out.origin = object;
return out;
}
}

Wyświetl plik

@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

Wyświetl plik

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M10,20h4L14,4h-4v16zM4,20h4v-8L4,12v8zM16,9v11h4L20,9h-4z"/>
</vector>

Wyświetl plik

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/>
</vector>

Wyświetl plik

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M3,18h18v-2L3,16v2zM3,13h18v-2L3,11v2zM3,6v2h18L21,6L3,6z"/>
</vector>

Wyświetl plik

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M15,1L9,1v2h6L15,1zM11,14h2L13,8h-2v6zM19.03,7.39l1.42,-1.42c-0.43,-0.51 -0.9,-0.99 -1.41,-1.41l-1.42,1.42C16.07,4.74 14.12,4 12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9 9,-4.03 9,-9c0,-2.12 -0.74,-4.07 -1.97,-5.61zM12,20c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7 7,3.13 7,7 -3.13,7 -7,7z"/>
</vector>

Wyświetl plik

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

Wyświetl plik

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.AllStationsActivity">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerViewAllStations"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="83dp"
tools:layout_editor_absoluteY="95dp" />
</androidx.constraintlayout.widget.ConstraintLayout>

Wyświetl plik

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:paddingBottom="10dp"
>
<TextView
android:id="@+id/station_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<Button
android:id="@+id/station_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textSize="10sp"
/>
</LinearLayout>

Wyświetl plik

@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.MainActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayoutFav"
android:layout_width="177dp"
android:layout_height="182dp"
android:layout_marginStart="200dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="587dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageButton
android:id="@+id/imageButtonCurrent"
android:layout_width="176dp"
android:layout_height="180dp"
android:backgroundTint="#56039BE5"
android:paddingLeft="100px"
android:paddingTop="100px"
android:paddingRight="100px"
android:paddingBottom="100px"
android:scaleType="fitXY"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_baseline_favorite_24" />
<TextView
android:id="@+id/textViewCurrent"
android:layout_width="62dp"
android:layout_height="24dp"
android:layout_marginStart="54dp"
android:layout_marginTop="143dp"
android:layout_marginEnd="67dp"
android:layout_marginBottom="18dp"
android:text="@string/fav_stations"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/imageButtonCurrent"
app:layout_constraintEnd_toEndOf="@+id/imageButtonCurrent"
app:layout_constraintStart_toStartOf="@+id/imageButtonCurrent"
app:layout_constraintTop_toTopOf="@+id/imageButtonCurrent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayoutAllStations"
android:layout_width="177dp"
android:layout_height="183dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="200dp"
android:layout_marginBottom="586dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageButton
android:id="@+id/imageButtonAllStations"
android:layout_width="175dp"
android:layout_height="183dp"
android:backgroundTint="#56039BE5"
android:backgroundTintMode="src_in"
android:paddingLeft="100px"
android:paddingTop="100px"
android:paddingRight="100px"
android:paddingBottom="100px"
android:scaleType="fitXY"
android:scaleX="1"
android:scaleY="1"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_baseline_menu_24" />
<TextView
android:id="@+id/textViewAllStations"
android:layout_width="113dp"
android:layout_height="20dp"
android:layout_marginStart="21dp"
android:layout_marginTop="116dp"
android:layout_marginEnd="22dp"
android:layout_marginBottom="18dp"
android:text="@string/all_stations"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/imageButtonAllStations"
app:layout_constraintEnd_toEndOf="@+id/imageButtonAllStations"
app:layout_constraintHorizontal_bias="0.526"
app:layout_constraintStart_toStartOf="@+id/imageButtonAllStations"
app:layout_constraintTop_toTopOf="@+id/imageButtonAllStations"
app:layout_constraintVertical_bias="1.0" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

Wyświetl plik

@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayoutStationHeading"
android:layout_width="match_parent"
android:layout_height="231dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0">
<ImageView
android:id="@+id/imageViewStationPng"
android:layout_width="408dp"
android:layout_height="232dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
tools:srcCompat="@tools:sample/backgrounds/scenic" />
<TextView
android:id="@+id/textViewStationName"
android:layout_width="261dp"
android:layout_height="57dp"
android:layout_marginStart="16dp"
android:layout_marginTop="197dp"
android:layout_marginEnd="205dp"
android:text="TextView"
android:textColor="#000000"
android:textSize="36sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/imageViewStationPng"
app:layout_constraintHorizontal_bias="0.216"
app:layout_constraintStart_toStartOf="@+id/imageViewStationPng"
app:layout_constraintTop_toTopOf="@+id/imageViewStationPng"
app:layout_constraintVertical_bias="1.0" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayoutStationInfo"
android:layout_width="match_parent"
android:layout_height="52dp">
<TextView
android:id="@+id/textViewSponsorUrl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:autoLink="web"
android:text="TextView"
android:textSize="18sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textViewLocalization"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:textSize="18sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textViewLatLon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayoutStationButtons"
android:layout_width="match_parent"
android:layout_height="611dp">
<ImageButton
android:id="@+id/imageButtonPlots"
android:layout_width="176dp"
android:layout_height="180dp"
android:backgroundTint="#56039BE5"
android:paddingLeft="100px"
android:paddingTop="100px"
android:paddingRight="100px"
android:paddingBottom="100px"
android:scaleType="fitXY"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.931"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.037"
app:srcCompat="@drawable/ic_baseline_equalizer_24" />
<TextView
android:id="@+id/textViewPlots"
android:layout_width="62dp"
android:layout_height="24dp"
android:layout_marginStart="55dp"
android:layout_marginTop="141dp"
android:layout_marginEnd="59dp"
android:layout_marginBottom="15dp"
android:text="@string/station_plots"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/imageButtonPlots"
app:layout_constraintEnd_toEndOf="@+id/imageButtonPlots"
app:layout_constraintStart_toStartOf="@+id/imageButtonPlots"
app:layout_constraintTop_toTopOf="@+id/imageButtonPlots" />
<ImageButton
android:id="@+id/imageButtonCurrent"
android:layout_width="176dp"
android:layout_height="180dp"
android:backgroundTint="#56039BE5"
android:paddingLeft="100px"
android:paddingTop="100px"
android:paddingRight="100px"
android:paddingBottom="100px"
android:scaleType="fitXY"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.068"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.037"
app:srcCompat="@drawable/ic_baseline_timer_24" />
<TextView
android:id="@+id/textViewCurrent"
android:layout_width="131dp"
android:layout_height="25dp"
android:layout_marginStart="54dp"
android:layout_marginTop="143dp"
android:layout_marginEnd="67dp"
android:layout_marginBottom="18dp"
android:text="@string/station_summary"
android:textAlignment="center"
app:layout_constraintBottom_toBottomOf="@+id/imageButtonCurrent"
app:layout_constraintEnd_toEndOf="@+id/imageButtonCurrent"
app:layout_constraintStart_toStartOf="@+id/imageButtonCurrent"
app:layout_constraintTop_toTopOf="@+id/imageButtonCurrent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

Wyświetl plik

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/chart1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/seekBar1" />
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:max="1500"
android:layout_alignParentBottom="true"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_toLeftOf="@+id/tvXMax"/>
<TextView
android:id="@+id/tvXMax"
android:layout_width="50dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="@string/dash"
android:layout_marginBottom="15dp"
android:layout_marginRight="10dp"
android:gravity="right"
android:layout_alignParentBottom="true"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>

Wyświetl plik

@ -0,0 +1,180 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.StationDetailsSummaryActivity">
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewStationDetailsSummaryTitle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_span="2"
android:text="TextView"
android:textAlignment="center"
android:textSize="36sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewTemperatureCaption"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:text="@string/temperature"
android:textSize="18sp" />
<TextView
android:id="@+id/textViewTemperatureValue"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="TextView"
android:textAlignment="center"
android:textSize="64sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewWinddirCaption"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:scrollHorizontally="true"
android:text="@string/wind_direction"
android:textSize="18sp" />
<TextView
android:id="@+id/textViewWinddirValue"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="TextView"
android:textAlignment="center"
android:textSize="64sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewWindSpeedCaption"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:scrollHorizontally="true"
android:text="@string/wind_speed"
android:textSize="18sp" />
<TextView
android:id="@+id/textViewWindSpeedValue"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="TextView"
android:textAlignment="center"
android:textSize="64sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewWindGusts"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:scrollHorizontally="true"
android:text="@string/wind_gusts"
android:textSize="18sp" />
<TextView
android:id="@+id/textViewWindGustsValue"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="TextView"
android:textAlignment="center"
android:textSize="64sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewQnh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:text="@string/qnh"
android:textSize="18sp" />
<TextView
android:id="@+id/textViewQnhVaue"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="TextView"
android:textAlignment="center"
android:textSize="64sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewHumidity"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="30dp"
android:text="@string/humidity"
android:textSize="18sp" />
<TextView
android:id="@+id/textViewHumidityValue"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="TextView"
android:textAlignment="center"
android:textSize="64sp" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_span="2">
<TextView
android:id="@+id/textView14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollIndicators="right"
android:scrollHorizontally="true"
android:text="@string/auto_refresh"
android:textAlignment="center"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</TableRow>
</TableLayout>
</RelativeLayout>

Wyświetl plik

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:title="Item" />
</menu>

Wyświetl plik

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Wyświetl plik

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 3.5 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 5.2 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 2.6 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 3.3 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 4.8 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 7.3 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 7.7 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 12 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 10 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 16 KiB

Wyświetl plik

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pogoda.cc</string>
<string name="select_station">SELECT</string>
<string name="all_stations">All Stations</string>
<string name="fav_stations">Favourities</string>
<string name="station_summary">Current Values</string>
<string name="station_plots">Plots</string>
<string name="wind_speed">Wind Speed</string>
<string name="wind_gusts">Wind Gusts</string>
<string name="wind_direction">Wind Direction</string>
<string name="temperature">Temperature</string>
<string name="qnh">QNH Pressure</string>
<string name="humidity">Humidity</string>
<string name="auto_refresh">Values in this window are refreshed automatically each 90 seconds</string>
<string name="dash">-</string>
<string name="time">Time</string>
<string name="date">Date</string>
<string name="add">Add</string>
<string name="delete">Delete</string>
<string name="delete_fav">Delete from favourities stations list</string>
<string name="station_not_comm">Warning! This station doesn\'t send any data for longer than 4 hours</string>
<string name="station_disabled">Warning! This station has been temporarily disabled or it is not functional for long time</string>
<string name="archive_data">Archival Data</string>
<string name="export_from">Export From</string>
<string name="time_scale">Time Scale</string>
<string name="mean_value">Mean Value</string>
<string name="max_value">Maximum Value</string>
<string name="show_previous">Show previous</string>
<string name="hours">Hours</string>
<string name="days">Days</string>
<string name="hours_8">8 Hours</string>
<string name="hours_12">12 Hours</string>
<string name="hours_15">15 Hours</string>
<string name="hours_1">One Hour</string>
<string name="ok">OK</string>
<string name="select">Select</string>
<string name="apply">Apply</string>
<string name="cancel">Cancel</string>
<string name="wind_rose">Wind Rose</string>
</resources>

Wyświetl plik

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pogoda.cc</string>
<string name="select_station">-</string>
<string name="all_stations">-</string>
<string name="fav_stations">-</string>
<string name="station_summary">-</string>
<string name="station_plots">-</string>
<string name="wind_speed">-</string>
<string name="wind_gusts">-</string>
<string name="wind_direction">-</string>
<string name="temperature">-</string>
<string name="qnh">-</string>
<string name="humidity">-</string>
<string name="auto_refresh">-</string>
<string name="dash">-</string>
<string name="time">-</string>
<string name="date">-</string>
<string name="add">-</string>
<string name="delete">-</string>
<string name="delete_fav">-</string>
<string name="station_not_comm">-</string>
<string name="station_disabled">-</string>
<string name="archive_data">-</string>
<string name="export_from">-</string>
<string name="time_scale">-</string>
<string name="mean_value">-</string>
<string name="max_value">-</string>
<string name="show_previous">-</string>
<string name="hours">-</string>
<string name="days">-</string>
<string name="hours_8">-</string>
<string name="hours_12">-</string>
<string name="hours_15">-</string>
<string name="hours_1">-</string>
<string name="ok">-</string>
<string name="select">-</string>
<string name="apply">-</string>
<string name="cancel">-</string>
<string name="wind_rose">-</string>
</resources>

Wyświetl plik

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pogoda.cc</string>
<string name="select_station">-</string>
<string name="all_stations">-</string>
<string name="fav_stations">-</string>
<string name="station_summary">-</string>
<string name="station_plots">-</string>
<string name="wind_speed">-</string>
<string name="wind_gusts">-</string>
<string name="wind_direction">-</string>
<string name="temperature">-</string>
<string name="qnh">-</string>
<string name="humidity">-</string>
<string name="auto_refresh">-</string>
<string name="dash">-</string>
<string name="time">-</string>
<string name="date">-</string>
<string name="add">-</string>
<string name="delete">-</string>
<string name="delete_fav">-</string>
<string name="station_not_comm">-</string>
<string name="station_disabled">-</string>
<string name="archive_data">-</string>
<string name="export_from">-</string>
<string name="time_scale">-</string>
<string name="mean_value">-</string>
<string name="max_value">-</string>
<string name="show_previous">-</string>
<string name="hours">-</string>
<string name="days">-</string>
<string name="hours_8">-</string>
<string name="hours_12">-</string>
<string name="hours_15">-</string>
<string name="hours_1">-</string>
<string name="ok">-</string>
<string name="select">-</string>
<string name="apply">-</string>
<string name="cancel">-</string>
<string name="wind_rose">-</string>
</resources>

Wyświetl plik

@ -0,0 +1,16 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Pogodacc" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>

Wyświetl plik

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pogoda.cc</string>
<string name="select_station">WYBIERZ</string>
<string name="all_stations">Wszystkie Stacje</string>
<string name="fav_stations">Ulubione</string>
<string name="station_summary">Bieżące wartości</string>
<string name="station_plots">Wykresy</string>
<string name="wind_speed">Prędkość Wiatru</string>
<string name="wind_gusts">Porywy Wiatru</string>
<string name="wind_direction">Kierunek Wiatru</string>
<string name="temperature">Temperatura</string>
<string name="qnh">QNH</string>
<string name="humidity">Wilgotność</string>
<string name="auto_refresh">Wartości w tym oknie odświeżają się automatycznie co 90 sekund</string>
<string name="dash">-</string>
<string name="time">Czas</string>
<string name="date">Data</string>
<string name="add">Dodaj</string>
<string name="delete">Usuń</string>
<string name="delete_fav">Usuń z listy ulubionych stacji</string>
<string name="station_not_comm">Uwaga! Ta stacja nie wysyła żadnych danych dłużej niż od 4 godzin</string>
<string name="station_disabled">Uwaga! Stacja została tymczasowo wyłączona bądź nie pracuje od dłuższego czasu</string>
<string name="archive_data">Dane Archiwalne</string>
<string name="export_from">Exportuj do</string>
<string name="time_scale">Skala czasu</string>
<string name="mean_value">Wartość średnia</string>
<string name="max_value">Wartość maksymalna</string>
<string name="show_previous">Pokaż ostatnie</string>
<string name="hours">Godziny</string>
<string name="days">Dni</string>
<string name="hours_8">8 Godzin</string>
<string name="hours_12">12 Godzin</string>
<string name="hours_15">15 Godzin</string>
<string name="hours_1">Jedna Godzina</string>
<string name="ok">OK</string>
<string name="select">Wybierz</string>
<string name="apply">Zastosuj</string>
<string name="cancel">Anuluj</string>
<string name="wind_rose">Róża Wiatrów</string>
</resources>

Wyświetl plik

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Pogoda.cc</string>
<string name="select_station">WYBIERZ</string>
<string name="all_stations">Wszystkie Stacje</string>
<string name="fav_stations">Ulubione</string>
<string name="station_summary">Bieżące wartości</string>
<string name="station_plots">Wykresy</string>
<string name="wind_speed">Prędkość Wiatru</string>
<string name="wind_gusts">Porywy Wiatru</string>
<string name="wind_direction">Kierunek Wiatru</string>
<string name="temperature">Temperatura</string>
<string name="qnh">QNH</string>
<string name="humidity">Wilgotność</string>
<string name="auto_refresh">Wartości w tym oknie odświeżają się automatycznie co 90 sekund</string>
<string name="dash">-</string>
<string name="time">Czas</string>
<string name="date">Data</string>
<string name="add">Dodaj</string>
<string name="delete">Usuń</string>
<string name="delete_fav">Usuń z listy ulubionych stacji</string>
<string name="station_not_comm">Uwaga! Ta stacja nie wysyła żadnych danych dłużej niż od 4 godzin</string>
<string name="station_disabled">Uwaga! Stacja została tymczasowo wyłączona bądź nie pracuje od dłuższego czasu</string>
<string name="archive_data">Dane Archiwalne</string>
<string name="export_from">Eksportuj od</string>
<string name="time_scale">Skala czasu</string>
<string name="mean_value">Wartość średnia</string>
<string name="max_value">Wartość masymalna</string>
<string name="show_previous">Pokaż ostatnie</string>
<string name="hours">Godziny</string>
<string name="days">Dni</string>
<string name="hours_8">8 Godzin</string>
<string name="hours_12">12 Godzin</string>
<string name="hours_15">15 Godzin</string>
<string name="hours_1">Jedna Godzina</string>
<string name="ok">OK</string>
<string name="select">Wybierz</string>
<string name="apply">Zastosuj</string>
<string name="cancel">Anuluj</string>
<string name="wind_rose">Róża Wiatrów</string>
</resources>

Wyświetl plik

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>

Wyświetl plik

@ -0,0 +1,40 @@
<resources>
<string name="app_name">Pogoda.cc</string>
<string name="select_station">SELECT</string>
<string name="all_stations">All Stations</string>
<string name="fav_stations">Favourities</string>
<string name="station_summary">Current Values</string>
<string name="station_plots">Plots</string>
<string name="wind_speed">Wind Speed</string>
<string name="wind_gusts">Wind Gusts</string>
<string name="wind_direction">Wind Direction</string>
<string name="temperature">Temperature</string>
<string name="qnh">QNH Pressure</string>
<string name="humidity">Humidity</string>
<string name="auto_refresh">Values in this window are refreshed automatically each 90 seconds</string>
<string name="dash">-</string>
<string name="time">Time</string>
<string name="date">Date</string>
<string name="add">Add</string>
<string name="delete">Delete</string>
<string name="delete_fav">Delete from favourities stations list</string>
<string name="station_not_comm">Warning! This station doesn\'t send any data for longer than 4 hours</string>
<string name="station_disabled">Warning! This station has been temporarily disabled or it is not functional for long time</string>
<string name="archive_data">Archival Data</string>
<string name="export_from">Export From</string>
<string name="time_scale">Time Scale</string>
<string name="mean_value">Mean Value</string>
<string name="max_value">Maximum Value</string>
<string name="show_previous">Show previous</string>
<string name="hours">Hours</string>
<string name="days">Days</string>
<string name="hours_8">8 Hours</string>
<string name="hours_12">12 Hours</string>
<string name="hours_15">15 Hours</string>
<string name="hours_1">One Hour</string>
<string name="ok">OK</string>
<string name="select">Select</string>
<string name="apply">Apply</string>
<string name="cancel">Cancel</string>
<string name="wind_rose">Wind Rose</string>
</resources>

Wyświetl plik

@ -0,0 +1,16 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Pogodacc" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>

Wyświetl plik

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<MotionScene
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:motion="http://schemas.android.com/apk/res-auto">
<Transition
motion:constraintSetEnd="@+id/end"
motion:constraintSetStart="@id/start"
motion:duration="1000">
<KeyFrameSet>
</KeyFrameSet>
</Transition>
<ConstraintSet android:id="@+id/start">
</ConstraintSet>
<ConstraintSet android:id="@+id/end">
</ConstraintSet>
</MotionScene>

Wyświetl plik

@ -0,0 +1,17 @@
package cc.pogoda.mobile.pogodacc;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

24
build.gradle 100644
Wyświetl plik

@ -0,0 +1,24 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

19
gradle.properties 100644
Wyświetl plik

@ -0,0 +1,19 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

BIN
gradle/wrapper/gradle-wrapper.jar vendored 100644

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,6 @@
#Tue Nov 24 11:24:57 CET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

172
gradlew vendored 100755
Wyświetl plik

@ -0,0 +1,172 @@
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"

84
gradlew.bat vendored 100644
Wyświetl plik

@ -0,0 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

2
settings.gradle 100644
Wyświetl plik

@ -0,0 +1,2 @@
include ':app'
rootProject.name = "Pogoda.cc"