Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #33 from firesoft-de/dev
Browse files Browse the repository at this point in the history
Release Version 0.6
  • Loading branch information
firesoft-de authored Feb 2, 2018
2 parents 448296b + a24cc34 commit c49d0b5
Show file tree
Hide file tree
Showing 81 changed files with 3,482 additions and 581 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ server/skripte/config/.htaccess
*.apk
*.apk
DiTaKa/app/release/app-release.apk
DiTaKa/keystore.properties
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
<PropertyGroup>
<ApplicationIcon>Symbol_512_DC.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -98,6 +101,7 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="My Project\app.manifest" />
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Imports System.Runtime.InteropServices
' Werte der Assemblyattribute überprüfen

<Assembly: AssemblyTitle("DesktopConverter")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyDescription("Der DesktopConverter dient dem umwandeln von Exceldateien in ein *.csv Format")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("DesktopConverter")>
<Assembly: AssemblyCopyright("Copyright © 2018")>
<Assembly: AssemblyProduct("Digitale Taschenkarte Fahrzeugbeladung")>
<Assembly: AssemblyCopyright("Copyright David Schlossarczyk © 2018")>
<Assembly: AssemblyTrademark("")>

<Assembly: ComVisible(False)>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC-Manifestoptionen
Wenn Sie die Ebene der Benutzerkontensteuerung für Windows ändern möchten, ersetzen Sie den
Knoten "requestedExecutionLevel" wie folgt.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Durch Angabe des Elements "requestedExecutionLevel" wird die Datei- und Registrierungsvirtualisierung deaktiviert.
Entfernen Sie dieses Element, wenn diese Virtualisierung aus Gründen der Abwärtskompatibilität
für die Anwendung erforderlich ist.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Eine Liste der Windows-Versionen, unter denen diese Anwendung getestet
und für die sie entwickelt wurde. Wenn Sie die Auskommentierung der entsprechenden Elemente aufheben,
wird von Windows automatisch die kompatibelste Umgebung ausgewählt. -->

<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->

<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->

<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->

<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->

<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->

</application>
</compatibility>

<!-- Gibt an, dass die Anwendung mit DPI-Werten kompatibel ist und von Windows nicht automatisch auf höhere
DPI-Werte skaliert wird. WPF-Anwendungen (Windows Presentation Foundation) sind automatisch mit DPI-Werten kompatibel und müssen sich nicht
anmelden. Für Windows Forms-Anwendungen für .NET Framework 4.6, die sich für diese Einstellung anmelden, muss
auch die Einstellung "'EnableWindowsFormsHighDpiAutoResizing" in der "app.config" auf "true" festgelegt werden. -->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
-->

<!-- Designs für allgemeine Windows-Steuerelemente und -Dialogfelder (Windows XP und höher) aktivieren -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->

</assembly>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
69fed98306c320cd8c5964d9f73dd963e1816df8
d87d412bdb603887f3782405e0886ec0b7d92cd7
Binary file not shown.
74 changes: 74 additions & 0 deletions DiTaKa/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
apply plugin: 'com.android.application'

// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder.
def keystorePropertiesFile = rootProject.file("keystore.properties")

// Initialize a new Properties() object called keystoreProperties.
def keystoreProperties = new Properties()

// Load your keystore.properties file into the keystoreProperties object.
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))


android {
signingConfigs {
release_signing {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
compileSdkVersion 27
defaultConfig {
applicationId "dresden.de.digitaleTaschenkarteBeladung"
minSdkVersion 18
targetSdkVersion 27
versionCode 13
versionName "0.5.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release_signing
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'android.arch.persistence.room:runtime:1.0.0'
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
compile 'com.google.code.gson:gson:2.6.2'
// Datenbank
annotationProcessor "android.arch.lifecycle:compiler:$rootProject.archLifecycleCompilerVersion"
compile "android.arch.lifecycle:runtime:$rootProject.archLifecycleVersion"
compile "android.arch.lifecycle:extensions:$rootProject.archLifecycleExtensionsVersion"
compile "android.arch.persistence.room:runtime:$rootProject.roomVersion"
annotationProcessor "android.arch.persistence.room:compiler:$rootProject.roomVersion"
//Dagger 2
compile "com.google.dagger:dagger-android:$rootProject.daggerVersion"
compile "com.google.dagger:dagger-android-support:$rootProject.daggerVersion"
// if you use the support libraries
annotationProcessor "com.google.dagger:dagger-android-processor:$rootProject.daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"
//Supportbibliotheken
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:support-v4:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:gridlayout-v7:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
}
Binary file modified DiTaKa/app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion DiTaKa/app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":11},"path":"app-release.apk","properties":{"packageId":"dresden.de.digitaleTaschenkarteBeladung","split":"","minSdkVersion":"18"}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":13},"path":"app-release.apk","properties":{"packageId":"dresden.de.digitaleTaschenkarteBeladung","split":"","minSdkVersion":"18"}}]
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected void onCreate(Bundle savedInstanceState) {
fManager = this.getSupportFragmentManager();
lManager = this.getSupportLoaderManager();
pManager = new PreferencesManager(this);
gManager = new GroupManager(this);
gManager = new GroupManager();

//PREFS laden
pManager.load();
Expand All @@ -123,7 +123,7 @@ protected void onCreate(Bundle savedInstanceState) {
else if (pManager.getDbVersion() == -1) {
dbState = Util.DbState.CLEAN;
pManager.setDbVersion(0);
if (Util_Http.checkNetwork(this,this)) {
if (Util_Http.checkNetwork(this)) {
getNetDBState(null,true);
}
else {
Expand All @@ -133,11 +133,11 @@ else if (pManager.getDbVersion() == -1) {
}
}
else {
if (Util_Http.checkNetwork(this,this)) {
if (Util_Http.checkNetwork(this)) {
getNetDBState(null, true);
}
else {
//Keine Netzwerkverbindung -> Nachricht und Ende
//Keine Netzwerkgenymverbindung -> Nachricht und Ende
Snackbar.make(this.findViewById(R.id.MainFrame), R.string.app_noConnection, Snackbar.LENGTH_LONG)
.show();
}
Expand Down Expand Up @@ -176,7 +176,7 @@ public boolean onCreateOptionsMenu(final Menu menu) {
}

//TODO: Einstellungsdialog wieder einschalten
menu.findItem(R.id.OptionMenuSettings).setVisible(false);
// menu.findItem(R.id.OptionMenuSettings).setVisible(false);

//Zählervariale
int x = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import android.widget.Button;
import android.widget.TextView;

import java.util.ArrayList;

import javax.inject.Inject;

import dresden.de.digitaleTaschenkarteBeladung.MainActivity;
Expand Down Expand Up @@ -107,7 +105,7 @@ private void resetApp() {

viewModel.deleteAll();
MainActivity activity = (MainActivity) getActivity();
activity.gManager.delete();
activity.gManager.clear();
activity.pManager.reset();
activity.dbState = Util.DbState.CLEAN;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProvider;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
Expand All @@ -35,7 +33,6 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
Expand Down Expand Up @@ -151,6 +148,12 @@ public View onCreateView(final LayoutInflater inflater, ViewGroup container,
if (url != "NO_URL_FOUND") {
editText.setText(url);
updateDBVersion(dbversion,result);
editText.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean b) {
onEditTextURLFocusChange(b);
}
});
}
else {
//Es ist davon auszugehen, dass dies der erste Start ist
Expand Down Expand Up @@ -259,7 +262,7 @@ public Loader onCreateLoader(int id, Bundle args) {
String url = args.getString(Util.ARGS_URL);
Integer version = args.getInt(Util.ARGS_VERSION);
String group = activity.gManager.subscribedToQuery();
String newGroup = activity.gManager.newToQuery();
String newGroup = activity.gManager.newGroupsQuery();

switch (id) {
case ITEM_LOADER:
Expand Down Expand Up @@ -401,6 +404,27 @@ public void onLoaderReset(Loader loader) {
//Hier wird nichts gemacht :/
}

private void onEditTextURLFocusChange(boolean focus) {
EditText editText = getActivity().findViewById(R.id.text_url);
CardView card = getActivity().findViewById(R.id.cardGroup);

if (focus) {
editText.setText("");
transformFAB(0);
groupSelectionCompleted = false;
ViewGroup viewGroup = getActivity().findViewById(R.id.data_llayout);
viewGroup.removeAllViews();

card.setVisibility(View.GONE);
}
else {
if (editText.getText().equals("")) {
editText.setText(url);
}
}

}

//=======================================================
//===================WICHTIGE METHODEN===================
//=======================================================
Expand Down Expand Up @@ -430,7 +454,7 @@ private void buttonAddClick(boolean groupManagementMode) {
url = Util_Http.handleURL(editText.getText().toString(), getActivity());

// Netzwerkstatus überpüfen
if (Util_Http.checkNetwork(getActivity(),getContext())) {
if (Util_Http.checkNetwork(getActivity())) {
// Netzwerkverbindung i.O.

// Serverdatenbankversion abrufen
Expand Down Expand Up @@ -465,18 +489,18 @@ private void buttonAddClick(boolean groupManagementMode) {

//Überprüfen welche Gruppen und überhaupt welche ausgewählt wurden
ArrayList<String> list = checkSelectedGroups();
ArrayList<Group> groups = gManager.getGroupsByName(list,true);
ArrayList<Group> groups = gManager.getGroupsByName(list);
if (list.size() == 0) {
publishProgress(true,true);
Snackbar.make(activity.findViewById(R.id.MainFrame),"Bitte wähle mindestens eine Gruppe aus",Snackbar.LENGTH_LONG)
.show();
}
else {
gManager.deleteRemovedGroups(groups, viewModel);
gManager.identifyRemovedGroups(groups, viewModel);
gManager.identifyNewGroups(groups);

//Neue Gruppen setzen
gManager.setSubscribedGroups(groups,true);
gManager.setSubscribedGroups(groups);

//Loader starten
initateLoader(activity.liveNetDBVersion.getValue());
Expand Down Expand Up @@ -655,15 +679,16 @@ private void addGroupToSelection(ArrayList<Group> groups, boolean fragmentStart)

if (groups.size() > 0) {

// Karte einstellen
CardView card = activity.findViewById(R.id.cardGroup);

card.setVisibility(View.VISIBLE);
card.setMinimumHeight(30);

drawElevation(null,getActivity(),true);

ViewGroup viewGroup = getActivity().findViewById(R.id.data_llayout);

//Abgerufene Gruppen in die Auswahl aufnehmen und dabei die bereits abonnierten Gruppen markieren
for (Group group : groups
) {
ViewGroupSelector groupSelector = new ViewGroupSelector(LayoutInflater.from(getContext()), getContext(), viewGroup);
Expand Down
Loading

0 comments on commit c49d0b5

Please sign in to comment.