Initial commit

This commit is contained in:
Alexander Doerflinger
2017-08-07 16:31:49 +02:00
commit 3be3e9ff57
44 changed files with 2287 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild

22
.idea/compiler.xml generated Normal file
View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>

3
.idea/copyright/profiles_settings.xml generated Normal file
View File

@@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="" />
</component>

6
.idea/encodings.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

18
.idea/gradle.xml generated Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

68
.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CheckstyleConfigurable">
<option name="suppFilterFilename" value="" />
<option name="suppCommentFilter" value="false" />
<option name="offComment" value="CHECKSTYLE\:OFF" />
<option name="onComment" value="CHECKSTYLE\:ON" />
<option name="checkFormat" value=".*" />
<option name="messageFormat" value="" />
<option name="checkCPP" value="true" />
<option name="checkC" value="true" />
<option name="suppNearbyCommentFilter" value="false" />
<option name="snCommentFormat" value="SUPPRESS CHECKSTYLE (\w+)" />
<option name="snCheckFormat" value="$1" />
<option name="snMessageFormat" value="" />
<option name="snInfluenceFormat" value="0" />
<option name="snCheckCPP" value="true" />
<option name="snCheckC" value="true" />
<option name="pathToUserRulesConfiguration" value="" />
<option name="pathToJarWithRules" value="" />
</component>
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="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>
<component name="SuppressionsComponent">
<option name="suppComments" value="[]" />
</component>
</project>

9
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/MarioKartCircuitSelector.iml" filepath="$PROJECT_DIR$/MarioKartCircuitSelector.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
</project>

467
.idea/qaplug_profiles.xml generated Normal file
View File

@@ -0,0 +1,467 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AnalysisProjectProfileManager">
<option name="PROJECT_PROFILE" value="Project Default" />
<option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
<scopes />
<profiles>
<profile version="1.0" is_locked="false">
<option name="myName" value="Project Default" />
<coding_rule class="AbstractClassNameCheck" level="MAJOR" enabled="false">
<param name="ignoreModifier" value="false" />
<param name="ignoreName" value="false" />
</coding_rule>
<coding_rule class="AndroidCallSuperFirst" level="MAJOR" enabled="false" />
<coding_rule class="AndroidCallSuperLast" level="MAJOR" enabled="false" />
<coding_rule class="AndroidDoNotHardCodeSDCard" level="MAJOR" enabled="false" />
<coding_rule class="AnnotationUseStyleCheck" level="MAJOR" enabled="false" />
<coding_rule class="AnonInnerLengthCheck" level="MAJOR" enabled="true" />
<coding_rule class="ArrayTrailingCommaCheck" level="MAJOR" enabled="false" />
<coding_rule class="ArrayTypeStyleCheck" level="INFO" enabled="false" />
<coding_rule class="AvoidInlineConditionalsCheck" level="INFO" enabled="false" />
<coding_rule class="AvoidNestedBlocksCheck" level="MAJOR" enabled="false" />
<coding_rule class="AvoidStarImportCheck" level="INFO" enabled="false">
<param name="allowClassImports" value="false" />
<param name="allowStaticMemberImports" value="false" />
</coding_rule>
<coding_rule class="AvoidStaticImportCheck" level="MAJOR" enabled="false" />
<coding_rule class="BasicAvoidBranchingStatementAsLastInLoop" level="MAJOR" enabled="false" />
<coding_rule class="BasicAvoidDecimalLiteralsInBigDecimalConstructor" level="MAJOR" enabled="true" />
<coding_rule class="BasicAvoidMultipleUnaryOperators" level="MAJOR" enabled="false" />
<coding_rule class="BasicAvoidThreadGroup" level="CRITICAL" enabled="false" />
<coding_rule class="BasicAvoidUsingHardCodedIP" level="MAJOR" enabled="false" />
<coding_rule class="BasicAvoidUsingOctalValues" level="MAJOR" enabled="false" />
<coding_rule class="BasicBigIntegerInstantiation" level="MAJOR" enabled="true" />
<coding_rule class="BasicBooleanInstantiation" level="MAJOR" enabled="true" />
<coding_rule class="BasicBrokenNullCheck" level="CRITICAL" enabled="true" />
<coding_rule class="BasicCheckResultSet" level="MAJOR" enabled="false" />
<coding_rule class="BasicCheckSkipResult" level="MAJOR" enabled="false" />
<coding_rule class="BasicClassCastExceptionWithToArray" level="MAJOR" enabled="true" />
<coding_rule class="BasicCollapsibleIfStatements" level="MINOR" enabled="true" />
<coding_rule class="BasicDontCallThreadRun" level="MAJOR" enabled="false" />
<coding_rule class="BasicDontUseFloatTypeForLoopIndices" level="MAJOR" enabled="false" />
<coding_rule class="BasicDoubleCheckedLocking" level="MAJOR" enabled="false" />
<coding_rule class="BasicExtendsObject" level="MAJOR" enabled="false" />
<coding_rule class="BasicForLoopShouldBeWhileLoop" level="MINOR" enabled="false" />
<coding_rule class="BasicJSFDontNestJsfInJstlIteration" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPIframeMissingSrcAttribute" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPNoClassAttribute" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPNoHtmlComments" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPNoInlineStyleInformation" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPNoJspForward" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPNoLongScripts" level="MAJOR" enabled="false" />
<coding_rule class="BasicJSPNoScriptlets" level="MAJOR" enabled="false" />
<coding_rule class="BasicJumbledIncrementer" level="MAJOR" enabled="false" />
<coding_rule class="BasicMisplacedNullCheck" level="CRITICAL" enabled="false" />
<coding_rule class="BasicOverrideBothEqualsAndHashcode" level="CRITICAL" enabled="false" />
<coding_rule class="BasicReturnFromFinallyBlock" level="MAJOR" enabled="false" />
<coding_rule class="BasicUnconditionalIfStatement" level="CRITICAL" enabled="true" />
<coding_rule class="BooleanExpressionComplexityCheck" level="MAJOR" enabled="true" />
<coding_rule class="BracesForLoopsMustUseBraces" level="MAJOR" enabled="true" />
<coding_rule class="BracesIfElseStmtsMustUseBraces" level="MAJOR" enabled="true" />
<coding_rule class="BracesIfStmtsMustUseBraces" level="MAJOR" enabled="true" />
<coding_rule class="BracesWhileLoopsMustUseBraces" level="MAJOR" enabled="true" />
<coding_rule class="ClassDataAbstractionCouplingCheck" level="MAJOR" enabled="false" />
<coding_rule class="ClassFanOutComplexityCheck" level="MAJOR" enabled="false" />
<coding_rule class="ClassTypeParameterNameCheck" level="MAJOR" enabled="false" />
<coding_rule class="CloneImplementationCloneMethodMustImplementCloneable" level="MAJOR" enabled="false" />
<coding_rule class="CloneImplementationCloneThrowsCloneNotSupportedException" level="MAJOR" enabled="true" />
<coding_rule class="CloneImplementationProperCloneImplementation" level="CRITICAL" enabled="false" />
<coding_rule class="CodeSizeCyclomaticComplexity" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeExcessiveClassLength" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeExcessiveMethodLength" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeExcessiveParameterList" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeExcessivePublicCount" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeNPathComplexity" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeNcssConstructorCount" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeNcssMethodCount" level="MAJOR" enabled="true" />
<coding_rule class="CodeSizeNcssTypeCount" level="MAJOR" enabled="true" />
<coding_rule class="CodeSizeTooManyFields" level="MAJOR" enabled="false" />
<coding_rule class="CodeSizeTooManyMethods" level="MAJOR" enabled="false" />
<coding_rule class="ConstantNameCheck" level="INFO" enabled="true" />
<coding_rule class="ControversialAssignmentInOperand" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAtLeastOneConstructor" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidAccessibilityAlteration" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidFinalLocalVariable" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidLiteralsInIfCondition" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidPrefixingMethodParameters" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidUsingNativeCode" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidUsingShortType" level="MAJOR" enabled="false" />
<coding_rule class="ControversialAvoidUsingVolatile" level="MAJOR" enabled="false" />
<coding_rule class="ControversialBooleanInversion" level="MAJOR" enabled="false" />
<coding_rule class="ControversialCallSuperInConstructor" level="MINOR" enabled="false" />
<coding_rule class="ControversialDataflowAnomalyAnalysis" level="MAJOR" enabled="false" />
<coding_rule class="ControversialDefaultPackage" level="MINOR" enabled="false" />
<coding_rule class="ControversialDoNotCallGarbageCollectionExplicitly" level="CRITICAL" enabled="false" />
<coding_rule class="ControversialDontImportSun" level="MINOR" enabled="true" />
<coding_rule class="ControversialNullAssignment" level="MAJOR" enabled="false" />
<coding_rule class="ControversialOneDeclarationPerLine" level="MAJOR" enabled="false" />
<coding_rule class="ControversialOnlyOneReturn" level="MINOR" enabled="false" />
<coding_rule class="ControversialSuspiciousOctalEscape" level="MAJOR" enabled="false" />
<coding_rule class="ControversialUnnecessaryConstructor" level="MAJOR" enabled="false" />
<coding_rule class="ControversialUnnecessaryParentheses" level="MINOR" enabled="false" />
<coding_rule class="ControversialUseConcurrentHashMap" level="MAJOR" enabled="false" />
<coding_rule class="ControversialUseObjectForClearerAPI" level="MAJOR" enabled="false" />
<coding_rule class="CouplingCouplingBetweenObjects" level="MAJOR" enabled="false" />
<coding_rule class="CouplingExcessiveImports" level="MAJOR" enabled="false" />
<coding_rule class="CouplingLawOfDemeter" level="MAJOR" enabled="false" />
<coding_rule class="CouplingLooseCoupling" level="MAJOR" enabled="true" />
<coding_rule class="CouplingLoosePackageCoupling" level="MAJOR" enabled="false" />
<coding_rule class="CovariantEqualsCheck" level="MAJOR" enabled="false" />
<coding_rule class="CyclomaticComplexityCheck" level="MAJOR" enabled="true" />
<coding_rule class="DeclarationOrderCheck" level="INFO" enabled="false">
<param name="ignoreConstructors" value="false" />
<param name="ignoreMethods" value="false" />
<param name="ignoreModifiers" value="false" />
</coding_rule>
<coding_rule class="DefaultComesLastCheck" level="MAJOR" enabled="true" />
<coding_rule class="DescendantTokenCheck" level="MAJOR" enabled="false" />
<coding_rule class="DesignAbstractClassWithoutAbstractMethod" level="MAJOR" enabled="false" />
<coding_rule class="DesignAbstractClassWithoutAnyMethod" level="MAJOR" enabled="false" />
<coding_rule class="DesignAccessorClassGeneration" level="MAJOR" enabled="false" />
<coding_rule class="DesignAssignmentToNonFinalStatic" level="MAJOR" enabled="false" />
<coding_rule class="DesignAvoidConstantsInterface" level="MAJOR" enabled="false" />
<coding_rule class="DesignAvoidDeeplyNestedIfStmts" level="MAJOR" enabled="false" />
<coding_rule class="DesignAvoidInstanceofChecksInCatchClause" level="MINOR" enabled="true" />
<coding_rule class="DesignAvoidProtectedFieldInFinalClass" level="MAJOR" enabled="false" />
<coding_rule class="DesignAvoidReassigningParameters" level="MAJOR" enabled="false" />
<coding_rule class="DesignAvoidSynchronizedAtMethodLevel" level="MAJOR" enabled="false" />
<coding_rule class="DesignBadComparison" level="MAJOR" enabled="false" />
<coding_rule class="DesignClassWithOnlyPrivateConstructorsShouldBeFinal" level="MAJOR" enabled="false" />
<coding_rule class="DesignCloseResource" level="MAJOR" enabled="true" />
<coding_rule class="DesignCompareObjectsWithEquals" level="MAJOR" enabled="true" />
<coding_rule class="DesignConfusingTernary" level="MAJOR" enabled="false" />
<coding_rule class="DesignConstructorCallsOverridableMethod" level="MAJOR" enabled="true" />
<coding_rule class="DesignDefaultLabelNotLastInSwitchStmt" level="MAJOR" enabled="false" />
<coding_rule class="DesignEmptyMethodInAbstractClassShouldBeAbstract" level="MAJOR" enabled="false" />
<coding_rule class="DesignEqualsNull" level="CRITICAL" enabled="true" />
<coding_rule class="DesignFieldDeclarationsShouldBeAtStartOfClass" level="MAJOR" enabled="false" />
<coding_rule class="DesignFinalFieldCouldBeStatic" level="MINOR" enabled="true" />
<coding_rule class="DesignForExtensionCheck" level="INFO" enabled="true" />
<coding_rule class="DesignGodClass" level="MAJOR" enabled="false" />
<coding_rule class="DesignIdempotentOperations" level="MAJOR" enabled="true" />
<coding_rule class="DesignImmutableField" level="MAJOR" enabled="false" />
<coding_rule class="DesignInstantiationToGetClass" level="MAJOR" enabled="true" />
<coding_rule class="DesignLogicInversion" level="MAJOR" enabled="false" />
<coding_rule class="DesignMissingBreakInSwitch" level="CRITICAL" enabled="false" />
<coding_rule class="DesignMissingStaticMethodInNonInstantiatableClass" level="MAJOR" enabled="true" />
<coding_rule class="DesignNonCaseLabelInSwitchStatement" level="MAJOR" enabled="false" />
<coding_rule class="DesignNonStaticInitializer" level="MAJOR" enabled="false" />
<coding_rule class="DesignNonThreadSafeSingleton" level="MAJOR" enabled="false" />
<coding_rule class="DesignOptimizableToArrayCall" level="MAJOR" enabled="false" />
<coding_rule class="DesignPositionLiteralsFirstInComparisons" level="MAJOR" enabled="false" />
<coding_rule class="DesignPreserveStackTrace" level="MAJOR" enabled="true" />
<coding_rule class="DesignReturnEmptyArrayRatherThanNull" level="MINOR" enabled="false" />
<coding_rule class="DesignSimpleDateFormatNeedsLocale" level="MAJOR" enabled="false" />
<coding_rule class="DesignSimplifyBooleanExpressions" level="MAJOR" enabled="false" />
<coding_rule class="DesignSimplifyBooleanReturns" level="MINOR" enabled="false" />
<coding_rule class="DesignSimplifyConditional" level="MAJOR" enabled="true" />
<coding_rule class="DesignSingularField" level="MINOR" enabled="true" />
<coding_rule class="DesignSwitchDensity" level="MAJOR" enabled="false" />
<coding_rule class="DesignSwitchStmtsShouldHaveDefault" level="MAJOR" enabled="false" />
<coding_rule class="DesignTooFewBranchesForASwitchStatement" level="MINOR" enabled="false" />
<coding_rule class="DesignUncommentedEmptyConstructor" level="MAJOR" enabled="false" />
<coding_rule class="DesignUncommentedEmptyMethod" level="MAJOR" enabled="false" />
<coding_rule class="DesignUnnecessaryLocalBeforeReturn" level="MAJOR" enabled="true" />
<coding_rule class="DesignUnsynchronizedStaticDateFormatter" level="MAJOR" enabled="false" />
<coding_rule class="DesignUseCollectionIsEmpty" level="MINOR" enabled="false" />
<coding_rule class="DesignUseLocaleWithCaseConversions" level="MAJOR" enabled="false" />
<coding_rule class="DesignUseNotifyAllInsteadOfNotify" level="MAJOR" enabled="false" />
<coding_rule class="DesignUseSingleton" level="MAJOR" enabled="false" />
<coding_rule class="DesignUseVarargs" level="MAJOR" enabled="false" />
<coding_rule class="EmptyBlockCheck" level="MAJOR" enabled="false" />
<coding_rule class="EmptyCodeEmptyCatchBlock" level="CRITICAL" enabled="false" />
<coding_rule class="EmptyCodeEmptyFinallyBlock" level="CRITICAL" enabled="true" />
<coding_rule class="EmptyCodeEmptyIfStmt" level="CRITICAL" enabled="true" />
<coding_rule class="EmptyCodeEmptyInitializer" level="MAJOR" enabled="false" />
<coding_rule class="EmptyCodeEmptyStatementBlock" level="MAJOR" enabled="false" />
<coding_rule class="EmptyCodeEmptyStatementNotInLoop" level="MAJOR" enabled="false" />
<coding_rule class="EmptyCodeEmptyStaticInitializer" level="MAJOR" enabled="true" />
<coding_rule class="EmptyCodeEmptySwitchStatements" level="MAJOR" enabled="true" />
<coding_rule class="EmptyCodeEmptySynchronizedBlock" level="CRITICAL" enabled="true" />
<coding_rule class="EmptyCodeEmptyTryBlock" level="MAJOR" enabled="true" />
<coding_rule class="EmptyCodeEmptyWhileStmt" level="CRITICAL" enabled="true" />
<coding_rule class="EmptyForInitializerPadCheck" level="INFO" enabled="false" />
<coding_rule class="EmptyForIteratorPadCheck" level="INFO" enabled="false" />
<coding_rule class="EmptyStatementCheck" level="INFO" enabled="true" />
<coding_rule class="EqualsAvoidNullCheck" level="MAJOR" enabled="false">
<param name="ignoreEqualsIgnoreCase" value="false" />
</coding_rule>
<coding_rule class="EqualsHashCodeCheck" level="MAJOR" enabled="true" />
<coding_rule class="ExecutableStatementCountCheck" level="MAJOR" enabled="false" />
<coding_rule class="ExplicitInitializationCheck" level="MAJOR" enabled="false" />
<coding_rule class="FallThroughCheck" level="MAJOR" enabled="false" />
<coding_rule class="FileLengthCheck" level="MAJOR" enabled="false" />
<coding_rule class="FileTabCharacterCheck" level="MAJOR" enabled="false" />
<coding_rule class="FinalClassCheck" level="MAJOR" enabled="true" />
<coding_rule class="FinalLocalVariableCheck" level="INFO" enabled="false" />
<coding_rule class="FinalParametersCheck" level="INFO" enabled="false" />
<coding_rule class="FinalizerAvoidCallingFinalize" level="MAJOR" enabled="true" />
<coding_rule class="FinalizerEmptyFinalizer" level="MAJOR" enabled="true" />
<coding_rule class="FinalizerFinalizeDoesNotCallSuperFinalize" level="MAJOR" enabled="true" />
<coding_rule class="FinalizerFinalizeOnlyCallsSuperFinalize" level="MAJOR" enabled="false" />
<coding_rule class="FinalizerFinalizeOverloaded" level="MAJOR" enabled="true" />
<coding_rule class="FinalizerFinalizeShouldBeProtected" level="MAJOR" enabled="false" />
<coding_rule class="GenericWhitespaceCheck" level="MAJOR" enabled="false" />
<coding_rule class="HeaderCheck" level="MAJOR" enabled="false" />
<coding_rule class="HiddenFieldCheck" level="MAJOR" enabled="true" />
<coding_rule class="HideUtilityClassConstructorCheck" level="MAJOR" enabled="true" />
<coding_rule class="IllegalCatchCheck" level="MAJOR" enabled="false" />
<coding_rule class="IllegalImportCheck" level="MAJOR" enabled="false" />
<coding_rule class="IllegalInstantiationCheck" level="MAJOR" enabled="false" />
<coding_rule class="IllegalThrowsCheck" level="MAJOR" enabled="true" />
<coding_rule class="IllegalTokenCheck" level="MAJOR" enabled="false" />
<coding_rule class="IllegalTokenTextCheck" level="MAJOR" enabled="false" />
<coding_rule class="IllegalTypeCheck" level="MAJOR" enabled="false" />
<coding_rule class="ImportControlCheck" level="MAJOR" enabled="false" />
<coding_rule class="ImportOrderCheck" level="INFO" enabled="false" />
<coding_rule class="ImportStatementsDontImportJavaLang" level="MINOR" enabled="true" />
<coding_rule class="ImportStatementsDuplicateImports" level="MINOR" enabled="false" />
<coding_rule class="ImportStatementsImportFromSamePackage" level="MINOR" enabled="false" />
<coding_rule class="ImportStatementsTooManyStaticImports" level="MAJOR" enabled="false" />
<coding_rule class="ImportStatementsUnusedImports" level="INFO" enabled="false" />
<coding_rule class="IndentationCheck" level="INFO" enabled="false" />
<coding_rule class="InnerAssignmentCheck" level="MAJOR" enabled="true" />
<coding_rule class="InnerTypeLastCheck" level="MAJOR" enabled="true" />
<coding_rule class="InterfaceIsTypeCheck" level="MAJOR" enabled="false" />
<coding_rule class="J2EEDoNotCallSystemExit" level="MAJOR" enabled="false" />
<coding_rule class="J2EEDoNotUseThreads" level="MAJOR" enabled="false" />
<coding_rule class="J2EELocalHomeNamingConvention" level="MAJOR" enabled="false" />
<coding_rule class="J2EELocalInterfaceSessionNamingConvention" level="MAJOR" enabled="false" />
<coding_rule class="J2EEMDBAndSessionBeanNamingConvention" level="MAJOR" enabled="false" />
<coding_rule class="J2EERemoteInterfaceNamingConvention" level="MAJOR" enabled="false" />
<coding_rule class="J2EERemoteSessionInterfaceNamingConvention" level="MAJOR" enabled="false" />
<coding_rule class="J2EEStaticEJBFieldShouldBeFinal" level="MAJOR" enabled="false" />
<coding_rule class="J2EEUseProperClassLoader" level="CRITICAL" enabled="false" />
<coding_rule class="JUnitJUnitAssertionsShouldIncludeMessage" level="MAJOR" enabled="false" />
<coding_rule class="JUnitJUnitSpelling" level="MAJOR" enabled="false" />
<coding_rule class="JUnitJUnitStaticSuite" level="MAJOR" enabled="false" />
<coding_rule class="JUnitJUnitTestContainsTooManyAsserts" level="MAJOR" enabled="false" />
<coding_rule class="JUnitJUnitTestsShouldIncludeAssert" level="MAJOR" enabled="false" />
<coding_rule class="JUnitSimplifyBooleanAssertion" level="MAJOR" enabled="false" />
<coding_rule class="JUnitTestCaseCheck" level="MAJOR" enabled="false" />
<coding_rule class="JUnitTestClassWithoutTestCases" level="MAJOR" enabled="false" />
<coding_rule class="JUnitUnnecessaryBooleanAssertion" level="MAJOR" enabled="false" />
<coding_rule class="JUnitUseAssertEqualsInsteadOfAssertTrue" level="MAJOR" enabled="false" />
<coding_rule class="JUnitUseAssertNullInsteadOfAssertTrue" level="MAJOR" enabled="false" />
<coding_rule class="JUnitUseAssertSameInsteadOfAssertTrue" level="MAJOR" enabled="false" />
<coding_rule class="JUnitUseAssertTrueInsteadOfAssertEquals" level="MAJOR" enabled="false" />
<coding_rule class="JakartaCommonsLoggingGuardDebugLogging" level="MAJOR" enabled="false" />
<coding_rule class="JakartaCommonsLoggingProperLogger" level="MAJOR" enabled="false" />
<coding_rule class="JakartaCommonsLoggingUseCorrectExceptionLogging" level="MAJOR" enabled="true" />
<coding_rule class="JavaBeansBeanMembersShouldSerialize" level="MAJOR" enabled="false" />
<coding_rule class="JavaBeansMissingSerialVersionUID" level="MAJOR" enabled="false" />
<coding_rule class="JavaLoggingAvoidPrintStackTrace" level="MAJOR" enabled="true" />
<coding_rule class="JavaLoggingLoggerIsNotStaticFinal" level="MAJOR" enabled="false" />
<coding_rule class="JavaLoggingMoreThanOneLogger" level="MAJOR" enabled="false" />
<coding_rule class="JavaLoggingSystemPrintln" level="MAJOR" enabled="true" />
<coding_rule class="JavaNCSSCheck" level="MAJOR" enabled="false" />
<coding_rule class="JavadocMethodCheck" level="MAJOR" enabled="false" />
<coding_rule class="JavadocPackageCheck" level="MAJOR" enabled="false" />
<coding_rule class="JavadocStyleCheck" level="MAJOR" enabled="false" />
<coding_rule class="JavadocTypeCheck" level="MAJOR" enabled="false" />
<coding_rule class="JavadocVariableCheck" level="MAJOR" enabled="false" />
<coding_rule class="LeftCurlyCheck" level="INFO" enabled="false" />
<coding_rule class="LineLengthCheck" level="MAJOR" enabled="false" />
<coding_rule class="LocalFinalVariableNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="LocalVariableNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="MagicNumberCheck" level="INFO" enabled="true">
<param name="ignoreHashCodeMethod" value="false" />
<param name="ignoreAnnotation" value="false" />
</coding_rule>
<coding_rule class="MemberNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="MethodCountCheck" level="MAJOR" enabled="false">
<param name="maxTotal" value="100" />
<param name="maxPrivate" value="100" />
<param name="maxPackage" value="100" />
<param name="maxProtected" value="100" />
<param name="maxPublic" value="100" />
</coding_rule>
<coding_rule class="MethodLengthCheck" level="MAJOR" enabled="false" />
<coding_rule class="MethodNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="MethodParamPadCheck" level="MAJOR" enabled="false" />
<coding_rule class="MethodTypeParameterNameCheck" level="MAJOR" enabled="false" />
<coding_rule class="MigrationAvoidAssertAsIdentifier" level="MAJOR" enabled="true" />
<coding_rule class="MigrationAvoidEnumAsIdentifier" level="MAJOR" enabled="true" />
<coding_rule class="MigrationByteInstantiation" level="MAJOR" enabled="false" />
<coding_rule class="MigrationIntegerInstantiation" level="MAJOR" enabled="true" />
<coding_rule class="MigrationJUnit4SuitesShouldUseSuiteAnnotation" level="MAJOR" enabled="false" />
<coding_rule class="MigrationJUnit4TestShouldUseAfterAnnotation" level="MAJOR" enabled="false" />
<coding_rule class="MigrationJUnit4TestShouldUseBeforeAnnotation" level="MAJOR" enabled="false" />
<coding_rule class="MigrationJUnit4TestShouldUseTestAnnotation" level="MAJOR" enabled="false" />
<coding_rule class="MigrationJUnitUseExpected" level="MAJOR" enabled="false" />
<coding_rule class="MigrationLongInstantiation" level="MAJOR" enabled="false" />
<coding_rule class="MigrationReplaceEnumerationWithIterator" level="MAJOR" enabled="true" />
<coding_rule class="MigrationReplaceHashtableWithMap" level="MAJOR" enabled="true" />
<coding_rule class="MigrationReplaceVectorWithList" level="MAJOR" enabled="true" />
<coding_rule class="MigrationShortInstantiation" level="MAJOR" enabled="false" />
<coding_rule class="MissingCtorCheck" level="MAJOR" enabled="false" />
<coding_rule class="MissingDeprecatedCheck" level="MAJOR" enabled="false" />
<coding_rule class="MissingOverrideCheck" level="MAJOR" enabled="false" />
<coding_rule class="MissingSwitchDefaultCheck" level="MAJOR" enabled="false" />
<coding_rule class="ModifiedControlVariableCheck" level="MAJOR" enabled="false" />
<coding_rule class="ModifierOrderCheck" level="INFO" enabled="true" />
<coding_rule class="MultipleStringLiteralsCheck" level="MAJOR" enabled="false" />
<coding_rule class="MultipleVariableDeclarationsCheck" level="MAJOR" enabled="false" />
<coding_rule class="MutableExceptionCheck" level="MAJOR" enabled="false" />
<coding_rule class="NPathComplexityCheck" level="MAJOR" enabled="false" />
<coding_rule class="NamingAbstractNaming" level="MAJOR" enabled="false" />
<coding_rule class="NamingAvoidDollarSigns" level="MINOR" enabled="true" />
<coding_rule class="NamingAvoidFieldNameMatchingMethodName" level="MAJOR" enabled="false" />
<coding_rule class="NamingAvoidFieldNameMatchingTypeName" level="MAJOR" enabled="false" />
<coding_rule class="NamingBooleanGetMethodName" level="MAJOR" enabled="false" />
<coding_rule class="NamingClassNamingConventions" level="MAJOR" enabled="true" />
<coding_rule class="NamingGenericsNaming" level="MAJOR" enabled="false" />
<coding_rule class="NamingLongVariable" level="MAJOR" enabled="false" />
<coding_rule class="NamingMethodNamingConventions" level="MAJOR" enabled="false" />
<coding_rule class="NamingMethodWithSameNameAsEnclosingClass" level="MAJOR" enabled="true" />
<coding_rule class="NamingMisleadingVariableName" level="MAJOR" enabled="false" />
<coding_rule class="NamingNoPackage" level="MAJOR" enabled="false" />
<coding_rule class="NamingPackageCase" level="MAJOR" enabled="false" />
<coding_rule class="NamingShortClassName" level="MAJOR" enabled="false" />
<coding_rule class="NamingShortMethodName" level="MAJOR" enabled="false" />
<coding_rule class="NamingShortVariable" level="MAJOR" enabled="false" />
<coding_rule class="NamingSuspiciousConstantFieldName" level="MAJOR" enabled="true" />
<coding_rule class="NamingSuspiciousEqualsMethodName" level="CRITICAL" enabled="true" />
<coding_rule class="NamingSuspiciousHashcodeMethodName" level="MAJOR" enabled="true" />
<coding_rule class="NamingVariableNamingConventions" level="MAJOR" enabled="false" />
<coding_rule class="NeedBracesCheck" level="INFO" enabled="false" />
<coding_rule class="NestedForDepthCheck" level="MAJOR" enabled="false">
<param name="max" value="1" />
</coding_rule>
<coding_rule class="NestedIfDepthCheck" level="MAJOR" enabled="false" />
<coding_rule class="NestedTryDepthCheck" level="MAJOR" enabled="false" />
<coding_rule class="NewlineAtEndOfFileCheck" level="INFO" enabled="false" />
<coding_rule class="NoCloneCheck" level="MAJOR" enabled="false" />
<coding_rule class="NoFinalizerCheck" level="MAJOR" enabled="false" />
<coding_rule class="NoWhitespaceAfterCheck" level="INFO" enabled="false" />
<coding_rule class="NoWhitespaceBeforeCheck" level="INFO" enabled="false" />
<coding_rule class="OneStatementPerLineCheck" level="INFO" enabled="false" />
<coding_rule class="OperatorWrapCheck" level="INFO" enabled="false" />
<coding_rule class="OptimizationAddEmptyString" level="MAJOR" enabled="false" />
<coding_rule class="OptimizationAvoidArrayLoops" level="MAJOR" enabled="true" />
<coding_rule class="OptimizationAvoidInstantiatingObjectsInLoops" level="MINOR" enabled="false" />
<coding_rule class="OptimizationLocalVariableCouldBeFinal" level="MINOR" enabled="false" />
<coding_rule class="OptimizationMethodArgumentCouldBeFinal" level="MINOR" enabled="false" />
<coding_rule class="OptimizationPrematureDeclaration" level="MAJOR" enabled="false" />
<coding_rule class="OptimizationRedundantFieldInitializer" level="MAJOR" enabled="false" />
<coding_rule class="OptimizationSimplifyStartsWith" level="MINOR" enabled="false" />
<coding_rule class="OptimizationUnnecessaryWrapperObjectCreation" level="MAJOR" enabled="false" />
<coding_rule class="OptimizationUseArrayListInsteadOfVector" level="MAJOR" enabled="true" />
<coding_rule class="OptimizationUseArraysAsList" level="MAJOR" enabled="true" />
<coding_rule class="OptimizationUseStringBufferForStringAppends" level="MAJOR" enabled="false" />
<coding_rule class="OuterTypeFilenameCheck" level="INFO" enabled="false" />
<coding_rule class="OuterTypeNumberCheck" level="MAJOR" enabled="false" />
<coding_rule class="PackageAnnotationCheck" level="MAJOR" enabled="false" />
<coding_rule class="PackageDeclarationCheck" level="MAJOR" enabled="false">
<param name="ignoreDirectoryName" value="false" />
</coding_rule>
<coding_rule class="PackageNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="ParameterAssignmentCheck" level="MAJOR" enabled="true" />
<coding_rule class="ParameterNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="ParameterNumberCheck" level="MAJOR" enabled="false" />
<coding_rule class="ParenPadCheck" level="INFO" enabled="false" />
<coding_rule class="RedundantImportCheck" level="INFO" enabled="false" />
<coding_rule class="RedundantModifierCheck" level="INFO" enabled="true" />
<coding_rule class="RedundantThrowsCheck" level="INFO" enabled="true" />
<coding_rule class="RegexpCheck" level="MAJOR" enabled="false" />
<coding_rule class="RegexpHeaderCheck" level="MAJOR" enabled="false" />
<coding_rule class="RegexpMultilineCheck" level="MAJOR" enabled="false">
<param name="message" value="TODO item found" />
<param name="minimum" value="0" />
<param name="maximum" value="0" />
<param name="format" value="TODO" />
<param name="ignoreCase" value="true" />
</coding_rule>
<coding_rule class="RegexpSinglelineCheck" level="MAJOR" enabled="false">
<param name="message" value="TODO item found" />
<param name="minimum" value="0" />
<param name="maximum" value="0" />
<param name="format" value="TODO" />
<param name="ignoreCase" value="true" />
</coding_rule>
<coding_rule class="RegexpSinglelineJavaCheck" level="MAJOR" enabled="false">
<param name="message" value="TODO item found" />
<param name="minimum" value="0" />
<param name="maximum" value="0" />
<param name="ignoreComments" value="false" />
<param name="format" value="TODO" />
<param name="ignoreCase" value="true" />
</coding_rule>
<coding_rule class="RequireThisCheck" level="MAJOR" enabled="false" />
<coding_rule class="ReturnCountCheck" level="MAJOR" enabled="false" />
<coding_rule class="RightCurlyCheck" level="INFO" enabled="false" />
<coding_rule class="SecurityCodeGuidelinesArrayIsStoredDirectly" level="CRITICAL" enabled="true" />
<coding_rule class="SecurityCodeGuidelinesMethodReturnsInternalArray" level="CRITICAL" enabled="false" />
<coding_rule class="SimplifyBooleanExpressionCheck" level="MAJOR" enabled="true" />
<coding_rule class="SimplifyBooleanReturnCheck" level="MAJOR" enabled="true" />
<coding_rule class="StaticVariableNameCheck" level="MAJOR" enabled="true" />
<coding_rule class="StrictDuplicateCodeCheck" level="MAJOR" enabled="false" />
<coding_rule class="StrictExceptionsAvoidCatchingGenericException" level="MAJOR" enabled="false" />
<coding_rule class="StrictExceptionsAvoidCatchingNPE" level="MAJOR" enabled="true" />
<coding_rule class="StrictExceptionsAvoidCatchingThrowable" level="CRITICAL" enabled="true" />
<coding_rule class="StrictExceptionsAvoidLosingExceptionInformation" level="MAJOR" enabled="false" />
<coding_rule class="StrictExceptionsAvoidRethrowingException" level="MAJOR" enabled="true" />
<coding_rule class="StrictExceptionsAvoidThrowingNewInstanceOfSameException" level="MAJOR" enabled="false" />
<coding_rule class="StrictExceptionsAvoidThrowingNullPointerException" level="MAJOR" enabled="true" />
<coding_rule class="StrictExceptionsAvoidThrowingRawExceptionTypes" level="MAJOR" enabled="true" />
<coding_rule class="StrictExceptionsDoNotExtendJavaLangError" level="MAJOR" enabled="false" />
<coding_rule class="StrictExceptionsDoNotThrowExceptionInFinally" level="MAJOR" enabled="false" />
<coding_rule class="StrictExceptionsExceptionAsFlowControl" level="MAJOR" enabled="true" />
<coding_rule class="StrictExceptionsSignatureDeclareThrowsException" level="MAJOR" enabled="true" />
<coding_rule class="StringLiteralEqualityCheck" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferAppendCharacterWithChar" level="MINOR" enabled="false" />
<coding_rule class="StringandStringBufferAvoidDuplicateLiterals" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferAvoidStringBufferField" level="MAJOR" enabled="false" />
<coding_rule class="StringandStringBufferConsecutiveLiteralAppends" level="MINOR" enabled="false" />
<coding_rule class="StringandStringBufferInefficientEmptyStringCheck" level="MAJOR" enabled="false" />
<coding_rule class="StringandStringBufferInefficientStringBuffering" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferInsufficientStringBufferDeclaration" level="MAJOR" enabled="false" />
<coding_rule class="StringandStringBufferStringBufferInstantiationWithChar" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferStringInstantiation" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferStringToString" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferUnnecessaryCaseChange" level="MINOR" enabled="true" />
<coding_rule class="StringandStringBufferUseEqualsToCompareStrings" level="MAJOR" enabled="false" />
<coding_rule class="StringandStringBufferUseIndexOfChar" level="MAJOR" enabled="true" />
<coding_rule class="StringandStringBufferUseStringBufferLength" level="MINOR" enabled="true" />
<coding_rule class="StringandStringBufferUselessStringValueOf" level="MINOR" enabled="true" />
<coding_rule class="SuperCloneCheck" level="MAJOR" enabled="false" />
<coding_rule class="SuperFinalizeCheck" level="MAJOR" enabled="false" />
<coding_rule class="SuppressWarningsCheck" level="MAJOR" enabled="false" />
<coding_rule class="ThrowsCountCheck" level="MAJOR" enabled="false" />
<coding_rule class="TodoCommentCheck" level="INFO" enabled="false" />
<coding_rule class="TrailingCommentCheck" level="INFO" enabled="false" />
<coding_rule class="TranslationCheck" level="INFO" enabled="false" />
<coding_rule class="TypeNameCheck" level="MAJOR" enabled="false" />
<coding_rule class="TypeResolutionCloneMethodMustImplementCloneable" level="MAJOR" enabled="false" />
<coding_rule class="TypeResolutionLooseCoupling" level="MAJOR" enabled="true" />
<coding_rule class="TypeResolutionSignatureDeclareThrowsException" level="MAJOR" enabled="true" />
<coding_rule class="TypeResolutionUnusedImports" level="INFO" enabled="false" />
<coding_rule class="TypecastParenPadCheck" level="MAJOR" enabled="false" />
<coding_rule class="UncommentedMainCheck" level="MAJOR" enabled="false" />
<coding_rule class="UnnecessaryParenthesesCheck" level="INFO" enabled="false" />
<coding_rule class="UnnecessaryUnnecessaryConversionTemporary" level="MAJOR" enabled="false" />
<coding_rule class="UnnecessaryUnnecessaryFinalModifier" level="INFO" enabled="false" />
<coding_rule class="UnnecessaryUnnecessaryReturn" level="MINOR" enabled="false" />
<coding_rule class="UnnecessaryUnusedNullCheckInEquals" level="MAJOR" enabled="true" />
<coding_rule class="UnnecessaryUselessOperationOnImmutable" level="CRITICAL" enabled="true" />
<coding_rule class="UnnecessaryUselessOverridingMethod" level="MAJOR" enabled="true" />
<coding_rule class="UnnecessaryUselessParentheses" level="MAJOR" enabled="false" />
<coding_rule class="UnusedCodeUnusedFormalParameter" level="MAJOR" enabled="true" />
<coding_rule class="UnusedCodeUnusedLocalVariable" level="MAJOR" enabled="true" />
<coding_rule class="UnusedCodeUnusedModifier" level="MAJOR" enabled="true" />
<coding_rule class="UnusedCodeUnusedPrivateField" level="MAJOR" enabled="true" />
<coding_rule class="UnusedCodeUnusedPrivateMethod" level="MAJOR" enabled="true" />
<coding_rule class="UnusedImportsCheck" level="INFO" enabled="true">
<param name="processJavadoc" value="false" />
</coding_rule>
<coding_rule class="UpperEllCheck" level="INFO" enabled="false" />
<coding_rule class="VisibilityModifierCheck" level="MAJOR" enabled="true" />
<coding_rule class="WhitespaceAfterCheck" level="INFO" enabled="false" />
<coding_rule class="WhitespaceAroundCheck" level="INFO" enabled="false" />
<coding_rule class="WriteTagCheck" level="INFO" enabled="false" />
</profile>
</profiles>
<list size="0" />
</component>
</project>

12
.idea/runConfigurations.xml generated Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>

1
app/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/build

30
app/build.gradle Normal file
View File

@@ -0,0 +1,30 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.de.aldo_apps.aldo.mariokartcircuitselector"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}

25
app/proguard-rules.pro vendored Normal file
View File

@@ -0,0 +1,25 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /opt/dev-env/latest/core/android-sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# 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

View File

@@ -0,0 +1,26 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation 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() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.de.aldo_apps.aldo.mariokartcircuitselector", appContext.getPackageName());
}
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.de.aldo_apps.aldo.mariokartcircuitselector">
<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/AppTheme">
<activity android:name=".GameSelection">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@@ -0,0 +1,13 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class GameSelection extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_game_selection);
}
}

View File

@@ -0,0 +1,127 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single accessory object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Accessory {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Accessory";
/**
* The database ID of this Accessory object.
*/
private int mId;
/**
* The name of this accessory object.
*/
private String mName;
/**
* The name of the game where this accessory object is available.
*/
private String mGame;
/**
* The integer value representing the availability state of this accessory object.
*/
private int mAvailable;
/**
* The constructor of this accessory object.
*
* @param id The database ID of this accessory object.
* @param name The name of this accessory object.
* @param game The name of the game where this accessory object is available.
* @param available The availability status of this accessory object.
*/
public Accessory(final int id, final String name, final String game, final int available) {
Log.d(TAG, "Accessory: New Accessory created with _id = [" + id + "], name = ["
+ name + "], game = [" + game + "], available = [" + available + "]");
mId = id;
mName = name;
mGame = game;
mAvailable = available;
}
/**
* Returns the database ID of this accessory object.
*
* @return the database ID of this accessory object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this accessory object.
*
* @param id the database ID of this accessory object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of this accessory object.
*
* @return the name of this accessory object.
*/
public String getName() {
return mName;
}
/**
* Sets the name of this accessory object.
*
* @param name the name of this accessory object.
*/
public void setName(final String name) {
mName = name;
}
/**
* Returns the name of the game where this accessory object is available.
*
* @return the name of the game where this accessory object is available.
*/
public String getGame() {
return mGame;
}
/**
* Sets the name of the game where this accessory object is available.
*
* @param game the name of the game where this accessory object is available.
*/
public void setGame(final String game) {
mGame = game;
}
/**
* Returns the availability state of this accessory object.
*
* @return the availability state of this accessory object.
*/
public int getAvailable() {
return mAvailable;
}
/**
* Sets the availability state of this accessory object.
*
* @param available the availability state of this accessory object.
*/
public void setAvailable(final int available) {
mAvailable = available;
}
}

View File

@@ -0,0 +1,154 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single character object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Character {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Character";
/**
* The database ID of this character object.
*/
private int mId;
/**
* The name of this character object.
*/
private String mName;
/**
* The name of the game where this character object is available.
*/
private String mGame;
/**
* The weight of this character object.
*/
private String mWeight;
/**
* The integer value representing the availability state of this character object.
*/
private int mAvailable;
/**
* The constructor of this character object.
*
* @param id The database ID of this character object.
* @param name The name of this character object.
* @param game The name of the game where this character object is available.
* @param weight The weight of the character object.
* @param available The availability status of this character object.
*/
public Character(final int id, final String name, final String game,
final String weight, final int available) {
Log.d(TAG, "Character: New Character created with _id = [" + id + "], name = ["
+ name + "], game = [" + game + "], weight = [" + weight
+ "], available = [" + available + "]");
mId = id;
mName = name;
mGame = game;
mWeight = weight;
mAvailable = available;
}
/**
* Returns the database ID of this character object.
*
* @return the database ID of this character object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this character object.
*
* @param id the database ID of this character object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of this character object.
*
* @return the name of this character object.
*/
public String getName() {
return mName;
}
/**
* Sets the name of this character object.
*
* @param name the name of this character object.
*/
public void setName(final String name) {
mName = name;
}
/**
* Returns the name of the game where this character object is available.
*
* @return the name of the game where this character object is available.
*/
public String getGame() {
return mGame;
}
/**
* Sets the name of the game where this character object is available.
*
* @param game the name of the game where this character object is available.
*/
public void setGame(final String game) {
mGame = game;
}
/**
* Returns the weight of this character object.
*
* @return the weight of this character object.
*/
public String getWeight() {
return mWeight;
}
/**
* Sets the weight of this character object.
*
* @param weight the weight of this character object.
*/
public void setWeight(final String weight) {
mWeight = weight;
}
/**
* Returns the availability state of this character object.
*
* @return the availability state of this character object.
*/
public int getAvailable() {
return mAvailable;
}
/**
* Sets the availability state of this character object.
*
* @param available the availability state of this character object.
*/
public void setAvailable(final int available) {
mAvailable = available;
}
}

View File

@@ -0,0 +1,102 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single game object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Game {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Game";
/**
* The database ID of this Game object.
*/
private int mId;
/**
* The name of this game object.
*/
private String mName;
/**
* The URI pointing to the games cover.
*/
private String mCoverUri;
/**
* The constructor of this game object.
*
* @param id The database ID of this game object.
* @param name The name of this game object.
* @param coverUri The name of the game where this game object is available.
*/
public Game(final int id, final String name, final String coverUri) {
Log.d(TAG, "Game: New Game created with _id = [" + id + "], name = ["
+ name + "], coverUri = [" + coverUri + "]");
mId = id;
mName = name;
mCoverUri = coverUri;
}
/**
* Returns the database ID of this game object.
*
* @return the database ID of this game object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this game object.
*
* @param id the database ID of this game object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of this game object.
*
* @return the name of this game object.
*/
public String getName() {
return mName;
}
/**
* Sets the name of this game object.
*
* @param name the name of this game object.
*/
public void setName(final String name) {
mName = name;
}
/**
* Returns the URI pointing to the games cover.
*
* @return the URI pointing to the games cover.
*/
public String getCoverUri() {
return mCoverUri;
}
/**
* Sets the URI pointing to the games cover.
*
* @param coverUri the URI pointing to the games cover.
*/
public void setCoverUri(final String coverUri) {
mCoverUri = coverUri;
}
}

View File

@@ -0,0 +1,259 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single kart object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Kart {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Kart";
/**
* The database ID of this Kart object.
*/
private int mId;
/**
* The name of this kart object.
*/
private String mName;
/**
* The name of the game where this kart object is available.
*/
private String mGame;
/**
* The weight of this kart object.
*/
private String mWeight;
/**
* The integer value representing the availability state of wheels for this kart object.
*/
private int mWheels;
/**
* The integer value representing the availability state of accessory for this kart object.
*/
private int mAccessory;
/**
* The Dedicated driver, which is the only one who is allowed to drive this kart when it is not
* free for all yet.
*/
private String mDedicatedDriver;
/**
* The integer value representing the availability of this kart object for all characters.
*/
private int mFreeForAll;
/**
* The integer value representing the availability state of this kart object.
*/
private int mAvailable;
/**
* The constructor of this kart object.
*
* @param id The database ID of this kart object.
* @param name The name of this kart object.
* @param game The name of the game where this kart object is available.
* @param weight The weight of this kart object.
* @param wheels The availability state of wheels for this kart object.
* @param accessory The availability state of accessory for this kart object.
* @param dedicatedDriver The name of the dedicated driver for this kart object.
* @param freeForAll The availability state of this kart object for other characters.
* @param available The availability status of this kart object.
*/
public Kart(final int id, final String name, final String game, final String weight,
final int wheels, final int accessory, final String dedicatedDriver,
final int freeForAll, final int available) {
Log.d(TAG, "Kart: New Kart created with _id = [" + id + "], name = ["
+ name + "], game = [" + game + "], weight = [" + weight
+ "], wheels available = [" + wheels + "], accessory available = [" + accessory
+ "], dedicated driver = [" + dedicatedDriver + "], free for all = ["
+ freeForAll + "], available = [" + available + "]");
mId = id;
mName = name;
mGame = game;
mWeight = weight;
mWheels = wheels;
mAccessory = accessory;
mDedicatedDriver = dedicatedDriver;
mFreeForAll = freeForAll;
mAvailable = available;
}
/**
* Returns the database ID of this kart object.
*
* @return the database ID of this kart object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this kart object.
*
* @param id the database ID of this kart object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of this kart object.
*
* @return the name of this kart object.
*/
public String getName() {
return mName;
}
/**
* Sets the name of this kart object.
*
* @param name the name of this kart object.
*/
public void setName(final String name) {
mName = name;
}
/**
* Returns the name of the game where this kart object is available.
*
* @return the name of the game where this kart object is available.
*/
public String getGame() {
return mGame;
}
/**
* Sets the name of the game where this kart object is available.
*
* @param game the name of the game where this kart object is available.
*/
public void setGame(final String game) {
mGame = game;
}
/**
* Returns the weight of this kart object.
*
* @return the weight of this kart object.
*/
public String getWeight() {
return mWeight;
}
/**
* Sets the weight of this kart object.
*
* @param weight the weight of this kart object.
*/
public void setWeight(final String weight) {
mWeight = weight;
}
/**
* Returns the availability state of wheels for this kart object.
*
* @return the availability state of wheels for this kart object.
*/
public int getWheels() {
return mWheels;
}
/**
* Sets the availability state of wheels for this kart object.
*
* @param wheels the availability state of wheels for this kart object.
*/
public void setWheels(int wheels) {
mWheels = wheels;
}
/**
* Returns the availability state of accessory for this kart object.
*
* @return the availability state of accessory for this kart object.
*/
public int getAccessory() {
return mAccessory;
}
/**
* Sets the availability state of accessory for this kart object.
*
* @param accessory the availability state of accessory for this kart object.
*/
public void setAccessory(int accessory) {
mAccessory = accessory;
}
/**
* Returns the dedicated driver for this kart.
*
* @return the dedicated driver for this kart.
*/
public String getDedicatedDriver() {
return mDedicatedDriver;
}
/**
* Sets the dedicated driver for this kart.
*
* @param dedicatedDriver the dedicated driver for this kart.
*/
public void setDedicatedDriver(String dedicatedDriver) {
mDedicatedDriver = dedicatedDriver;
}
/**
* Returns the availability state of this kart for other characters than the dedicated driver.
*
* @return the availability state of this kart for other characters than the dedicated driver.
*/
public int getFreeForAll() {
return mFreeForAll;
}
/**
* Sets the availability state of this kart for other characters than the dedicated driver.
*
* @param freeForAll the availability state of this kart for other characters than the
* dedicated driver.
*/
public void setFreeForAll(int freeForAll) {
mFreeForAll = freeForAll;
}
/**
* Returns the availability state of this kart object.
*
* @return the availability state of this kart object.
*/
public int getAvailable() {
return mAvailable;
}
/**
* Sets the availability state of this kart object.
*
* @param available the availability state of this kart object.
*/
public void setAvailable(final int available) {
mAvailable = available;
}
}

View File

@@ -0,0 +1,258 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single ruleset object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Ruleset {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Ruleset";
/**
* The database ID of this Ruleset object.
*/
private int mId;
/**
* The name of the game where this ruleset object is available.
*/
private String mGame;
/**
* The integer value representing the availability state of a 50 ccm class.
*/
private int m50CcmAvailable;
/**
* The integer value representing the availability state of a 100 ccm class.
*/
private int m100CcmAvailable;
/**
* The integer value representing the availability state of a 150 ccm class.
*/
private int m150CcmAvailable;
/**
* The integer value representing the availability state of a 200 ccm class.
*/
private int m200CcmAvailable;
/**
* The integer value representing the availability state of a mirror class.
*/
private int mMirrorClassAvailable;
/**
* The integer value representing whether karts are available for all characters by default.
*/
private int mKartsFreeForAll;
/**
* The integer value representing the availability state of a bikes.
*/
private int mBikesAvailable;
/**
* The constructor of this ruleset object.
*
* @param id The database ID of this ruleset object.
* @param game The name of the game where this ruleset object is available.
* @param mirrorClassAvailable The availability state of a mirror class.
* @param ccm50Available The availability state of a 50 ccm class.
* @param ccm100Available The availability state of a 100 ccm class.
* @param ccm150Available The availability state of a 150 ccm class.
* @param ccm200Available The availability state of a 200 ccm class.
* @param kartsFreeForAll The availability state of a karts for all characters by default.
* @param bikesAvailable The availability state of a bikes.
*/
public Ruleset(final int id, final String game, final int mirrorClassAvailable,
final int ccm50Available, final int ccm100Available, final int ccm150Available,
final int ccm200Available, final int kartsFreeForAll, final int bikesAvailable) {
Log.d(TAG, "Ruleset: New Ruleset created with _id = [" + id + "], game = [" + game
+ "], mirror available = [" + mirrorClassAvailable + "], 50 ccm available = ["
+ ccm50Available + "], 100 ccm available = [" + ccm100Available
+ "], 150 ccm available = [" + ccm150Available + "], 200 ccm available = ["
+ ccm200Available + "], karts free for all = [" + kartsFreeForAll
+ "], bikes available = [" + bikesAvailable + "]");
mId = id;
mGame = game;
mMirrorClassAvailable = mirrorClassAvailable;
m50CcmAvailable = ccm50Available;
m100CcmAvailable = ccm100Available;
m150CcmAvailable = ccm150Available;
m200CcmAvailable = ccm200Available;
mKartsFreeForAll = kartsFreeForAll;
mBikesAvailable = bikesAvailable;
}
/**
* Returns the database ID of this ruleset object.
*
* @return the database ID of this ruleset object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this ruleset object.
*
* @param id the database ID of this ruleset object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of the game where this ruleset object is available.
*
* @return the name of the game where this ruleset object is available.
*/
public String getGame() {
return mGame;
}
/**
* Sets the name of the game where this ruleset object is available.
*
* @param game the name of the game where this ruleset object is available.
*/
public void setGame(final String game) {
mGame = game;
}
/**
* Returns the availability of a 50 ccm class.
*
* @return the availability of a 50 ccm class.
*/
public int get50CcmAvailable() {
return m50CcmAvailable;
}
/**
* Sets the availability of a 50 ccm class.
*
* @param ccm50Available the availability of a 50 ccm class.
*/
public void set50CcmAvailable(int ccm50Available) {
m50CcmAvailable = ccm50Available;
}
/**
* Returns the availability of a 100 ccm class.
*
* @return the availability of a 100 ccm class.
*/
public int get100CcmAvailable() {
return m100CcmAvailable;
}
/**
* Sets the availability of a 100 ccm class.
*
* @param ccm100Available the availability of a 100 ccm class.
*/
public void set100CcmAvailable(int ccm100Available) {
m100CcmAvailable = ccm100Available;
}
/**
* Returns the availability of a 150 ccm class.
*
* @return the availability of a 150 ccm class.
*/
public int get150CcmAvailable() {
return m150CcmAvailable;
}
/**
* Sets the availability of a 150 ccm class.
*
* @param ccm150Available the availability of a 150 ccm class.
*/
public void set150CcmAvailable(int ccm150Available) {
m150CcmAvailable = ccm150Available;
}
/**
* Returns the availability of a 200 ccm class.
*
* @return the availability of a 200 ccm class.
*/
public int get200CcmAvailable() {
return m200CcmAvailable;
}
/**
* Sets the availability of a 200 ccm class.
*
* @param ccm200Available the availability of a 200 ccm class.
*/
public void set200CcmAvailable(int ccm200Available) {
m200CcmAvailable = ccm200Available;
}
/**
* Returns the availability of a mirror class.
*
* @return the availability of a mirror class.
*/
public int getMirrorClassAvailable() {
return mMirrorClassAvailable;
}
/**
* Sets the availability of a mirror class.
*
* @param mirrorClassAvailable the availability of a mirror class.
*/
public void setMirrorClassAvailable(int mirrorClassAvailable) {
mMirrorClassAvailable = mirrorClassAvailable;
}
/**
* Returns the availability of all karts for all characters.
*
* @return the availability of all karts for all characters.
*/
public int getKartsFreeForAll() {
return mKartsFreeForAll;
}
/**
* Sets the availability of all karts for all characters.
*
* @param kartsFreeForAll the availability of all karts for all characters.
*/
public void setKartsFreeForAll(int kartsFreeForAll) {
mKartsFreeForAll = kartsFreeForAll;
}
/**
* Returns the availability of bikes.
*
* @return the availability of bikes.
*/
public int getBikesAvailable() {
return mBikesAvailable;
}
/**
* Sets the availability of bikes.
*
* @param bikesAvailable the availability of bikes.
*/
public void setBikesAvailable(int bikesAvailable) {
mBikesAvailable = bikesAvailable;
}
}

View File

@@ -0,0 +1,178 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single track object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Track {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Track";
/**
* The database ID of this Track object.
*/
private int mId;
/**
* The name of this track object.
*/
private String mName;
/**
* The name of the game where this track object is available.
*/
private String mGame;
/**
* The name of the package where this track is from (e.g. Cup)
*/
private String mPackage;
/**
* The Number of the track inside the package.
*/
private int mNumber;
/**
* The integer value representing the availability state of this track object.
*/
private int mAvailable;
/**
* The constructor of this track object.
*
* @param id The database ID of this track object.
* @param name The name of this track object.
* @param game The name of the game where this track object is available.
* @param packageName The package where this track is contained.
* @param number The number of this track object inside the package.
* @param available The availability status of this track object.
*/
public Track(final int id, final String name, final String game, final String packageName,
final int number, final int available) {
Log.d(TAG, "Track: New Track created with _id = [" + id + "], name = ["
+ name + "], game = [" + game + "], package = [" + packageName + "], number = ["
+ number + "], available = [" + available + "]");
mId = id;
mName = name;
mGame = game;
mPackage = packageName;
mNumber = number;
mAvailable = available;
}
/**
* Returns the database ID of this track object.
*
* @return the database ID of this track object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this track object.
*
* @param id the database ID of this track object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of this track object.
*
* @return the name of this track object.
*/
public String getName() {
return mName;
}
/**
* Sets the name of this track object.
*
* @param name the name of this track object.
*/
public void setName(final String name) {
mName = name;
}
/**
* Returns the name of the game where this track object is available.
*
* @return the name of the game where this track object is available.
*/
public String getGame() {
return mGame;
}
/**
* Sets the name of the game where this track object is available.
*
* @param game the name of the game where this track object is available.
*/
public void setGame(final String game) {
mGame = game;
}
/**
* Returns the package name where this track is part of.
*
* @return the package name where this track is part of.
*/
public String getPackage() {
return mPackage;
}
/**
* Sets the package name where this track is part of.
* @param packageName the package name where this track is part of.
*/
public void setPackage(String packageName) {
mPackage = packageName;
}
/**
* Returns the number of the track within the package.
*
* @return the number of the track within the package.
*/
public int getmNumber() {
return mNumber;
}
/**
* Sets the number of the track within the package.
*
* @param number the number of the track within the package.
*/
public void setmNumber(int number) {
mNumber = number;
}
/**
* Returns the availability state of this track object.
*
* @return the availability state of this track object.
*/
public int getAvailable() {
return mAvailable;
}
/**
* Sets the availability state of this track object.
*
* @param available the availability state of this track object.
*/
public void setAvailable(final int available) {
mAvailable = available;
}
}

View File

@@ -0,0 +1,127 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector.database_models;
import android.util.Log;
/**
* The POJO Model for a single wheels object.
*
* @author aldo7224
* @version 0.1
* @since 07.08.2017
*/
public class Wheels {
/**
* Tag for debugging purpose.
*/
private static final String TAG = "Wheels";
/**
* The database ID of this Wheels object.
*/
private int mId;
/**
* The name of this wheels object.
*/
private String mName;
/**
* The name of the game where this wheels object is available.
*/
private String mGame;
/**
* The integer value representing the availability state of this wheels object.
*/
private int mAvailable;
/**
* The constructor of this wheels object.
*
* @param id The database ID of this wheels object.
* @param name The name of this wheels object.
* @param game The name of the game where this wheels object is available.
* @param available The availability status of this wheels object.
*/
public Wheels(final int id, final String name, final String game, final int available) {
Log.d(TAG, "Wheels: New Wheels created with _id = [" + id + "], name = ["
+ name + "], game = [" + game + "], available = [" + available + "]");
mId = id;
mName = name;
mGame = game;
mAvailable = available;
}
/**
* Returns the database ID of this wheels object.
*
* @return the database ID of this wheels object.
*/
public int getId() {
return mId;
}
/**
* Sets the database ID of this wheels object.
*
* @param id the database ID of this wheels object.
*/
public void setId(final int id) {
mId = id;
}
/**
* Returns the name of this wheels object.
*
* @return the name of this wheels object.
*/
public String getName() {
return mName;
}
/**
* Sets the name of this wheels object.
*
* @param name the name of this wheels object.
*/
public void setName(final String name) {
mName = name;
}
/**
* Returns the name of the game where this wheels object is available.
*
* @return the name of the game where this wheels object is available.
*/
public String getGame() {
return mGame;
}
/**
* Sets the name of the game where this wheels object is available.
*
* @param game the name of the game where this wheels object is available.
*/
public void setGame(final String game) {
mGame = game;
}
/**
* Returns the availability state of this wheels object.
*
* @return the availability state of this wheels object.
*/
public int getAvailable() {
return mAvailable;
}
/**
* Sets the availability state of this wheels object.
*
* @param available the availability state of this wheels object.
*/
public void setAvailable(final int available) {
mAvailable = available;
}
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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="com.de.aldo_apps.aldo.mariokartcircuitselector.GameSelection">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>

View File

@@ -0,0 +1,3 @@
<resources>
<string name="app_name">MarioKartCircuitSelector</string>
</resources>

View File

@@ -0,0 +1,11 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>

View File

@@ -0,0 +1,17 @@
package com.de.aldo_apps.aldo.mariokartcircuitselector;
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() throws Exception {
assertEquals(4, 2 + 2);
}
}

23
build.gradle Normal file
View File

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

17
gradle.properties Normal file
View File

@@ -0,0 +1,17 @@
# 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=-Xmx1536m
# 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

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#Mon Aug 07 15:05:28 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

160
gradlew vendored Executable file
View File

@@ -0,0 +1,160 @@
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# 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
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac
# 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
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" ] ; 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
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

90
gradlew.bat vendored Normal file
View File

@@ -0,0 +1,90 @@
@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
@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=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@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 Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_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=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
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

1
settings.gradle Normal file
View File

@@ -0,0 +1 @@
include ':app'