Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c179645f | ||
|
|
566fc69def | ||
|
|
2d4f253e9b | ||
|
|
50bd394151 | ||
|
|
b41200de7d | ||
|
|
6af7a6fde4 | ||
|
|
8d3c6997e7 | ||
|
|
c72c2884f4 | ||
|
|
cd4820e14f | ||
|
|
5b7d275b96 | ||
|
|
b5b33e356d | ||
|
|
d21d5e58c3 | ||
|
|
3651a24c7b | ||
|
|
63db69e04f | ||
|
|
d9efb025d9 | ||
|
|
f562f66101 | ||
|
|
f9105d3b78 | ||
|
|
d6f530fbb2 | ||
|
|
586a431ab3 | ||
|
|
7c9fae256f | ||
|
|
3916fb3aa8 | ||
|
|
35e7d14e3b | ||
|
|
dafbd43463 | ||
|
|
18621d5c36 | ||
|
|
2322ddc289 | ||
|
|
d137e91c98 | ||
|
|
f966c8e776 |
2
.idea/.name
generated
2
.idea/.name
generated
@@ -1 +1 @@
|
||||
MiceandMysticsCampaignTracker
|
||||
MiceAndMysticsTracker
|
||||
13
.idea/codeStyleSettings.xml
generated
13
.idea/codeStyleSettings.xml
generated
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectCodeStyleSettingsManager">
|
||||
<option name="PER_PROJECT_SETTINGS">
|
||||
<value>
|
||||
<XML>
|
||||
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
|
||||
</XML>
|
||||
</value>
|
||||
</option>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default (1)" />
|
||||
</component>
|
||||
</project>
|
||||
10
.idea/gradle.xml
generated
10
.idea/gradle.xml
generated
@@ -3,15 +3,21 @@
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="distributionType" value="LOCAL" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleJvm" value="1.7" />
|
||||
<option name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.14.1" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/MiceAndMysticsTracker" />
|
||||
</set>
|
||||
</option>
|
||||
<option name="myModules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/MiceAndMysticsTracker" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
27
.idea/misc.xml
generated
27
.idea/misc.xml
generated
@@ -3,8 +3,29 @@
|
||||
<component name="EntryPointsManager">
|
||||
<entry_points version="2.0" />
|
||||
</component>
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
<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" />
|
||||
@@ -16,7 +37,7 @@
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" 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">
|
||||
|
||||
4
.idea/modules.xml
generated
4
.idea/modules.xml
generated
@@ -2,8 +2,8 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/MiceAndMysticsTracker/MiceAndMysticsTracker.iml" filepath="$PROJECT_DIR$/MiceAndMysticsTracker/MiceAndMysticsTracker.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/MiceandMysticsCampaignTracker.iml" filepath="$PROJECT_DIR$/MiceandMysticsCampaignTracker.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/MiceAndMysticsTracker.iml" filepath="$PROJECT_DIR$/MiceAndMysticsTracker.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/MiceAndMysticsTracker/MiceAndMysticsTracker-MiceAndMysticsTracker.iml" filepath="$PROJECT_DIR$/MiceAndMysticsTracker/MiceAndMysticsTracker-MiceAndMysticsTracker.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
674
LICENSE
Normal file
674
LICENSE
Normal file
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
@@ -1,27 +1,20 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.1.1'
|
||||
}
|
||||
}
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'realm-android'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 21
|
||||
buildToolsVersion "20.0.0"
|
||||
compileSdkVersion 22
|
||||
buildToolsVersion "21.1.2"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.eyecreate.miceandmystics.miceandmystics"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 21
|
||||
versionCode 2
|
||||
versionName "1.0.1"
|
||||
versionCode 8
|
||||
versionName "1.0.6"
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
@@ -39,10 +32,9 @@ android {
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
compile 'com.android.support:appcompat-v7:22.0.0'
|
||||
compile 'io.realm:realm-android:0.80.1'
|
||||
compile 'uk.co.chrisjenx:calligraphy:2.0.2'
|
||||
compile 'com.android.support:recyclerview-v7:21.0.+'
|
||||
compile 'com.android.support:cardview-v7:21.0.+'
|
||||
compile 'com.android.support:recyclerview-v7:22.0.+'
|
||||
compile 'com.android.support:cardview-v7:22.0.+'
|
||||
compile 'org.quanqi:android-holo-graph:0.1.0'
|
||||
compile 'com.github.fengdai:alertdialogpro-theme-material:0.2.2'
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public class CampaignActivity extends RecyclerViewActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
getSupportActionBar().setDisplayShowHomeEnabled(true);
|
||||
getSupportActionBar().setIcon(R.mipmap.ic_launcher);
|
||||
setTitle("Campaigns");
|
||||
setTitle(getString(R.string.campaign_activity));
|
||||
setLayoutManager(new LinearLayoutManager(this));
|
||||
setAdapter(new CampaignAdapter());
|
||||
}
|
||||
@@ -57,15 +57,15 @@ public class CampaignActivity extends RecyclerViewActivity {
|
||||
typeSpinner.setAdapter(new ArrayAdapter<CampaignType>(this, R.layout.simple_spinner_item, CampaignType.values()));
|
||||
typeSpinner.setSelection(0);
|
||||
AlertDialog addDialog = new AlertDialogPro.Builder(this,R.style.dialogTheme)
|
||||
.setMessage("Please give your new campaign a unique name:")
|
||||
.setMessage(getString(R.string.campaign_name_request))
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(getString(R.string.dialog_confirm), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
if(((EditText) dialogView.findViewById(R.id.campaign_name)).getText().length()>0) {
|
||||
((CampaignAdapter) getAdapter()).addItem(((EditText) dialogView.findViewById(R.id.campaign_name)).getText().toString(), CampaignType.valueOfDisplayName(typeSpinner.getSelectedItem().toString()));
|
||||
if (((EditText) dialogView.findViewById(R.id.campaign_name)).getText().length() > 0) {
|
||||
((CampaignAdapter) getAdapter()).addItem(((EditText) dialogView.findViewById(R.id.campaign_name)).getText().toString(), CampaignType.valueOf(((CampaignType) typeSpinner.getSelectedItem()).name()));
|
||||
} else {
|
||||
Toast.makeText(CampaignActivity.this,"Can not have blank name!",Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(CampaignActivity.this, R.string.campaign_name_blank, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -35,7 +35,7 @@ public class CampaignDetailsActivity extends RecyclerViewActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setTitle("Game Details");
|
||||
setTitle(getString(R.string.campaign_details_Activity));
|
||||
if(getIntent().hasExtra("campaignName")) {
|
||||
campaign = MiceAndMysticsApplication.getRealmInstance().where(Campaign.class).equalTo("campaignName",getIntent().getStringExtra("campaignName")).findFirst();
|
||||
} else if(savedInstanceState.containsKey("campaignName")) {
|
||||
@@ -89,9 +89,9 @@ public class CampaignDetailsActivity extends RecyclerViewActivity {
|
||||
final View dialogView = inflator.inflate(R.layout.dialog_new_player, null, false);
|
||||
final EditText playerEdit = ((EditText)dialogView.findViewById(R.id.player_name));
|
||||
AlertDialog addDialog = new AlertDialogPro.Builder(ctx,R.style.dialogTheme)
|
||||
.setMessage("Please name the new player:")
|
||||
.setMessage(ctx.getString(R.string.player_name_request))
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("Create", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(ctx.getString(R.string.dialog_create), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
RealmResults<Player> matchingPlayers = MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName", playerEdit.getText().toString()).findAll();
|
||||
@@ -102,9 +102,9 @@ public class CampaignDetailsActivity extends RecyclerViewActivity {
|
||||
MiceAndMysticsApplication.getRealmInstance().copyToRealmOrUpdate(player);
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
} else if (playerEdit.getText().length() == 0) {
|
||||
Toast.makeText(ctx, "Can not have a blank name!", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(ctx, R.string.player_name_blank, Toast.LENGTH_LONG).show();
|
||||
} else if (matchingPlayers.size() > 0) {
|
||||
Toast.makeText(ctx, "Can not have same name as another player!", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(ctx, R.string.player_name_dup, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -125,22 +125,22 @@ public class CampaignDetailsActivity extends RecyclerViewActivity {
|
||||
achievementSpinner.setAdapter(new ArrayAdapter<com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement>(this, R.layout.simple_spinner_item, com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement.values()));
|
||||
achievementSpinner.setSelection(0);
|
||||
AlertDialog addDialog = new AlertDialogPro.Builder(this,R.style.dialogTheme)
|
||||
.setMessage("Please select the achievement to add to party:")
|
||||
.setMessage(getString(R.string.achievement_add_request))
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("Add", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(getString(R.string.dialog_add), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
RealmList<Achievement> currentPartyAchievements = MiceAndMysticsApplication.getRealmInstance().where(Campaign.class).equalTo("campaignName",campaign.getCampaignName()).findFirst().getPartyStoryAchievements();
|
||||
RealmList<Achievement> currentPartyAchievements = MiceAndMysticsApplication.getRealmInstance().where(Campaign.class).equalTo("campaignName", campaign.getCampaignName()).findFirst().getPartyStoryAchievements();
|
||||
boolean hasAlready = false;
|
||||
for (Achievement achievement:currentPartyAchievements) {
|
||||
if(achievementSpinner.getSelectedItem().toString().equals(achievement.getAchievementName())){
|
||||
for (Achievement achievement : currentPartyAchievements) {
|
||||
if (((com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement) achievementSpinner.getSelectedItem()).name().equals(achievement.getAchievementName())) {
|
||||
hasAlready = true;
|
||||
}
|
||||
}
|
||||
if (!hasAlready) {
|
||||
((CampaignDetailsAdapter) getAdapter()).addPartyAchievement((com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement) achievementSpinner.getSelectedItem());
|
||||
} else {
|
||||
Toast.makeText(CampaignDetailsActivity.this, "Can not have more than one of same achievement.", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(CampaignDetailsActivity.this, R.string.achievement_dup, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -159,15 +159,15 @@ public class CampaignDetailsActivity extends RecyclerViewActivity {
|
||||
playerSpinner.setAdapter(new ArrayAdapter<String>(this, R.layout.simple_spinner_item, Player.convertPlayerListToStringArray(players.subList(0,players.size()))));
|
||||
playerSpinner.setSelection(0);
|
||||
AlertDialog addDialog = new AlertDialogPro.Builder(this,R.style.dialogTheme)
|
||||
.setMessage("Please select your character and controlling player:")
|
||||
.setMessage(getString(R.string.character_add_request))
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("Create", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(getString(R.string.dialog_create), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
if(playerSpinner.getSelectedItem() != null) {
|
||||
((CampaignDetailsAdapter) getAdapter()).addCharacter(CharacterNames.valueOf(charSpinner.getSelectedItem().toString()), MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName", playerSpinner.getSelectedItem().toString()).findFirst());
|
||||
((CampaignDetailsAdapter) getAdapter()).addCharacter(((CharacterNames)charSpinner.getSelectedItem()), MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName", playerSpinner.getSelectedItem().toString()).findFirst());
|
||||
} else {
|
||||
Toast.makeText(CampaignDetailsActivity.this,"No player selected. Maybe try making one first.",Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(CampaignDetailsActivity.this, R.string.character_player_blank,Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -25,7 +25,7 @@ public class CharacterDetailsActivity extends RecyclerViewActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setTitle("Character Details");
|
||||
setTitle(getString(R.string.character_activity));
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
if(getIntent().hasExtra("characterId")) {
|
||||
currentCharacter = MiceAndMysticsApplication.getRealmInstance().where(Character.class).equalTo("uuid",getIntent().getStringExtra("characterId")).findFirst();
|
||||
@@ -71,16 +71,16 @@ public class CharacterDetailsActivity extends RecyclerViewActivity {
|
||||
abilitySpinner.setAdapter(new ArrayAdapter<Abilities>(this, R.layout.simple_spinner_item, Abilities.getMatchingCharacterAbilities(CharacterNames.valueOf(currentCharacter.getCharacterName()).characterTypes())));
|
||||
abilitySpinner.setSelection(0);
|
||||
AlertDialog addDialog = new AlertDialogPro.Builder(this,R.style.dialogTheme)
|
||||
.setMessage("Please select the ability to be added:")
|
||||
.setMessage(getString(R.string.character_ability_request))
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("Add", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(getString(R.string.dialog_add), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
RealmResults<Character> duplicates = MiceAndMysticsApplication.getRealmInstance().where(Character.class).equalTo("abilities.abilityName",abilitySpinner.getSelectedItem().toString()).equalTo("uuid",currentCharacter.getUuid()).findAll();
|
||||
if(duplicates.size()==0) {
|
||||
RealmResults<Character> duplicates = MiceAndMysticsApplication.getRealmInstance().where(Character.class).equalTo("abilities.abilityName", ((Abilities) abilitySpinner.getSelectedItem()).name()).equalTo("uuid", currentCharacter.getUuid()).findAll();
|
||||
if (duplicates.size() == 0) {
|
||||
((CharacterDetailsAdapter) getAdapter()).addAbility((Abilities) abilitySpinner.getSelectedItem());
|
||||
} else {
|
||||
Toast.makeText(CharacterDetailsActivity.this,"That ability is already on this character.",Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(CharacterDetailsActivity.this, R.string.character_ability_exists, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -93,15 +93,15 @@ public class CharacterDetailsActivity extends RecyclerViewActivity {
|
||||
final View dialogView = inflator.inflate(R.layout.dialog_new_item, null, false);
|
||||
final EditText itemEdit = ((EditText)dialogView.findViewById(R.id.item_name));
|
||||
AlertDialog addDialog = new AlertDialogPro.Builder(this,R.style.dialogTheme)
|
||||
.setMessage("Please name the item to mark as held:")
|
||||
.setMessage(getString(R.string.character_item_request))
|
||||
.setView(dialogView)
|
||||
.setPositiveButton("Add", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(getString(R.string.dialog_add), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
if (itemEdit.getText().length() > 0) {
|
||||
((CharacterDetailsAdapter) getAdapter()).addItem(itemEdit.getText().toString());
|
||||
} else if (itemEdit.getText().length() == 0) {
|
||||
Toast.makeText(CharacterDetailsActivity.this, "Can not have a blank item name!", Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(CharacterDetailsActivity.this, R.string.character_item_blank, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,24 +1,82 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.*;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Character;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.Abilities;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.CampaignType;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.CharacterNames;
|
||||
|
||||
import io.realm.Realm;
|
||||
import io.realm.RealmConfiguration;
|
||||
import io.realm.RealmResults;
|
||||
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
|
||||
|
||||
public class MiceAndMysticsApplication extends Application {
|
||||
|
||||
private static MiceAndMysticsApplication singletonApplication;
|
||||
private static Realm singletonRealm;
|
||||
private RealmConfiguration realmConfig;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
singletonApplication = this;
|
||||
singletonRealm = Realm.getInstance(this);
|
||||
realmConfig = new RealmConfiguration.Builder(this).schemaVersion(2).migration(new RealmMigrator()).build();
|
||||
singletonRealm = Realm.getInstance(realmConfig);
|
||||
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
|
||||
.setDefaultFontPath("ArchitectsDaughter.ttf")
|
||||
.setFontAttrId(R.attr.fontPath)
|
||||
.build()
|
||||
.setDefaultFontPath("ArchitectsDaughter.ttf")
|
||||
.setFontAttrId(R.attr.fontPath)
|
||||
.build()
|
||||
);
|
||||
//checkForPreLocalization();
|
||||
}
|
||||
|
||||
private void checkForPreLocalization() {
|
||||
//Check if there are DB items and migration check flag isn't set yet.
|
||||
//If so, take all abilities, achievements, campaign names, and character names and make them enum names.
|
||||
//Optionally, be sad I didn't think of this before now.
|
||||
if(!getSharedPreferences("dbcheck", MODE_PRIVATE).contains("localizationchecked") && getRealmInstance().where(Campaign.class).findAll().size()>0) {
|
||||
getRealmInstance().beginTransaction();
|
||||
RealmResults<Ability> abilities = getRealmInstance().where(Ability.class).findAll();
|
||||
for(int i = 0; i<abilities.size();i++) {
|
||||
Ability ability = abilities.get(i);
|
||||
for(Abilities enums:Abilities.values()) {
|
||||
if(enums.displayName().equals(ability.getAbilityName())) {
|
||||
ability.setAbilityName(enums.name());
|
||||
}
|
||||
}
|
||||
}
|
||||
RealmResults<Achievement> achievements = getRealmInstance().where(Achievement.class).findAll();
|
||||
for(int i = 0; i<achievements.size();i++) {
|
||||
Achievement achievement = achievements.get(i);
|
||||
for(com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement enums: com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement.values()) {
|
||||
if(enums.displayName().equals(achievement.getAchievementName())) {
|
||||
achievement.setAchievementName(enums.name());
|
||||
}
|
||||
}
|
||||
}
|
||||
RealmResults<Campaign> campaigns = getRealmInstance().where(Campaign.class).findAll();
|
||||
for(int i = 0;i<campaigns.size();i++) {
|
||||
Campaign campaign = campaigns.get(i);
|
||||
if(campaign.getCampaignType().equals(CampaignType.Sorrow_and_Remembrance.displayName())) {
|
||||
campaign.setCampaignType(CampaignType.Sorrow_and_Remembrance.name());
|
||||
}
|
||||
}
|
||||
RealmResults<Character> characters = getRealmInstance().where(Character.class).findAll();
|
||||
for(int i = 0;i<characters.size();i++) {
|
||||
Character character = characters.get(i);
|
||||
for(CharacterNames enums:CharacterNames.values()) {
|
||||
if(enums.displayName().equals(character.getCharacterName())) {
|
||||
character.setCharacterName(enums.name());
|
||||
}
|
||||
}
|
||||
}
|
||||
getRealmInstance().commitTransaction();
|
||||
}
|
||||
getSharedPreferences("dbcheck",MODE_PRIVATE).edit().putBoolean("localizationchecked",true).apply();
|
||||
}
|
||||
|
||||
public static MiceAndMysticsApplication getInstance() {
|
||||
|
||||
@@ -10,7 +10,7 @@ public class PlayerManagerActivity extends RecyclerViewActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setTitle("Manage Players");
|
||||
setTitle(getString(R.string.players_activity));
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
setLayoutManager(new LinearLayoutManager(this));
|
||||
setAdapter(new PlayerManagerAdapter());
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Campaign;
|
||||
|
||||
import io.realm.DynamicRealm;
|
||||
import io.realm.RealmMigration;
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.RealmResults;
|
||||
|
||||
public class RealmMigrator implements RealmMigration {
|
||||
@Override
|
||||
public void migrate(DynamicRealm dynamicRealm, long oldVersion, long newVersion) {
|
||||
if(oldVersion == 0) {
|
||||
//Nothing
|
||||
oldVersion++;
|
||||
}
|
||||
if(oldVersion == 1) {
|
||||
dynamicRealm.getSchema().get("Campaign")
|
||||
.addField("campaignChapter",int.class);
|
||||
oldVersion++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,11 +4,13 @@ import android.content.Context;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.*;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Character;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.CampaignType;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.viewholders.CampaignViewHolder;
|
||||
|
||||
import io.realm.RealmResults;
|
||||
|
||||
public class CampaignAdapter extends RecyclerView.Adapter<CampaignViewHolder> {
|
||||
@@ -39,7 +41,7 @@ public class CampaignAdapter extends RecyclerView.Adapter<CampaignViewHolder> {
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
com.eyecreate.miceandmystics.miceandmystics.model.Campaign campaign = new com.eyecreate.miceandmystics.miceandmystics.model.Campaign();
|
||||
campaign.setCampaignName(campaignName);
|
||||
campaign.setCampaignType(type.displayName());
|
||||
campaign.setCampaignType(type.name());
|
||||
MiceAndMysticsApplication.getRealmInstance().copyToRealm(campaign);
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
fullRefresh();
|
||||
@@ -50,14 +52,13 @@ public class CampaignAdapter extends RecyclerView.Adapter<CampaignViewHolder> {
|
||||
.where(com.eyecreate.miceandmystics.miceandmystics.model.Campaign.class)
|
||||
.equalTo("campaignName",campaignName)
|
||||
.findFirst();
|
||||
for(com.eyecreate.miceandmystics.miceandmystics.model.Character character:campaign.getCurrentCharacters()) {
|
||||
CampaignDetailsAdapter.removeCharacterFromDB(character);
|
||||
for(Character character:campaign.getCurrentCharacters()) {
|
||||
CampaignDetailsAdapter.removeItemsAndAbilities(character);
|
||||
}
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
for(Achievement achievement:campaign.getPartyStoryAchievements()) {
|
||||
achievement.removeFromRealm();
|
||||
}
|
||||
campaign.removeFromRealm();
|
||||
campaign.getCurrentCharacters().deleteAllFromRealm();
|
||||
campaign.getPartyStoryAchievements().deleteAllFromRealm();
|
||||
campaign.deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
fullRefresh();
|
||||
}
|
||||
|
||||
@@ -5,12 +5,14 @@ import android.support.v7.widget.RecyclerView;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.*;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Achievement;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Campaign;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Character;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.*;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.CharacterNames;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Player;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.viewholders.CampaignDetailsViewHolder;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.viewholders.CampaignHeaderViewHolder;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.viewholders.PartyAchievementViewHolder;
|
||||
@@ -76,7 +78,7 @@ public class CampaignDetailsAdapter extends RecyclerView.Adapter<RecyclerView.Vi
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
fullRefresh();
|
||||
} else {
|
||||
Toast.makeText(inflater.getContext(),"Can not have two of same character in game.",Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(inflater.getContext(), R.string.character_game_dup,Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,18 +90,14 @@ public class CampaignDetailsAdapter extends RecyclerView.Adapter<RecyclerView.Vi
|
||||
public static void removeCharacterFromDB(Character character) {
|
||||
removeItemsAndAbilities(character);
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
character.removeFromRealm();
|
||||
character.deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
}
|
||||
|
||||
private static void removeItemsAndAbilities(Character character) {
|
||||
public static void removeItemsAndAbilities(Character character) {
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
for(Ability ability:character.getAbilities()) {
|
||||
ability.removeFromRealm();
|
||||
}
|
||||
for(BackpackItem item:character.getStoredItems()) {
|
||||
item.removeFromRealm();
|
||||
}
|
||||
character.getAbilities().deleteAllFromRealm();
|
||||
character.getStoredItems().deleteAllFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
}
|
||||
|
||||
@@ -107,7 +105,7 @@ public class CampaignDetailsAdapter extends RecyclerView.Adapter<RecyclerView.Vi
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
Achievement realmAchievement = MiceAndMysticsApplication.getRealmInstance().createObject(Achievement.class);
|
||||
realmAchievement.setUuid(UUID.randomUUID().toString());
|
||||
realmAchievement.setAchievementName(achievement.displayName());
|
||||
realmAchievement.setAchievementName(achievement.name());
|
||||
currentCampaign.getPartyStoryAchievements().add(realmAchievement);
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
fullRefresh();
|
||||
@@ -115,7 +113,7 @@ public class CampaignDetailsAdapter extends RecyclerView.Adapter<RecyclerView.Vi
|
||||
|
||||
public void removeAchievement(Achievement achievement) {
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
achievement.removeFromRealm();
|
||||
achievement.deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
fullRefresh();
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class CharacterDetailsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
Ability realmAbility = MiceAndMysticsApplication.getRealmInstance().createObject(Ability.class);
|
||||
realmAbility.setUuid(UUID.randomUUID().toString());
|
||||
realmAbility.setAbilityName(ability.displayName());
|
||||
realmAbility.setAbilityName(ability.name());
|
||||
currentCharacter.getAbilities().add(realmAbility);
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
notifyDataSetChanged();
|
||||
@@ -92,7 +92,7 @@ public class CharacterDetailsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||
public void removeItem(String itemUuid) {
|
||||
BackpackItem item = MiceAndMysticsApplication.getRealmInstance().where(BackpackItem.class).equalTo("uuid",itemUuid).findFirst();
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
item.removeFromRealm();
|
||||
item.deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
@@ -100,7 +100,7 @@ public class CharacterDetailsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||
public void removeAbility(String abilityUuid) {
|
||||
Ability ability = MiceAndMysticsApplication.getRealmInstance().where(Ability.class).equalTo("uuid",abilityUuid).findFirst();
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
ability.removeFromRealm();
|
||||
ability.deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@@ -47,21 +47,21 @@ public class PlayerManagerAdapter extends RecyclerView.Adapter<PlayerViewHolder>
|
||||
.equalTo("controllingPlayer.playerName", playerName).findAll();
|
||||
if(playerCharacters.size()>0) {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(ctx,R.style.dialogTheme)
|
||||
.setMessage("Removing player "+playerName+" must first remove all characters owned by player. Do you want to continue still?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(ctx.getString(R.string.remove_player_confirm_1)+playerName+ctx.getString(R.string.remove_player_confirm_2))
|
||||
.setNegativeButton(ctx.getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(ctx.getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
for(Iterator iter = playerCharacters.iterator();playerCharacters.iterator().hasNext();) {
|
||||
CampaignDetailsAdapter.removeCharacterFromDB((Character)iter.next());
|
||||
for (Iterator iter = playerCharacters.iterator(); playerCharacters.iterator().hasNext(); ) {
|
||||
CampaignDetailsAdapter.removeCharacterFromDB((Character) iter.next());
|
||||
}
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName",playerName).findFirst().removeFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName", playerName).findFirst().deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
@@ -70,18 +70,18 @@ public class PlayerManagerAdapter extends RecyclerView.Adapter<PlayerViewHolder>
|
||||
removeDialog.show();
|
||||
} else {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(ctx, R.style.dialogTheme)
|
||||
.setMessage("Do you want to remove player: " + playerName + "?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(ctx.getString(R.string.remove_empty_player_confirm) + playerName + "?")
|
||||
.setNegativeButton(ctx.getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(ctx.getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName",playerName).findFirst().removeFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().where(Player.class).equalTo("playerName",playerName).findFirst().deleteFromRealm();
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@@ -2,12 +2,15 @@ package com.eyecreate.miceandmystics.miceandmystics.model;
|
||||
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.annotations.PrimaryKey;
|
||||
import io.realm.annotations.Required;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class Ability extends RealmObject {
|
||||
@PrimaryKey
|
||||
@Required
|
||||
private String uuid;
|
||||
@Required
|
||||
private String abilityName;
|
||||
|
||||
public Ability() {}
|
||||
|
||||
@@ -2,12 +2,15 @@ package com.eyecreate.miceandmystics.miceandmystics.model;
|
||||
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.annotations.PrimaryKey;
|
||||
import io.realm.annotations.Required;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class Achievement extends RealmObject {
|
||||
@PrimaryKey
|
||||
@Required
|
||||
private String uuid;
|
||||
@Required
|
||||
private String achievementName;
|
||||
|
||||
public Achievement() {}
|
||||
|
||||
@@ -2,11 +2,14 @@ package com.eyecreate.miceandmystics.miceandmystics.model;
|
||||
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.annotations.PrimaryKey;
|
||||
import io.realm.annotations.Required;
|
||||
|
||||
public class BackpackItem extends RealmObject {
|
||||
//TODO:Look into seeing if it's worth hard coding these instead of manual entry.
|
||||
@PrimaryKey
|
||||
@Required
|
||||
private String uuid;
|
||||
@Required
|
||||
private String itemName;
|
||||
|
||||
public BackpackItem() {}
|
||||
|
||||
@@ -3,13 +3,17 @@ package com.eyecreate.miceandmystics.miceandmystics.model;
|
||||
import io.realm.RealmList;
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.annotations.PrimaryKey;
|
||||
import io.realm.annotations.Required;
|
||||
|
||||
public class Campaign extends RealmObject {
|
||||
@PrimaryKey
|
||||
@Required
|
||||
private String campaignName;
|
||||
@Required
|
||||
private String campaignType;
|
||||
private RealmList<Character> currentCharacters;
|
||||
private RealmList<Achievement> partyStoryAchievements;
|
||||
private int campaignChapter;
|
||||
|
||||
public RealmList<Character> getCurrentCharacters() {
|
||||
return currentCharacters;
|
||||
@@ -42,4 +46,12 @@ public class Campaign extends RealmObject {
|
||||
public void setCampaignType(String campaignType) {
|
||||
this.campaignType = campaignType;
|
||||
}
|
||||
|
||||
public int getCampaignChapter() {
|
||||
return campaignChapter;
|
||||
}
|
||||
|
||||
public void setCampaignChapter(int campaignChapter) {
|
||||
this.campaignChapter = campaignChapter;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,13 @@ package com.eyecreate.miceandmystics.miceandmystics.model;
|
||||
import io.realm.RealmList;
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.annotations.PrimaryKey;
|
||||
import io.realm.annotations.Required;
|
||||
|
||||
public class Character extends RealmObject {
|
||||
@PrimaryKey
|
||||
@Required
|
||||
private String uuid;
|
||||
@Required
|
||||
private String characterName;
|
||||
private RealmList<Ability> abilities;
|
||||
private RealmList<BackpackItem> storedItems; //Not sure why I made this a list when rulebook says you can only have one xD
|
||||
|
||||
@@ -1,44 +1,47 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics.model.Enums;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public enum Abilities {
|
||||
|
||||
First_Aid("First Aid",new CharacterType[]{CharacterType.Mystic,CharacterType.Archer,CharacterType.Scamp,CharacterType.Leader,CharacterType.Healer,CharacterType.Tinkerer,CharacterType.Warrior}),
|
||||
Chain_Lightning("Chain Lightning",new CharacterType[]{CharacterType.Mystic}),
|
||||
Mystic_Blast("Mystic Blast",new CharacterType[]{CharacterType.Mystic}),
|
||||
Major_Heal("Major Heal",new CharacterType[]{CharacterType.Healer}),
|
||||
Feint("Feint",new CharacterType[]{CharacterType.Warrior}),
|
||||
Battle_Squeak("Battle Squeak",new CharacterType[]{CharacterType.Warrior}),
|
||||
Battle_Leader("Battle Leader",new CharacterType[]{CharacterType.Leader}),
|
||||
Set_Trap("Set Trap",new CharacterType[]{CharacterType.Tinkerer}),
|
||||
Fortify("Fortify",new CharacterType[]{CharacterType.Healer}),
|
||||
Cure("Cure",new CharacterType[]{CharacterType.Healer}),
|
||||
Knife_Strike("Knife Strike",new CharacterType[]{CharacterType.Scamp}),
|
||||
Find("Find",new CharacterType[]{CharacterType.Scamp}),
|
||||
Dodge("Dodge",new CharacterType[]{CharacterType.Scamp}),
|
||||
Thundersqueak("Thundersqueak",new CharacterType[]{CharacterType.Warrior,CharacterType.Tinkerer,CharacterType.Healer}),
|
||||
Backslash("Backslash",new CharacterType[]{CharacterType.Warrior}),
|
||||
Mystic_Bolt("Mystic Bolt",new CharacterType[]{CharacterType.Mystic}),
|
||||
Inspire("Inspire",new CharacterType[]{CharacterType.Leader}),
|
||||
Keen_Eye("Keen Eye",new CharacterType[]{CharacterType.Scamp,CharacterType.Archer}),
|
||||
Meeps("Meeps",new CharacterType[]{CharacterType.Maginos}),
|
||||
Invisibility("Invisibility",new CharacterType[]{CharacterType.Mystic}),
|
||||
Accurate_Shot("Accurate Shot",new CharacterType[]{CharacterType.Archer}),
|
||||
Aimed_Shot("Aimed Shot",new CharacterType[]{CharacterType.Archer}),
|
||||
Power_Shot("Power Shot",new CharacterType[]{CharacterType.Archer}),
|
||||
Preemptive_Shot("Preemptive Shot",new CharacterType[]{CharacterType.Archer}),
|
||||
Resolve("Resolve",new CharacterType[]{CharacterType.Warrior}),
|
||||
Protect("Protect",new CharacterType[]{CharacterType.Warrior}),
|
||||
Give_Order("Give Order",new CharacterType[]{CharacterType.Leader}),
|
||||
Energy_Rush("Energy Rush",new CharacterType[]{CharacterType.Scamp});
|
||||
First_Aid(R.string.ability_firstaid,new CharacterType[]{CharacterType.Mystic,CharacterType.Archer,CharacterType.Scamp,CharacterType.Leader,CharacterType.Healer,CharacterType.Tinkerer,CharacterType.Warrior}),
|
||||
Chain_Lightning(R.string.ability_chainlighting,new CharacterType[]{CharacterType.Mystic}),
|
||||
Mystic_Blast(R.string.ability_mysticblast,new CharacterType[]{CharacterType.Mystic}),
|
||||
Major_Heal(R.string.ability_majorheal,new CharacterType[]{CharacterType.Healer}),
|
||||
Feint(R.string.ability_feint,new CharacterType[]{CharacterType.Warrior}),
|
||||
Battle_Squeak(R.string.ability_battlesqueak,new CharacterType[]{CharacterType.Warrior}),
|
||||
Battle_Leader(R.string.ability_battleleader,new CharacterType[]{CharacterType.Leader}),
|
||||
Set_Trap(R.string.ability_settrap,new CharacterType[]{CharacterType.Tinkerer}),
|
||||
Fortify(R.string.ability_fortify,new CharacterType[]{CharacterType.Healer}),
|
||||
Cure(R.string.ability_cure,new CharacterType[]{CharacterType.Healer}),
|
||||
Knife_Strike(R.string.ability_knifestrike,new CharacterType[]{CharacterType.Scamp}),
|
||||
Find(R.string.ability_find,new CharacterType[]{CharacterType.Scamp}),
|
||||
Dodge(R.string.ability_dodge,new CharacterType[]{CharacterType.Scamp}),
|
||||
Thundersqueak(R.string.ability_thundersqueak,new CharacterType[]{CharacterType.Warrior,CharacterType.Tinkerer,CharacterType.Healer}),
|
||||
Backslash(R.string.ability_backslash,new CharacterType[]{CharacterType.Warrior}),
|
||||
Mystic_Bolt(R.string.ability_mysticbolt,new CharacterType[]{CharacterType.Mystic}),
|
||||
Inspire(R.string.ability_inspire,new CharacterType[]{CharacterType.Leader}),
|
||||
Keen_Eye(R.string.ability_keeneye,new CharacterType[]{CharacterType.Scamp,CharacterType.Archer}),
|
||||
Meeps(R.string.ability_meeps,new CharacterType[]{CharacterType.Maginos}),
|
||||
Invisibility(R.string.ability_invisibility,new CharacterType[]{CharacterType.Mystic}),
|
||||
Accurate_Shot(R.string.ability_accurateshot,new CharacterType[]{CharacterType.Archer}),
|
||||
Aimed_Shot(R.string.ability_aimedshot,new CharacterType[]{CharacterType.Archer}),
|
||||
Power_Shot(R.string.ability_powershot,new CharacterType[]{CharacterType.Archer}),
|
||||
Preemptive_Shot(R.string.ability_prempshot,new CharacterType[]{CharacterType.Archer}),
|
||||
Resolve(R.string.ability_resolve,new CharacterType[]{CharacterType.Warrior}),
|
||||
Protect(R.string.ability_protect,new CharacterType[]{CharacterType.Warrior}),
|
||||
Give_Order(R.string.ability_giveorder,new CharacterType[]{CharacterType.Leader}),
|
||||
Energy_Rush(R.string.ability_energyrush,new CharacterType[]{CharacterType.Scamp});
|
||||
|
||||
private String displayName;
|
||||
private int displayName;
|
||||
private CharacterType[] appliesTo;
|
||||
|
||||
Abilities(String displayName,CharacterType[] appliesTo) {
|
||||
Abilities(int displayName,CharacterType[] appliesTo) {
|
||||
this.displayName = displayName;
|
||||
this.appliesTo = appliesTo;
|
||||
}
|
||||
@@ -64,8 +67,7 @@ public enum Abilities {
|
||||
return matchingList.toArray(new Abilities[matchingList.size()]);
|
||||
}
|
||||
|
||||
public String displayName() { return displayName; }
|
||||
public String displayName() { return MiceAndMysticsApplication.getInstance().getString(displayName); }
|
||||
|
||||
@Override public String toString() { return displayName; }
|
||||
public static Abilities valueOfDisplayName(String valuedDisplayName) {return Abilities.valueOf(valuedDisplayName.replace(" ","_"));}
|
||||
@Override public String toString() { return displayName(); }
|
||||
}
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics.model.Enums;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
|
||||
public enum Achievement {
|
||||
|
||||
Miz_Maggie("Miz Maggie", R.mipmap.mizmaggie),
|
||||
Vanestras_Brush("Vanestra's Brush",R.mipmap.vanbrush),
|
||||
King("King",R.mipmap.king),
|
||||
Cats_Horn_Claw("Cat's Horn Claw",R.mipmap.catclaw), //not sure if it matters this is the claw and not the horn side.
|
||||
Catnip("Catnip",R.mipmap.catnip);
|
||||
Miz_Maggie(R.string.ach_name_maggie, R.mipmap.mizmaggie),
|
||||
Vanestras_Brush(R.string.ach_name_van_brush,R.mipmap.vanbrush),
|
||||
King(R.string.ach_name_king,R.mipmap.king),
|
||||
Cats_Horn_Claw(R.string.ach_name_horn_claw,R.mipmap.catclaw), //not sure if it matters this is the claw and not the horn side.
|
||||
Catnip(R.string.ach_name_catnip,R.mipmap.catnip);
|
||||
|
||||
private String displayName;
|
||||
private int displayName;
|
||||
private int displayResource;
|
||||
|
||||
Achievement(String displayName,int resource) {
|
||||
Achievement(int displayName,int resource) {
|
||||
this.displayName = displayName;
|
||||
this.displayResource = resource;
|
||||
}
|
||||
|
||||
public String displayName() { return displayName; }
|
||||
public String displayName() { return MiceAndMysticsApplication.getInstance().getString(displayName); }
|
||||
|
||||
public int getDisplayResource() { return displayResource; }
|
||||
|
||||
@Override public String toString() { return displayName; }
|
||||
public static Achievement valueOfDisplayName(String valuedDisplayName) {return Achievement.valueOf(valuedDisplayName.replace(" ","_").replace("'",""));}
|
||||
@Override public String toString() { return displayName(); }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics.model.Enums;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
|
||||
public enum CampaignType {
|
||||
Sorrow_and_Remembrance("Sorrow and Remembrance");
|
||||
Sorrow_and_Remembrance(R.string.campaign_name_s_a_r);
|
||||
|
||||
private String displayName;
|
||||
private int displayName;
|
||||
|
||||
CampaignType(String name) {
|
||||
CampaignType(int name) {
|
||||
this.displayName = name;
|
||||
}
|
||||
|
||||
public String displayName() { return displayName; }
|
||||
public String displayName() { return MiceAndMysticsApplication.getInstance().getString(displayName); }
|
||||
|
||||
@Override public String toString() { return displayName; }
|
||||
public static CampaignType valueOfDisplayName(String valuedDisplayName) {return CampaignType.valueOf(valuedDisplayName.replace(" ","_"));}
|
||||
@Override public String toString() { return displayName(); }
|
||||
}
|
||||
|
||||
@@ -1,24 +1,30 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics.model.Enums;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
|
||||
public enum CharacterNames {
|
||||
|
||||
Collin(new CharacterType[]{CharacterType.Warrior,CharacterType.Leader}, R.mipmap.collin),
|
||||
Filch(new CharacterType[]{CharacterType.Scamp},R.mipmap.filch),
|
||||
Lily(new CharacterType[]{CharacterType.Archer},R.mipmap.lily),
|
||||
Maginos(new CharacterType[]{CharacterType.Mystic,CharacterType.Maginos},R.mipmap.maginos),
|
||||
Nez(new CharacterType[]{CharacterType.Tinkerer,CharacterType.Warrior},R.mipmap.nez),
|
||||
Tilda(new CharacterType[]{CharacterType.Healer},R.mipmap.tilda);
|
||||
Collin(R.string.char_name_collin,new CharacterType[]{CharacterType.Warrior,CharacterType.Leader}, R.mipmap.collin),
|
||||
Filch(R.string.char_name_filch,new CharacterType[]{CharacterType.Scamp},R.mipmap.filch),
|
||||
Lily(R.string.char_name_lily,new CharacterType[]{CharacterType.Archer},R.mipmap.lily),
|
||||
Maginos(R.string.char_name_maginos,new CharacterType[]{CharacterType.Mystic,CharacterType.Maginos},R.mipmap.maginos),
|
||||
Nez(R.string.char_name_nez,new CharacterType[]{CharacterType.Tinkerer,CharacterType.Warrior},R.mipmap.nez),
|
||||
Tilda(R.string.char_name_tilda,new CharacterType[]{CharacterType.Healer},R.mipmap.tilda);
|
||||
|
||||
private CharacterType[] types;
|
||||
private int drawableIcon;
|
||||
private int displayName;
|
||||
|
||||
CharacterNames(CharacterType[] types,int drawableIcon) {
|
||||
CharacterNames(int displayName,CharacterType[] types,int drawableIcon) {
|
||||
this.displayName = displayName;
|
||||
this.types = types;
|
||||
this.drawableIcon = drawableIcon;
|
||||
}
|
||||
|
||||
public CharacterType[] characterTypes() { return types; }
|
||||
public int getDrawableRes() {return drawableIcon;}
|
||||
public String displayName() { return MiceAndMysticsApplication.getInstance().getString(displayName); }
|
||||
|
||||
@Override public String toString() { return displayName(); }
|
||||
}
|
||||
|
||||
@@ -1,12 +1,25 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics.model.Enums;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
|
||||
public enum CharacterType {
|
||||
Warrior,
|
||||
Leader,
|
||||
Mystic,
|
||||
Scamp,
|
||||
Tinkerer,
|
||||
Archer,
|
||||
Healer,
|
||||
Maginos
|
||||
Warrior(R.string.char_type_warrior),
|
||||
Leader(R.string.char_type_leader),
|
||||
Mystic(R.string.char_type_mystic),
|
||||
Scamp(R.string.char_type_scamp),
|
||||
Tinkerer(R.string.char_type_tinkerer),
|
||||
Archer(R.string.char_type_archer),
|
||||
Healer(R.string.char_type_healer),
|
||||
Maginos(R.string.char_type_maginos);
|
||||
|
||||
private int displayName;
|
||||
|
||||
CharacterType(int displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public String displayName() { return MiceAndMysticsApplication.getInstance().getString(displayName); }
|
||||
|
||||
@Override public String toString() { return displayName(); }
|
||||
}
|
||||
|
||||
@@ -2,12 +2,14 @@ package com.eyecreate.miceandmystics.miceandmystics.model;
|
||||
|
||||
import io.realm.RealmObject;
|
||||
import io.realm.annotations.PrimaryKey;
|
||||
import io.realm.annotations.Required;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class Player extends RealmObject {
|
||||
@PrimaryKey
|
||||
@Required
|
||||
private String playerName;
|
||||
|
||||
public Player() {}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class CampaignDetailsViewHolder extends RecyclerView.ViewHolder implement
|
||||
|
||||
public void bindModel(Character character) {
|
||||
boundCharacter = character;
|
||||
characterName.setText(character.getCharacterName());
|
||||
characterName.setText(CharacterNames.valueOf(character.getCharacterName()).displayName());
|
||||
playerName.setText(character.getControllingPlayer().getPlayerName());
|
||||
characterIcon.setImageResource(CharacterNames.valueOf(character.getCharacterName()).getDrawableRes());
|
||||
}
|
||||
@@ -48,14 +48,14 @@ public class CampaignDetailsViewHolder extends RecyclerView.ViewHolder implement
|
||||
@Override
|
||||
public boolean onLongClick(View view) {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(view.getContext(),R.style.dialogTheme)
|
||||
.setMessage("Do you want to remove character: "+characterName.getText()+"?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(view.getContext().getString(R.string.remove_character_confirm)+characterName.getText()+"?")
|
||||
.setNegativeButton(view.getContext().getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(view.getContext().getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
adapter.removeCharacter(boundCharacter);
|
||||
|
||||
@@ -1,23 +1,58 @@
|
||||
package com.eyecreate.miceandmystics.miceandmystics.viewholders;
|
||||
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.eyecreate.miceandmystics.miceandmystics.MiceAndMysticsApplication;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Campaign;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.CampaignType;
|
||||
|
||||
public class CampaignHeaderViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
TextView campaignName,campaignType;
|
||||
TextView campaignName,campaignType,campaignChapter;
|
||||
EditText chapterEdit;
|
||||
|
||||
public CampaignHeaderViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
campaignName = (TextView)itemView.findViewById(R.id.campaign_name);
|
||||
campaignType = (TextView)itemView.findViewById(R.id.campaign_type);
|
||||
campaignChapter = (TextView) itemView.findViewById(R.id.campaign_chapter);
|
||||
chapterEdit = (EditText) itemView.findViewById(R.id.edit_chapter);
|
||||
}
|
||||
|
||||
public void bindModel(Campaign campaign) {
|
||||
public void bindModel(final Campaign campaign) {
|
||||
campaignName.setText(campaign.getCampaignName());
|
||||
campaignType.setText(campaign.getCampaignType());
|
||||
campaignType.setText(CampaignType.valueOf(campaign.getCampaignType()).displayName());
|
||||
campaignChapter.setText(campaignChapter.getResources().getText(R.string.campaign_chapter)+" : ");
|
||||
chapterEdit.setText(String.valueOf(campaign.getCampaignChapter() == 0 ? 1:campaign.getCampaignChapter()));
|
||||
chapterEdit.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable editable) {
|
||||
try{
|
||||
Integer.parseInt(editable.toString());
|
||||
}
|
||||
catch(NumberFormatException e) {
|
||||
return;
|
||||
}
|
||||
MiceAndMysticsApplication.getRealmInstance().beginTransaction();
|
||||
campaign.setCampaignChapter(Integer.parseInt(editable.toString()));
|
||||
MiceAndMysticsApplication.getRealmInstance().commitTransaction();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,14 +76,14 @@ public class CampaignViewHolder extends RecyclerView.ViewHolder implements View.
|
||||
@Override
|
||||
public boolean onLongClick(View view) {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(view.getContext(),R.style.dialogTheme)
|
||||
.setMessage("Do you want to remove campaign: "+campaignName.getText()+"?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(view.getContext().getString(R.string.remove_campaign_confirm)+campaignName.getText()+"?")
|
||||
.setNegativeButton(view.getContext().getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(view.getContext().getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
adapter.removeItem((String) campaignName.getText());
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.alertdialogpro.AlertDialogPro;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.R;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.adapters.CharacterDetailsAdapter;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Ability;
|
||||
import com.eyecreate.miceandmystics.miceandmystics.model.Enums.Abilities;
|
||||
|
||||
public class CharacterAbilityViewHolder extends RecyclerView.ViewHolder implements View.OnLongClickListener {
|
||||
|
||||
@@ -24,21 +25,21 @@ public class CharacterAbilityViewHolder extends RecyclerView.ViewHolder implemen
|
||||
}
|
||||
|
||||
public void bindHolder(Ability ability) {
|
||||
abilityName.setText(ability.getAbilityName());
|
||||
abilityName.setText(Abilities.valueOf(ability.getAbilityName()).toString());
|
||||
uuid = ability.getUuid();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onLongClick(View view) {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(view.getContext(),R.style.dialogTheme)
|
||||
.setMessage("Do you want to remove ability: "+abilityName.getText()+"?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(view.getContext().getString(R.string.remove_ability_confirm)+abilityName.getText()+"?")
|
||||
.setNegativeButton(view.getContext().getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(view.getContext().getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
adapter.removeAbility(uuid);
|
||||
|
||||
@@ -31,14 +31,14 @@ public class CharacterItemViewHolder extends RecyclerView.ViewHolder implements
|
||||
@Override
|
||||
public boolean onLongClick(View view) {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(view.getContext(),R.style.dialogTheme)
|
||||
.setMessage("Do you want to remove item: "+itemName.getText()+"?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(view.getContext().getString(R.string.remove_item_confirm)+itemName.getText()+"?")
|
||||
.setNegativeButton(view.getContext().getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(view.getContext().getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
adapter.removeItem(uuid);
|
||||
|
||||
@@ -28,21 +28,21 @@ public class PartyAchievementViewHolder extends RecyclerView.ViewHolder implemen
|
||||
|
||||
public void bindHolder(Achievement achievement) {
|
||||
this.boundAchievement = achievement;
|
||||
achievementName.setText(achievement.getAchievementName());
|
||||
achievementIcon.setImageResource(com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement.valueOfDisplayName(achievement.getAchievementName()).getDisplayResource());
|
||||
achievementName.setText(com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement.valueOf(achievement.getAchievementName()).displayName());
|
||||
achievementIcon.setImageResource(com.eyecreate.miceandmystics.miceandmystics.model.Enums.Achievement.valueOf(achievement.getAchievementName()).getDisplayResource());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onLongClick(View view) {
|
||||
AlertDialog removeDialog = new AlertDialogPro.Builder(view.getContext(),R.style.dialogTheme)
|
||||
.setMessage("Do you want to remove achievement: "+achievementName.getText()+"?")
|
||||
.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
||||
.setMessage(view.getContext().getString(R.string.remove_achievement_confirm)+achievementName.getText()+"?")
|
||||
.setNegativeButton(view.getContext().getString(R.string.dialog_no), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
|
||||
}
|
||||
})
|
||||
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(view.getContext().getString(R.string.dialog_yes), new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
adapter.removeAchievement(boundAchievement);
|
||||
|
||||
@@ -17,4 +17,22 @@
|
||||
android:textColor="@color/parchment_yellow"
|
||||
android:gravity="center_horizontal"
|
||||
android:id="@+id/campaign_type"/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/parchment_yellow"
|
||||
android:text="Chapter: "
|
||||
android:gravity="center_horizontal"
|
||||
android:id="@+id/campaign_chapter"/>
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:id="@+id/edit_chapter"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -13,5 +13,5 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/parchment_yellow"
|
||||
android:text="Abilities"/>
|
||||
android:text="@string/ability_item_header"/>
|
||||
</LinearLayout>
|
||||
@@ -8,5 +8,5 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/parchment_yellow"
|
||||
android:text="Items:"/>
|
||||
android:text="@string/char_item_header"/>
|
||||
</LinearLayout>
|
||||
@@ -10,5 +10,5 @@
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/parchment_yellow"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="Party Achievements"/>
|
||||
android:text="@string/party_item_header"/>
|
||||
</LinearLayout>
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".CampaignActivity">
|
||||
<item android:id="@+id/action_add_campaign"
|
||||
android:title="Add Campaign"
|
||||
android:title="@string/add_campaign"
|
||||
android:icon="@android:drawable/ic_menu_add"
|
||||
app:showAsAction="always"/>
|
||||
</menu>
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.eyecreate.miceandmystics.miceandmystics.CampaignDetailsActivity">
|
||||
<item android:id="@+id/action_add_character"
|
||||
android:title="Add Character"
|
||||
android:title="@string/add_character"
|
||||
android:icon="@android:drawable/ic_menu_add"
|
||||
app:showAsAction="always"/>
|
||||
<item android:id="@+id/action_add_player"
|
||||
android:title="Add Player"
|
||||
android:title="@string/add_player"
|
||||
android:icon="@mipmap/ic_menu_invite"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item android:id="@+id/action_add_party_achievement"
|
||||
android:title="Add Achievment"
|
||||
android:title="@string/add_achievement"
|
||||
android:icon="@mipmap/ic_menu_star"
|
||||
app:showAsAction="always"/>
|
||||
<item android:id="@+id/action_manage_players"
|
||||
android:title="Manage Players"
|
||||
android:title="@string/manage_players"
|
||||
android:icon="@mipmap/ic_menu_friendslist"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/action_add_ability"
|
||||
android:title="Add Ability"
|
||||
android:title="@string/add_ability"
|
||||
app:showAsAction="never"/>
|
||||
<item android:id="@+id/action_add_item"
|
||||
android:title="Add Held Item"
|
||||
android:title="@string/add_held_item"
|
||||
app:showAsAction="never"/>
|
||||
</menu>
|
||||
@@ -2,7 +2,7 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item android:id="@+id/action_add_player"
|
||||
android:title="Add Player"
|
||||
android:title="@string/add_player"
|
||||
android:icon="@mipmap/ic_menu_invite"
|
||||
app:showAsAction="always"/>
|
||||
</menu>
|
||||
110
MiceAndMysticsTracker/src/main/res/values-de/strings.xml
Normal file
110
MiceAndMysticsTracker/src/main/res/values-de/strings.xml
Normal file
@@ -0,0 +1,110 @@
|
||||
<resources>
|
||||
<string name="app_name">Maus und Mystik Tracker</string>
|
||||
<string name="title_activity_campaign_details">CampaignDetailsActivity</string>
|
||||
|
||||
<string name="action_settings">Einstellungen</string>
|
||||
|
||||
<!-- Character Names -->
|
||||
<string name="char_name_collin">Collin</string>
|
||||
<string name="char_name_filch">Finger</string>
|
||||
<string name="char_name_lily">Lily</string>
|
||||
<string name="char_name_maginos">Maginos</string>
|
||||
<string name="char_name_nez">Rex</string>
|
||||
<string name="char_name_tilda">Tilda</string>
|
||||
|
||||
<!-- Campaign Types -->
|
||||
<string name="campaign_name_s_a_r">Trauer und Erinnerung</string>
|
||||
|
||||
<!-- Achievements -->
|
||||
<string name="ach_name_maggie">Bertha</string>
|
||||
<string name="ach_name_van_brush">Vanestra\'s Bürste</string>
|
||||
<string name="ach_name_king">König</string>
|
||||
<string name="ach_name_horn_claw">Krallenhorn</string>
|
||||
<string name="ach_name_catnip">Katzenminze</string>
|
||||
|
||||
<!-- Character Types -->
|
||||
<string name="char_type_warrior">Kämpfer</string>
|
||||
<string name="char_type_leader">Anführer</string>
|
||||
<string name="char_type_mystic">Mystiker</string>
|
||||
<string name="char_type_scamp">Strolch</string>
|
||||
<string name="char_type_tinkerer">Tüftler</string>
|
||||
<string name="char_type_archer">Schütze</string>
|
||||
<string name="char_type_healer">Heiler</string>
|
||||
<string name="char_type_maginos">Maginos</string>
|
||||
|
||||
<!-- Abilities -->
|
||||
<string name="ability_firstaid">Erste Hilfe</string>
|
||||
<string name="ability_chainlighting">Kettenblitz</string>
|
||||
<string name="ability_mysticblast">Mystische Explosion</string>
|
||||
<string name="ability_majorheal">Rundumheilung</string>
|
||||
<string name="ability_feint">Finte</string>
|
||||
<string name="ability_battlesqueak">Kampfquieken</string>
|
||||
<string name="ability_battleleader">Den Kampf anführen</string>
|
||||
<string name="ability_settrap">Falle stellen</string>
|
||||
<string name="ability_fortify">Stärkung</string>
|
||||
<string name="ability_cure">Kurieren</string>
|
||||
<string name="ability_knifestrike">Klingenwirbel</string>
|
||||
<string name="ability_find">Spürnase</string>
|
||||
<string name="ability_dodge">Leichtfüssig</string>
|
||||
<string name="ability_thundersqueak">Donnerquieken</string>
|
||||
<string name="ability_backslash">Kampeslust</string>
|
||||
<string name="ability_mysticbolt">Mystischer Blitz</string>
|
||||
<string name="ability_inspire">Inspiration</string>
|
||||
<string name="ability_keeneye">Adlerauge</string>
|
||||
<string name="ability_meeps">Mieps</string>
|
||||
<string name="ability_invisibility">Unsichtbarkeit</string>
|
||||
<string name="ability_accurateshot">Präzisionsschuss</string>
|
||||
<string name="ability_aimedshot">Gezielter Schuss</string>
|
||||
<string name="ability_powershot">Kraftschuss</string>
|
||||
<string name="ability_prempshot">Präventivschuss</string>
|
||||
<string name="ability_resolve">Parade</string>
|
||||
<string name="ability_protect">Beschützen</string>
|
||||
<string name="ability_giveorder">Befehl geben</string>
|
||||
<string name="ability_energyrush">Energieschub</string>
|
||||
|
||||
<!-- UI text -->
|
||||
<string name="dialog_confirm">Ok</string>
|
||||
<string name="dialog_add">Zufügen</string>
|
||||
<string name="dialog_create">Erstellen</string>
|
||||
<string name="dialog_yes">Ja</string>
|
||||
<string name="dialog_no">Nein</string>
|
||||
<string name="char_item_header">Gegenstände:</string>
|
||||
<string name="party_item_header">Geschichtenerfolg</string>
|
||||
<string name="ability_item_header">Fähigkeiten</string>
|
||||
<string name="campaign_activity">Kampagnen</string>
|
||||
<string name="campaign_chapter">Kapitel</string>
|
||||
<string name="campaign_name_request">Gebe deiner Kampagne einen einzigartigen Namen:</string>
|
||||
<string name="campaign_name_blank">Der Name kann nicht leer sein!</string>
|
||||
<string name="character_activity">Character Details</string>
|
||||
<string name="character_ability_request">Wähle eine Fähigkeit:</string>
|
||||
<string name="character_ability_exists">Diese Fähigkeit hat der Character bereits.</string>
|
||||
<string name="character_item_request">Benenne den Gegenstand, den der Character trägt:</string>
|
||||
<string name="character_item_blank">Der Name kann nicht leer sein!</string>
|
||||
<string name="campaign_details_Activity">Spiel Details</string>
|
||||
<string name="player_name_request">Benenne den neuen Spieler:</string>
|
||||
<string name="player_name_blank">Der Name kann nicht leer sein!</string>
|
||||
<string name="player_name_dup">Dieser Name wird bereits verwendet!</string>
|
||||
<string name="achievement_add_request">Wähle den Geschichtenerfolg, der hinzugefügt werden soll:</string>
|
||||
<string name="achievement_dup">Dieser Geschichtenerfolg ist bereits vorhanden.</string>
|
||||
<string name="character_add_request">Wähle einen Character und den zugehörigen Spieler:</string>
|
||||
<string name="character_player_blank">Kein Spieler ausgewählt. Vielleicht muss noch einer erstellt werden.</string>
|
||||
<string name="players_activity">Spieler verwalten</string>
|
||||
<string name="character_game_dup">Dieser Character wird bereits verwendet.</string>
|
||||
<string name="remove_player_confirm_1">"Entferne Spieler: "</string>
|
||||
<string name="remove_player_confirm_2">" . Es werden alle Charactere des Spielers entfernt. Möchtest du trotzdem weiter?"</string>
|
||||
<string name="remove_empty_player_confirm">"Soll dieser Spieler entfernt werden: "</string>
|
||||
<string name="remove_character_confirm">"Soll dieser Character erntfernt werden: "</string>
|
||||
<string name="remove_campaign_confirm">"Soll diese Kampagne entfernt werden: "</string>
|
||||
<string name="remove_ability_confirm">"Soll diese Fähigkeit entfernt werden: "</string>
|
||||
<string name="remove_item_confirm">"Soll dieser Gegenstand entfernt werden: "</string>
|
||||
<string name="remove_achievement_confirm">"Soll dieser Gruppenerfolg entfernt werden: "</string>
|
||||
<string name="add_campaign">Kampagne hinzufügen</string>
|
||||
<string name="add_character">Character hinzufügen</string>
|
||||
<string name="add_player">Spieler hinzufügen</string>
|
||||
<string name="add_achievement">Gruppenerfolg hinzufügen</string>
|
||||
<string name="manage_players">Spieler verwalten</string>
|
||||
<string name="add_ability">Fähigkeit hinzufügen</string>
|
||||
<string name="add_held_item">Gegenstand hinzufügen</string>
|
||||
|
||||
|
||||
</resources>
|
||||
102
MiceAndMysticsTracker/src/main/res/values-es/strings.xml
Normal file
102
MiceAndMysticsTracker/src/main/res/values-es/strings.xml
Normal file
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Mice and Mystics secuenciador</string>
|
||||
<string name="title_activity_campaign_details">CampañaDetallesHabilidades</string>
|
||||
<string name="action_settings">Configuraciones</string>
|
||||
<!--Nombres de los personajes-->
|
||||
<string name="char_name_collin">Collin</string>
|
||||
<string name="char_name_filch">Filch</string>
|
||||
<string name="char_name_lily">Lily</string>
|
||||
<string name="char_name_maginos">Maginos</string>
|
||||
<string name="char_name_nez">Nez</string>
|
||||
<string name="char_name_tilda">Tilda</string>
|
||||
<!--Tipos de campaña-->
|
||||
<string name="campaign_name_s_a_r">Dolor y Recuerdo</string>
|
||||
<!--Logros-->
|
||||
<string name="ach_name_maggie">Miz Maggie</string>
|
||||
<string name="ach_name_van_brush">Cepillo de Vanestra</string>
|
||||
<string name="ach_name_king">Rey</string>
|
||||
<string name="ach_name_horn_claw">Garra Cuerno Gato</string>
|
||||
<string name="ach_name_catnip">Menta de Gato</string>
|
||||
<!--Clases de Personaje-->
|
||||
<string name="char_type_warrior">Guerrero</string>
|
||||
<string name="char_type_leader">Líder</string>
|
||||
<string name="char_type_mystic">Mago</string>
|
||||
<string name="char_type_scamp">Bribón</string>
|
||||
<string name="char_type_tinkerer">Manitas</string>
|
||||
<string name="char_type_archer">Arquero</string>
|
||||
<string name="char_type_healer">Sanadora</string>
|
||||
<string name="char_type_maginos">Maginos</string>
|
||||
<!--Habilidades-->
|
||||
<string name="ability_firstaid">Primeros Auxílios</string>
|
||||
<string name="ability_chainlighting">Relámpago en Cadena</string>
|
||||
<string name="ability_mysticblast">Estallido Místico</string>
|
||||
<string name="ability_majorheal">Gran Curación</string>
|
||||
<string name="ability_feint">Finta</string>
|
||||
<string name="ability_battlesqueak">Chillido de Batalla</string>
|
||||
<string name="ability_battleleader">Líder de Batalla</string>
|
||||
<string name="ability_settrap">Colocar Trampas</string>
|
||||
<string name="ability_fortify">Fortalecimiento</string>
|
||||
<string name="ability_cure">Curación</string>
|
||||
<string name="ability_knifestrike">Acuchillar</string>
|
||||
<string name="ability_find">Hallazgo</string>
|
||||
<string name="ability_dodge">Esquivar</string>
|
||||
<string name="ability_thundersqueak">Chillido Atronador</string>
|
||||
<string name="ability_backslash">Contraofensiva</string>
|
||||
<string name="ability_mysticbolt">Rayo Místico</string>
|
||||
<string name="ability_inspire">Inspiración</string>
|
||||
<string name="ability_keeneye">Agudeza Visual</string>
|
||||
<string name="ability_meeps">Meeps</string>
|
||||
<string name="ability_invisibility">Invisibilidad</string>
|
||||
<string name="ability_accurateshot">Disparo Preciso</string>
|
||||
<string name="ability_aimedshot">Disparo con Puntería</string>
|
||||
<string name="ability_powershot">Disparo Potente</string>
|
||||
<string name="ability_prempshot">Disparo de Anticipación</string>
|
||||
<string name="ability_resolve">Resuelto</string>
|
||||
<string name="ability_protect">Protección</string>
|
||||
<string name="ability_giveorder">Dar Órdenes</string>
|
||||
<string name="ability_energyrush">Empuje de Energía</string>
|
||||
<!--Texto UI -->
|
||||
<string name="dialog_confirm">De acuerdo</string>
|
||||
<string name="dialog_add">Añadir</string>
|
||||
<string name="dialog_create">Crear</string>
|
||||
<string name="dialog_yes">Sí</string>
|
||||
<string name="dialog_no">No</string>
|
||||
<string name="char_item_header">Artículos:</string>
|
||||
<string name="party_item_header">Logros de Equipo</string>
|
||||
<string name="ability_item_header">Habilidades</string>
|
||||
<string name="campaign_activity">Campañas</string>
|
||||
<string name="campaign_chapter">Capítulo</string>
|
||||
<string name="campaign_name_request">Por favor, da un nombre único para la campaña:</string>
|
||||
<string name="campaign_name_blank">¡No puedes dejar el nombre en blanco!</string>
|
||||
<string name="character_activity">Detalles del Personaje</string>
|
||||
<string name="character_ability_request">Por favor, indica cual habilidad se añade:</string>
|
||||
<string name="character_ability_exists">Esta habilidad ya la tiene este personaje.</string>
|
||||
<string name="character_item_request">Por favor, indica el artículo que se añade como equipado:</string>
|
||||
<string name="character_item_blank">¡No puedes dejar en blanco el nombre del Artículo!</string>
|
||||
<string name="campaign_details_Activity">Detalles de la Partida.</string>
|
||||
<string name="player_name_request">Por favor di el nombre del nuevo jugador:</string>
|
||||
<string name="player_name_blank">¡No puedes dejar el nombre en blanco!</string>
|
||||
<string name="player_name_dup">¡No puedes tener el mismo nombre de otro jugador!</string>
|
||||
<string name="achievement_add_request">Por favor selecciona el logro a añadir a tu equipo:</string>
|
||||
<string name="achievement_dup">No se puede tener el mismo logro más de una vez.</string>
|
||||
<string name="character_add_request">Por favor, selecciona tu personaje y el jugador que lo controla:</string>
|
||||
<string name="character_player_blank">Ningún jugador escogido. Prueba de crear uno antes.</string>
|
||||
<string name="players_activity">Gestionar Jugadores</string>
|
||||
<string name="character_game_dup">No puedes tener dos veces el mismo personaje en la partida.</string>
|
||||
<string name="remove_player_confirm_1">"Borrando jugador "</string>
|
||||
<string name="remove_player_confirm_2">" debes borrar todos los personajes de este jugador. ¿Aún quieres continuar?"</string>
|
||||
<string name="remove_empty_player_confirm">"¿Quieres eliminar al Jugador: "</string>
|
||||
<string name="remove_character_confirm">"¿Quieres borrar el Personaje: "</string>
|
||||
<string name="remove_campaign_confirm">"¿Quieres borrar la Campaña: "</string>
|
||||
<string name="remove_ability_confirm">"¿Quieres borrar la Habilidad: "</string>
|
||||
<string name="remove_item_confirm">"¿Quieres borrar el Artículo: "</string>
|
||||
<string name="remove_achievement_confirm">"¿Quieres borrar el Logro: "</string>
|
||||
<string name="add_campaign">Añadir Campaña</string>
|
||||
<string name="add_character">Añadir Personaje</string>
|
||||
<string name="add_player">Añadir Jugador</string>
|
||||
<string name="add_achievement">Añadir Logro</string>
|
||||
<string name="manage_players">Gestionar Jugadores</string>
|
||||
<string name="add_ability">Añadir Habilidad</string>
|
||||
<string name="add_held_item">Añadir Artículo Equipado</string>
|
||||
</resources>
|
||||
111
MiceAndMysticsTracker/src/main/res/values-pt-rBR/strings.xml
Normal file
111
MiceAndMysticsTracker/src/main/res/values-pt-rBR/strings.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Mice and Mystics Tracker</string>
|
||||
<string name="title_activity_campaign_details">CampanhaDetalhesAtividade</string>
|
||||
|
||||
<string name="action_settings">Opções</string>
|
||||
|
||||
<!-- Character Names -->
|
||||
<string name="char_name_collin">Collin</string>
|
||||
<string name="char_name_filch">Filch</string>
|
||||
<string name="char_name_lily">Lily</string>
|
||||
<string name="char_name_maginos">Maginos</string>
|
||||
<string name="char_name_nez">Nez</string>
|
||||
<string name="char_name_tilda">Tilda</string>
|
||||
|
||||
<!-- Campaign Types -->
|
||||
<string name="campaign_name_s_a_r">Tristeza e Lembrança</string>
|
||||
|
||||
<!-- Achievements -->
|
||||
<string name="ach_name_maggie">Miz Maggie</string>
|
||||
<string name="ach_name_van_brush">Escova de Vanestra</string>
|
||||
<string name="ach_name_king">Rei</string>
|
||||
<string name="ach_name_horn_claw">Berrante de Garra</string>
|
||||
<string name="ach_name_catnip">Gataria</string>
|
||||
|
||||
<!-- Character Types -->
|
||||
<string name="char_type_warrior">Guerreiro</string>
|
||||
<string name="char_type_leader">Líder</string>
|
||||
<string name="char_type_mystic">Místico</string>
|
||||
<string name="char_type_scamp">Ladino</string>
|
||||
<string name="char_type_tinkerer">Faz-Tudo</string>
|
||||
<string name="char_type_archer">Arqueira</string>
|
||||
<string name="char_type_healer">Curandeira</string>
|
||||
<string name="char_type_maginos">Maginos</string>
|
||||
|
||||
<!-- Abilities -->
|
||||
<string name="ability_firstaid">Primeiros Socorros</string>
|
||||
<string name="ability_chainlighting">Cadeia de Raios</string>
|
||||
<string name="ability_mysticblast">Explosão Mística</string>
|
||||
<string name="ability_majorheal">Cura Elevada</string>
|
||||
<string name="ability_feint">Finta</string>
|
||||
<string name="ability_battlesqueak">Grito de Batalha</string>
|
||||
<string name="ability_battleleader">Líder de Batalha</string>
|
||||
<string name="ability_settrap">Montar Armadilha</string>
|
||||
<string name="ability_fortify">Fortificar</string>
|
||||
<string name="ability_cure">Cura</string>
|
||||
<string name="ability_knifestrike">Punhalada</string>
|
||||
<string name="ability_find">Encontrar</string>
|
||||
<string name="ability_dodge">Esquivar</string>
|
||||
<string name="ability_thundersqueak">Grito Estrondoso</string>
|
||||
<string name="ability_backslash">Golpe Traseiro</string>
|
||||
<string name="ability_mysticbolt">Raio Místico</string>
|
||||
<string name="ability_inspire">Inspirar</string>
|
||||
<string name="ability_keeneye">Olho Afiado</string>
|
||||
<string name="ability_meeps">Meeps</string>
|
||||
<string name="ability_invisibility">Invisibilidade</string>
|
||||
<string name="ability_accurateshot">Tiro de Precisão</string>
|
||||
<string name="ability_aimedshot">Tiro Certo</string>
|
||||
<string name="ability_powershot">Tiro Potente</string>
|
||||
<string name="ability_prempshot">Tiro Preventivo</string>
|
||||
<string name="ability_resolve">Resolução</string>
|
||||
<string name="ability_protect">Proteger</string>
|
||||
<string name="ability_giveorder">Ordem</string>
|
||||
<string name="ability_energyrush">Ímpeto de Energia</string>
|
||||
|
||||
<!-- UI text -->
|
||||
<string name="dialog_confirm">OK</string>
|
||||
<string name="dialog_add">Adicionar</string>
|
||||
<string name="dialog_create">Criar</string>
|
||||
<string name="dialog_yes">Sim</string>
|
||||
<string name="dialog_no">Não</string>
|
||||
<string name="char_item_header">Itens:</string>
|
||||
<string name="party_item_header">Conquista na História</string>
|
||||
<string name="ability_item_header">Habilidades</string>
|
||||
<string name="campaign_activity">Campanhas</string>
|
||||
<string name="campaign_chapter">Capítulo</string>
|
||||
<string name="campaign_name_request">Coloque um nome único para a Campanha:</string>
|
||||
<string name="campaign_name_blank">A campanha não pode ficar sem nome!</string>
|
||||
<string name="character_activity">Detalhes do Personagem</string>
|
||||
<string name="character_ability_request">Selecione a habilidade que será adicionada:</string>
|
||||
<string name="character_ability_exists">Esta habilidade já está sendo usada por outro personagem.</string>
|
||||
<string name="character_item_request">Coloque o nome do item:</string>
|
||||
<string name="character_item_blank">O item não pode ficar sem nome!</string>
|
||||
<string name="campaign_details_Activity">Detalhes da Campanha</string>
|
||||
<string name="player_name_request">Coloque o nome do novo jogador:</string>
|
||||
<string name="player_name_blank">O jogador não pode ficar sem nome!</string>
|
||||
<string name="player_name_dup">O jogador não pode ter o mesmo nome que outro jogador!</string>
|
||||
<string name="achievement_add_request">Selecione a conquista que será adicionada:</string>
|
||||
<string name="achievement_dup">Não pode haver conquista repetida.</string>
|
||||
<string name="character_add_request">Selecione o personagem e o jogador que o controla:</string>
|
||||
<string name="character_player_blank">Nenhum jogador selecionado. Tente criar algum jogador antes.</string>
|
||||
<string name="players_activity">Gerenciar Jogadores</string>
|
||||
<string name="character_game_dup">Este personagem já está no jogo.</string>
|
||||
<string name="remove_player_confirm_1">"Remover jogador "</string>
|
||||
<string name="remove_player_confirm_2">" deve-se, primeiro, remover todos os personagens que este jogador controla. Tem certeza que deseja continuar?"</string>
|
||||
<string name="remove_empty_player_confirm">"Deseja remover o jogador: "</string>
|
||||
<string name="remove_character_confirm">"Deseja remover o personagem: "</string>
|
||||
<string name="remove_campaign_confirm">"Deseja remover a campanha: "</string>
|
||||
<string name="remove_ability_confirm">"Deseja remover a habilidade: "</string>
|
||||
<string name="remove_item_confirm">"Deseja remover o item: "</string>
|
||||
<string name="remove_achievement_confirm">"Deseja remover a conquista: "</string>
|
||||
<string name="add_campaign">Adicionar Campanha</string>
|
||||
<string name="add_character">Adicionar Personagem</string>
|
||||
<string name="add_player">Adicionar Jogador</string>
|
||||
<string name="add_achievement">Adicionar Conquista na História</string>
|
||||
<string name="manage_players">Gerenciar Jogadores</string>
|
||||
<string name="add_ability">Adicionar Habilidade</string>
|
||||
<string name="add_held_item">Adicionar Item</string>
|
||||
|
||||
|
||||
</resources>
|
||||
110
MiceAndMysticsTracker/src/main/res/values-ru/strings.xml
Normal file
110
MiceAndMysticsTracker/src/main/res/values-ru/strings.xml
Normal file
@@ -0,0 +1,110 @@
|
||||
<resources>
|
||||
<string name="app_name">Mice and Mystics Tracker</string>
|
||||
<string name="title_activity_campaign_details">CampaignDetailsActivity</string>
|
||||
|
||||
<string name="action_settings">Настройки</string>
|
||||
|
||||
<!-- Character Names -->
|
||||
<string name="char_name_collin">Коллин</string>
|
||||
<string name="char_name_filch">Стыр</string>
|
||||
<string name="char_name_lily">Лили</string>
|
||||
<string name="char_name_maginos">Магикус</string>
|
||||
<string name="char_name_nez">Нез</string>
|
||||
<string name="char_name_tilda">Тильда</string>
|
||||
|
||||
<!-- Campaign Types -->
|
||||
<string name="campaign_name_s_a_r">Горесть и поминовение</string>
|
||||
|
||||
<!-- Achievements -->
|
||||
<string name="ach_name_maggie">Дружба тётушки Мэгги</string>
|
||||
<string name="ach_name_van_brush">Щётка Ванестры</string>
|
||||
<string name="ach_name_king">Король</string>
|
||||
<string name="ach_name_horn_claw">Коготь Мышегуба</string>
|
||||
<string name="ach_name_catnip">Кошачья мята</string>
|
||||
|
||||
<!-- Character Types -->
|
||||
<string name="char_type_warrior">Воин</string>
|
||||
<string name="char_type_leader">Лидер</string>
|
||||
<string name="char_type_mystic">Мистик</string>
|
||||
<string name="char_type_scamp">Плут</string>
|
||||
<string name="char_type_tinkerer">Изобретатель</string>
|
||||
<string name="char_type_archer">Лучник</string>
|
||||
<string name="char_type_healer">Целитель</string>
|
||||
<string name="char_type_maginos">Магикус</string>
|
||||
|
||||
<!-- Abilities -->
|
||||
<string name="ability_firstaid">Первая помощь</string>
|
||||
<string name="ability_chainlighting">Цепная молния</string>
|
||||
<string name="ability_mysticblast">Мифический взрыв</string>
|
||||
<string name="ability_majorheal">Великое исцеление</string>
|
||||
<string name="ability_feint">Боевая готовность</string>
|
||||
<string name="ability_battlesqueak">Боевой писк</string>
|
||||
<string name="ability_battleleader">Боевой лидер</string>
|
||||
<string name="ability_settrap">Установка капканов</string>
|
||||
<string name="ability_fortify">Концентрация</string>
|
||||
<string name="ability_cure">Излечение</string>
|
||||
<string name="ability_knifestrike">Удар исподтишка</string>
|
||||
<string name="ability_find">Целеустремленность</string>
|
||||
<string name="ability_dodge">Прыжок</string>
|
||||
<string name="ability_thundersqueak">Апокалиписк</string>
|
||||
<string name="ability_backslash">Натиск</string>
|
||||
<string name="ability_mysticbolt">Мистическая стрела</string>
|
||||
<string name="ability_inspire">Воодушевление</string>
|
||||
<string name="ability_keeneye">Зоркий глаз</string>
|
||||
<string name="ability_meeps">Уф</string>
|
||||
<string name="ability_invisibility">Невидимость</string>
|
||||
<string name="ability_accurateshot">Меткий выстрел</string>
|
||||
<string name="ability_aimedshot">Прицельный выстрел</string>
|
||||
<string name="ability_powershot">Мощный выстрел</string>
|
||||
<string name="ability_prempshot">Предупредительный выстрел</string>
|
||||
<string name="ability_resolve">Защитная стойка</string>
|
||||
<string name="ability_protect">Оборона</string>
|
||||
<string name="ability_giveorder">Командный голос</string>
|
||||
<string name="ability_energyrush">Прилив сил</string>
|
||||
|
||||
<!-- UI text -->
|
||||
<string name="dialog_confirm">ОК</string>
|
||||
<string name="dialog_add">Добавить</string>
|
||||
<string name="dialog_create">Создать</string>
|
||||
<string name="dialog_yes">Да</string>
|
||||
<string name="dialog_no">Нет</string>
|
||||
<string name="char_item_header">Снаряжение:</string>
|
||||
<string name="party_item_header">Достижения кампании</string>
|
||||
<string name="ability_item_header">Способности</string>
|
||||
<string name="campaign_activity">Кампании</string>
|
||||
<string name="campaign_chapter">Главе</string>
|
||||
<string name="campaign_name_request">Пожалуйста задайте кампании уникальное имя:</string>
|
||||
<string name="campaign_name_blank">Имя не может быть пустым!</string>
|
||||
<string name="character_activity">Детали персонажа</string>
|
||||
<string name="character_ability_request">Пожалуйста, выбирите способность:</string>
|
||||
<string name="character_ability_exists">У данного персонажа уже есть такая способность.</string>
|
||||
<string name="character_item_request">Укажите название снаряжения:</string>
|
||||
<string name="character_item_blank">Название не может быть пустым!</string>
|
||||
<string name="campaign_details_Activity">Детали игры</string>
|
||||
<string name="player_name_request">Имя нового игрока:</string>
|
||||
<string name="player_name_blank">Имя не может быть пустым!</string>
|
||||
<string name="player_name_dup">Имя должно быть уникальным!</string>
|
||||
<string name="achievement_add_request">Пожалуйста, выберите достижение:</string>
|
||||
<string name="achievement_dup">Может быть только одно достижение каждого типа.</string>
|
||||
<string name="character_add_request">Пожалуйста выберите персонажа и игрока:</string>
|
||||
<string name="character_player_blank">Игрок не выбран. Возможно, его нужно сначала создать.</string>
|
||||
<string name="players_activity">Настроить игроков</string>
|
||||
<string name="character_game_dup">Не может быть двух одинаковых персонажей.</string>
|
||||
<string name="remove_player_confirm_1">"Удаляем игрока "</string>
|
||||
<string name="remove_player_confirm_2">" сначала нужно удалить всех персонажей игрока. Вы все еще хотите продолжить?"</string>
|
||||
<string name="remove_empty_player_confirm">"Вы хотите удалить игрока: "</string>
|
||||
<string name="remove_character_confirm">"Вы хотите удалить персонажа: "</string>
|
||||
<string name="remove_campaign_confirm">"Вы хотите удалить кампанию: "</string>
|
||||
<string name="remove_ability_confirm">"Вы хотите удалить способность: "</string>
|
||||
<string name="remove_item_confirm">"Вы хотите удалить снаряжение: "</string>
|
||||
<string name="remove_achievement_confirm">"Вы хотите удалить достижение: "</string>
|
||||
<string name="add_campaign">Добавить кампанию</string>
|
||||
<string name="add_character">Добавить персонажа</string>
|
||||
<string name="add_player">Добавить игрока</string>
|
||||
<string name="add_achievement">Добавить достижение</string>
|
||||
<string name="manage_players">Настроить игроков</string>
|
||||
<string name="add_ability">Добавить способность</string>
|
||||
<string name="add_held_item">Добавить снаряжение</string>
|
||||
|
||||
|
||||
</resources>
|
||||
@@ -2,7 +2,109 @@
|
||||
<string name="app_name">Mice and Mystics Tracker</string>
|
||||
<string name="title_activity_campaign_details">CampaignDetailsActivity</string>
|
||||
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
|
||||
<!-- Character Names -->
|
||||
<string name="char_name_collin">Collin</string>
|
||||
<string name="char_name_filch">Filch</string>
|
||||
<string name="char_name_lily">Lily</string>
|
||||
<string name="char_name_maginos">Maginos</string>
|
||||
<string name="char_name_nez">Nez</string>
|
||||
<string name="char_name_tilda">Tilda</string>
|
||||
|
||||
<!-- Campaign Types -->
|
||||
<string name="campaign_name_s_a_r">Sorrow and Remembrance</string>
|
||||
|
||||
<!-- Achievements -->
|
||||
<string name="ach_name_maggie">Miz Maggie</string>
|
||||
<string name="ach_name_van_brush">Vanestra\'s Brush</string>
|
||||
<string name="ach_name_king">King</string>
|
||||
<string name="ach_name_horn_claw">Cat\'s Horn Claw</string>
|
||||
<string name="ach_name_catnip">Catnip</string>
|
||||
|
||||
<!-- Character Types -->
|
||||
<string name="char_type_warrior">Warrior</string>
|
||||
<string name="char_type_leader">Leader</string>
|
||||
<string name="char_type_mystic">Mystic</string>
|
||||
<string name="char_type_scamp">Scamp</string>
|
||||
<string name="char_type_tinkerer">Tinkerer</string>
|
||||
<string name="char_type_archer">Archer</string>
|
||||
<string name="char_type_healer">Healer</string>
|
||||
<string name="char_type_maginos">Maginos</string>
|
||||
|
||||
<!-- Abilities -->
|
||||
<string name="ability_firstaid">First Aid</string>
|
||||
<string name="ability_chainlighting">Chain Lightning</string>
|
||||
<string name="ability_mysticblast">Mystic Blast</string>
|
||||
<string name="ability_majorheal">Major Heal</string>
|
||||
<string name="ability_feint">Feint</string>
|
||||
<string name="ability_battlesqueak">Battle Squeak</string>
|
||||
<string name="ability_battleleader">Battle Leader</string>
|
||||
<string name="ability_settrap">Set Trap</string>
|
||||
<string name="ability_fortify">Fortify</string>
|
||||
<string name="ability_cure">Cure</string>
|
||||
<string name="ability_knifestrike">Knife Strike</string>
|
||||
<string name="ability_find">Find</string>
|
||||
<string name="ability_dodge">Dodge</string>
|
||||
<string name="ability_thundersqueak">Thundersqueak</string>
|
||||
<string name="ability_backslash">Backslash</string>
|
||||
<string name="ability_mysticbolt">Mystic Bolt</string>
|
||||
<string name="ability_inspire">Inspire</string>
|
||||
<string name="ability_keeneye">Keen Eye</string>
|
||||
<string name="ability_meeps">Meeps</string>
|
||||
<string name="ability_invisibility">Invisibility</string>
|
||||
<string name="ability_accurateshot">Accurate Shot</string>
|
||||
<string name="ability_aimedshot">Aimed Shot</string>
|
||||
<string name="ability_powershot">Power Shot</string>
|
||||
<string name="ability_prempshot">Preemptive Shot</string>
|
||||
<string name="ability_resolve">Resolve</string>
|
||||
<string name="ability_protect">Protect</string>
|
||||
<string name="ability_giveorder">Give Order</string>
|
||||
<string name="ability_energyrush">Energy Rush</string>
|
||||
|
||||
<!-- UI text -->
|
||||
<string name="dialog_confirm">OK</string>
|
||||
<string name="dialog_add">Add</string>
|
||||
<string name="dialog_create">Create</string>
|
||||
<string name="dialog_yes">Yes</string>
|
||||
<string name="dialog_no">No</string>
|
||||
<string name="char_item_header">Items:</string>
|
||||
<string name="party_item_header">Party Achievements</string>
|
||||
<string name="ability_item_header">Abilities</string>
|
||||
<string name="campaign_activity">Campaigns</string>
|
||||
<string name="campaign_chapter">Chapter</string>
|
||||
<string name="campaign_name_request">Please give your new campaign a unique name:</string>
|
||||
<string name="campaign_name_blank">Can not have blank name!</string>
|
||||
<string name="character_activity">Character Details</string>
|
||||
<string name="character_ability_request">Please select the ability to be added:</string>
|
||||
<string name="character_ability_exists">That ability is already on this character.</string>
|
||||
<string name="character_item_request">Please name the item to mark as held:</string>
|
||||
<string name="character_item_blank">Can not have a blank item name!</string>
|
||||
<string name="campaign_details_Activity">Game Details</string>
|
||||
<string name="player_name_request">Please name the new player:</string>
|
||||
<string name="player_name_blank">Can not have a blank name!</string>
|
||||
<string name="player_name_dup">Can not have same name as another player!</string>
|
||||
<string name="achievement_add_request">Please select the achievement to add to party:</string>
|
||||
<string name="achievement_dup">Can not have more than one of same achievement.</string>
|
||||
<string name="character_add_request">Please select your character and controlling player:</string>
|
||||
<string name="character_player_blank">No player selected. Maybe try making one first.</string>
|
||||
<string name="players_activity">Manage Players</string>
|
||||
<string name="character_game_dup">Can not have two of same character in game.</string>
|
||||
<string name="remove_player_confirm_1">"Removing player "</string>
|
||||
<string name="remove_player_confirm_2">" must first remove all characters owned by player. Do you want to continue still?"</string>
|
||||
<string name="remove_empty_player_confirm">"Do you want to remove player: "</string>
|
||||
<string name="remove_character_confirm">"Do you want to remove character: "</string>
|
||||
<string name="remove_campaign_confirm">"Do you want to remove campaign: "</string>
|
||||
<string name="remove_ability_confirm">"Do you want to remove ability: "</string>
|
||||
<string name="remove_item_confirm">"Do you want to remove item: "</string>
|
||||
<string name="remove_achievement_confirm">"Do you want to remove achievement: "</string>
|
||||
<string name="add_campaign">Add Campaign</string>
|
||||
<string name="add_character">Add Character</string>
|
||||
<string name="add_player">Add Player</string>
|
||||
<string name="add_achievement">Add Achievement</string>
|
||||
<string name="manage_players">Manage Players</string>
|
||||
<string name="add_ability">Add Ability</string>
|
||||
<string name="add_held_item">Add Held Item</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -5,7 +5,8 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.1.1'
|
||||
classpath 'com.android.tools.build:gradle:2.2.2'
|
||||
classpath "io.realm:realm-gradle-plugin:1.1.1"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
||||
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
||||
#Wed Apr 10 15:27:10 PDT 2013
|
||||
#Tue Aug 16 18:39:03 EDT 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
||||
|
||||
Reference in New Issue
Block a user