Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #35

Merged
merged 198 commits into from
Oct 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
1727060
Add files via upload
I-am-Erk Oct 4, 2019
4194498
Merge branch 'master' of github.com:I-am-Erk/Cataclysm-DDA
I-am-Erk Oct 4, 2019
50bc2fb
Merge pull request #1 from CleverRaven/master
mqrause Oct 12, 2019
aeb0092
make solar panels repairable
Oct 13, 2019
2a19b13
Martial Arts Rebalance for Taekwondo
Hymore246 Oct 13, 2019
24a5f9f
Add pain and fatigue to the morale window
AlexMooney Oct 13, 2019
f1ee746
take_weapon has priority over disarm
Hymore246 Oct 13, 2019
af88631
Switched the Stats and Traits tab in the character creation screen
Xanderga Oct 13, 2019
ee3e2af
vehicles: allow multiple vehicles on a bike rack
mlangsdorf Oct 13, 2019
a39bd74
Check for duplicate entries in active_npc before inserting.
ipcyborg Oct 14, 2019
9f16150
Fix for item variable
Hymore246 Oct 14, 2019
0b05e96
Fixed targeting UI issue for reach attack.
ipcyborg Oct 14, 2019
08e1994
changed celery volume to better reflect the mass-to-volume ratio in r…
y2s82 Oct 14, 2019
5c42a73
Astyle fix
Hymore246 Oct 14, 2019
f944bb6
add tele_sight to itemgroups
snipercup Oct 14, 2019
944550e
removes extra capacity
Oct 14, 2019
112681d
Fix disabled limb check for bicycles
AlexMooney Oct 14, 2019
9dcb06b
Mythological replicas work with martial arts
TheShadowFerret Oct 15, 2019
f236056
Astyle fix again
Hymore246 Oct 15, 2019
cff613d
mon_centipede looks like mon_centipede_giant
barsoosayque Oct 15, 2019
7e216c3
Merge pull request #34711 from Hymore246/rebalance-taekwondo
Rivet-the-Zombie Oct 15, 2019
4836503
Fixed speed indicator overlapping stamina indicator
Night-Pryanik Oct 15, 2019
1c1c7b4
Merge pull request #34766 from barsoosayque/json/centipede-looks-like
ZhilkinSerg Oct 15, 2019
ec0fa17
Fuji's Military Professions Mod (#34767)
NotFuji Oct 15, 2019
1dac8a6
Fixed inactive incendiary grenades not exploding if thrown in fire (#…
Night-Pryanik Oct 15, 2019
bb3361e
Merge pull request #34771 from Night-Pryanik/fix-speed-indicator-over…
ZhilkinSerg Oct 15, 2019
31ecb67
Running/crouching while swimming will result in faster/slower swim sp…
Night-Pryanik Oct 15, 2019
142a406
Merge pull request #34759 from AlexMooney/fix_broken_limb_check
ZhilkinSerg Oct 15, 2019
cf395a3
Merge pull request #34755 from snipercup/add-tele_sight-to-itemgroups
ZhilkinSerg Oct 15, 2019
29c6db5
Merge pull request #34750 from y2s82/issue-34556
ZhilkinSerg Oct 15, 2019
6c6b1d4
Tweaked NPC "Trade how many" menu
Night-Pryanik Oct 15, 2019
83c0755
Revert "add tele_sight to itemgroups"
ZhilkinSerg Oct 15, 2019
c7ef9a0
Merge pull request #34775 from CleverRaven/revert-34755-add-tele_sigh…
ZhilkinSerg Oct 15, 2019
e3b9973
Fix astyle regression (2019-10-15) (#34772)
ZhilkinSerg Oct 15, 2019
6dd7488
Merge pull request #34743 from ipcyborg/fix-25329-active-npc-dup
ZhilkinSerg Oct 15, 2019
ecfca46
Changelog thru october (#34731)
kevingranade Oct 15, 2019
9e0c2a2
Crafting display infinite (#34726)
Ramza13 Oct 15, 2019
637fed5
Merge pull request #34729 from Siersha/Switch-traits-and-tabs-in-char…
ZhilkinSerg Oct 15, 2019
8e7cb2b
Add monsters to railroad station
snipercup Oct 15, 2019
f162df9
Usuable not dirty bionics in inv always green
RDru Oct 15, 2019
67814e8
Remove unneeded code from read_do_turn
KnightosMaster Oct 15, 2019
fc5fb13
add roof, landscaping to house_w_2
curstwist Oct 15, 2019
7a241c6
Martial Arts Rebalance for Tai Chi
Hymore246 Oct 15, 2019
0b2f70a
Fix repair activity for tools in vehicle
ifreund Oct 15, 2019
715c76c
Fix changelog generator not fetching all PR data
KurzedMetal Oct 15, 2019
b5f38ef
Updated type section of technique description
Hymore246 Oct 15, 2019
c21a3ab
move clothes item_groups
curstwist Oct 16, 2019
60f84ab
BUG: Fix redundancy error in cattail-jelly recipe
Oddant1 Oct 16, 2019
2ba91be
Prevent counterattacks if tired or dead (#34793)
Hymore246 Oct 16, 2019
62de9e2
Merge pull request #34797 from Oddant1/cattail-jelly-error
Rivet-the-Zombie Oct 16, 2019
acfdd2b
Fix immersion suit Iuse
John-Candlebury Oct 16, 2019
460d063
Merge pull request #34801 from John-Candlebury/suitfix
ZhilkinSerg Oct 16, 2019
932b8c7
Merge pull request #34794 from Hymore246/technique-type-desc
ZhilkinSerg Oct 16, 2019
6566b00
Merge pull request #34796 from curstwist/move-clothes-item_groups-to-…
ZhilkinSerg Oct 16, 2019
48624df
Merge pull request #34791 from ifreund/vehicle-iuse-location-fix
ZhilkinSerg Oct 16, 2019
d0b1d81
Merge pull request #34787 from KnightosMaster/fix_oostamina_error
ZhilkinSerg Oct 16, 2019
24c9b50
Merge pull request #34788 from curstwist/add-roof-and-landscapeing-to…
ZhilkinSerg Oct 16, 2019
b85051e
Merge pull request #34786 from RDru/bionic_inv_colors
ZhilkinSerg Oct 16, 2019
e07aaac
finish reorganizing furniture.json (#34758)
curstwist Oct 16, 2019
94104c6
change crossed_threshold() scope and test_crossing_threshold() parame…
KorGgenT Oct 16, 2019
b7a73b1
Migrate move mode and related code from player (#34762)
ifreund Oct 16, 2019
772f8c6
Merge pull request #34778 from Night-Pryanik/NPC-trade-menu
ZhilkinSerg Oct 16, 2019
b914b50
Allow auto targeting mode for turrets only with installed turret cont…
Night-Pryanik Oct 16, 2019
43dbce7
Changed how unarmed xp is calculated (#34723)
Xanderga Oct 16, 2019
5707490
Merge pull request #34749 from ipcyborg/fix-16400-reach-attack
ZhilkinSerg Oct 16, 2019
36387eb
Merge pull request #34756 from Fris0uman/no_extra_capacity
ZhilkinSerg Oct 16, 2019
080fc8d
Merge pull request #34765 from LaVeyanFiend/MythoRepMartials
ZhilkinSerg Oct 16, 2019
cec36d6
Eat menu: Display volume per serving.
OzoneH3 Oct 16, 2019
0c68685
Fix: Dialogs not showing while tailoring.
OzoneH3 Oct 16, 2019
5fc6532
Merge pull request #34804 from OzoneH3/repair_msg
ZhilkinSerg Oct 16, 2019
08353e3
Magiclysm - Introducing Channel Wands and Disposable Wands (#34653)
foulman Oct 16, 2019
9373c7e
Adds new styles to Close Quarters Battle CBM
Hymore246 Oct 17, 2019
4489e25
Merge pull request #34803 from OzoneH3/eat_vol
Rivet-the-Zombie Oct 17, 2019
5f4a2a6
More realistic contents of bots and turrets
Night-Pryanik Oct 17, 2019
a324097
Updated disassembling recipes for broken bots and turrets
Night-Pryanik Oct 17, 2019
723e369
Reverted adding robot controls to bots
Night-Pryanik Oct 17, 2019
d4766dc
Updated Modular Turrets mod
Night-Pryanik Oct 17, 2019
1ac3969
Followers show predicted training level
Vollinger Oct 17, 2019
4093efe
Adjust blanket deconstruct recipe time
snipercup Oct 17, 2019
201ecc0
Updated Android build process (2019-10-16) (#34806)
ZhilkinSerg Oct 17, 2019
f40e7c2
Add adult black dragon to dragon lair (#34809)
curstwist Oct 17, 2019
cb8747f
Change scope of rooted() and dependent functions (#34811)
KorGgenT Oct 17, 2019
8ab1f9b
add roof, landscaping and cosmetic upgrades to house_w_3 (#34810)
curstwist Oct 17, 2019
9540df0
Down mattress Typo fix and makes it interchangeable component as matt…
Maleclypse Oct 17, 2019
c37820d
Fix the density of Oxygen Cylinders (#34798)
GreaterGoodest Oct 17, 2019
8bb8467
Fix "cart produces seed when on a crop tile" (#34784)
Fris0uman Oct 17, 2019
3307e8a
Merge pull request #34820 from Vollinger/follower-training
ZhilkinSerg Oct 17, 2019
f13b854
Free power (#34773)
karthas077 Oct 17, 2019
a5f9312
Broken limb debuffs (#34682)
Ramza13 Oct 17, 2019
4367e98
Merge pull request #34812 from Hymore246/cqb-cbm-styles
ZhilkinSerg Oct 17, 2019
93274e6
Merge pull request #34819 from snipercup/Adjust-blanket-deconstruct-r…
ZhilkinSerg Oct 17, 2019
296124b
Give crowbars and tools with hammers ability to pull out nails (#34822)
reed501 Oct 17, 2019
7d68dcc
Merge pull request #34792 from KurzedMetal/changelog_generator_fix
ZhilkinSerg Oct 17, 2019
5b03f7b
Merge pull request #34783 from snipercup/Add-monsters-to-railroad-sta…
ZhilkinSerg Oct 17, 2019
8f0f6bb
Replace three ascii dots with the unicode ellipsis (#34777)
Qrox Oct 17, 2019
2afa1dd
Optimize ranged_balance.cpp (#34489)
SlackingSleeper Oct 17, 2019
8546e9d
Muscle powered CBM code clean up (#34706)
Fris0uman Oct 17, 2019
d01c3e7
Add wretched pukers (#34396)
Oct 17, 2019
428573f
Update specials.json
curstwist Oct 17, 2019
ee848d1
Mainline/jsonify megastore (#34625)
chaisawlajatang Oct 18, 2019
7e52b20
Basements update (#34657)
chaisawlajatang Oct 18, 2019
a74b2b6
Vehicle autopilot part for patrolling / auto-farming etc (#34616)
Oct 18, 2019
557a387
Bionic UI: power display in kJ, J, mJ (#34753)
RDru Oct 18, 2019
ac21c88
Power display (#34754)
Fris0uman Oct 18, 2019
43c8569
Update tele_sight description (#34802)
snipercup Oct 18, 2019
c7fc9cb
Appease clang (#34823)
ZhilkinSerg Oct 18, 2019
430987c
move player::fall_asleep() and dependent functions to Character scope…
KorGgenT Oct 18, 2019
9658c41
Merge pull request #34826 from curstwist/isherwood-fix
ZhilkinSerg Oct 18, 2019
b1ab162
Merge pull request #34718 from AlexMooney/pain_fatigue_on_morale_screen
ZhilkinSerg Oct 18, 2019
4de26dc
Merge pull request #34790 from Hymore246/rebalance-tai-chi
Rivet-the-Zombie Oct 18, 2019
e31b762
Simplify generic multiple activity handler (#34102)
ipcyborg Oct 18, 2019
1471f08
Merge pull request #34740 from mlangsdorf/multiracks
ZhilkinSerg Oct 18, 2019
871727e
Fix clang-tidy warnings
Qrox Oct 18, 2019
93d2f90
Update Android dependencies
ZhilkinSerg Oct 18, 2019
636f49f
Force to make activity fullscreen
EhNuhc Oct 18, 2019
b48c77c
Merge pull request #34838 from Qrox/fix-clang-tidy-warnings
ZhilkinSerg Oct 18, 2019
1f0b039
Enable the clang-tidy text style check (#34837)
Qrox Oct 18, 2019
e19d21f
Merge pull request #34839 from ZhilkinSerg/android-deps-2019-10-18
ZhilkinSerg Oct 18, 2019
d816955
Merge pull request #34841 from EhNuhc/patch-1
ZhilkinSerg Oct 18, 2019
be551e2
fix fake_spell json saving error
KorGgenT Oct 18, 2019
f831216
Yet another down_matress fix
snipercup Oct 18, 2019
853a2b6
Martial Arts Rebalance for Tiger Kung Fu
Hymore246 Oct 18, 2019
16748fc
Merge pull request #34846 from snipercup/Yet-another-down_matress-fix
ZhilkinSerg Oct 18, 2019
a1e1911
Python tools fixes (#34842)
mlangsdorf Oct 18, 2019
7746768
Allow the shoddy laser rifle to use all heavy batteries as ammo (#34829)
cmazzullo Oct 18, 2019
38e5059
fix for consuming items in containter outside inventory
RDru Oct 18, 2019
9a3c316
Merge pull request #34849 from RDru/fix_consuming
ZhilkinSerg Oct 18, 2019
f656587
Merge pull request #34843 from KorGgenT/fake-spell-saving-fix
ZhilkinSerg Oct 18, 2019
fc89d2a
Fix for items weighting below 1g (#34835)
RDru Oct 18, 2019
3b79f53
Lifestraw (#34390)
Maleclypse Oct 18, 2019
d19562e
Fix incorrectly calculated vitamin values
Oct 18, 2019
17190b5
Made the Sledge Hammer a two-handed weapon.
cmazzullo Oct 19, 2019
519ffa3
Added "needs_charges requirement to ember carrier.
cmazzullo Oct 19, 2019
8d710a3
MAINT: Change light/powerdraw values of various handheld lights
Oddant1 Oct 19, 2019
556b355
Merge pull request #34712 from mqrause/repairable_solar_panels
Rivet-the-Zombie Oct 19, 2019
98bee38
Correct behavior of time based activites
ifreund Oct 19, 2019
6c74950
Routine i18n updates on 19 Oct 2019
BrettDong Oct 19, 2019
e88e998
Standardized chemical powders for 1 unit = 1/100 mol (part 1) (#34833)
RDru Oct 19, 2019
8a2f079
Merge pull request #34853 from cmazzullo/issue34827-sledgehammer_2h_tag
ZhilkinSerg Oct 19, 2019
55d1190
Merge pull request #34852 from DaviBones/vitamin-inheritance-bugfix
ZhilkinSerg Oct 19, 2019
525e8fb
Merge pull request #34856 from cmazzullo/issue34520-ember_carrier_fix
ZhilkinSerg Oct 19, 2019
bdc00e0
Fix spring weight (#34857)
snipercup Oct 19, 2019
ac2700e
Merge pull request #34859 from Oddant1/change-lights
ZhilkinSerg Oct 19, 2019
35f2181
Add roof, landscape to house_w_5 (#34863)
curstwist Oct 19, 2019
6c5d129
Merge pull request #34868 from BrettDong/i18n
ZhilkinSerg Oct 19, 2019
02be33c
Merge pull request #34867 from ifreund/time-based-act-fix
ZhilkinSerg Oct 19, 2019
890a433
Add roof, landscape to house w 4 (#34848)
curstwist Oct 19, 2019
2e11d8d
Standardize electric motors (#34500)
ArcanErasmus Oct 19, 2019
2ff9233
Merge remote-tracking branch 'upstream/master'
I-am-Erk Oct 20, 2019
5f2c48e
add some looks-like entries to common vehicle parts
I-am-Erk Oct 20, 2019
f7c73e0
Merge pull request #34817 from Night-Pryanik/tu
Rivet-the-Zombie Oct 20, 2019
0ba5abf
fix hoe consistency
Oct 20, 2019
bdea57b
Removed leftovers of hardcoded silo mapgen
Night-Pryanik Oct 20, 2019
cb463ff
Disallow "name_plural" when "name" is not a string
Qrox Oct 20, 2019
1bfe7c5
Magiclysm - Magical Clothing (#34658)
foulman Oct 20, 2019
de1b21d
Allow low strength characters to drag furniture
anothersimulacrum Oct 20, 2019
7717d18
Merge pull request #34894 from Qrox/fix-name-plural
ZhilkinSerg Oct 20, 2019
7419d15
Merge pull request #34892 from Night-Pryanik/silo-fix
ZhilkinSerg Oct 20, 2019
90d9090
Decrease the weight of kevlar_plate from 360 to 300g (#34895)
snipercup Oct 20, 2019
032e6ee
Change pot recipe components to steel_standard (#34891)
snipercup Oct 20, 2019
72849a4
Increase shopping bag weight from 2 to 5 g (#34889)
snipercup Oct 20, 2019
e00b598
Give weight to cig butt, cigar butt and joint roach (#34879)
snipercup Oct 20, 2019
4089955
Change bottle jack weight from 7kg to 5kg (#34896)
snipercup Oct 20, 2019
8e5ba60
Encapsulate stim and move it to Character (#34844)
Fris0uman Oct 20, 2019
3f83c82
Merge pull request #34888 from davidpwbrown/hoe_consistency
ZhilkinSerg Oct 20, 2019
e5f61fe
JSONize inheritance of flags via crafting (#34825)
Davi-DeGanne Oct 20, 2019
61f714c
fix garage door, add vehicle spawn
curstwist Oct 20, 2019
c3eece5
compose: handle multiple entries in a single `tile_entry.json` file
mlangsdorf Oct 20, 2019
9ed8dda
Fix typo in Android build properties
ZhilkinSerg Oct 20, 2019
820aa8d
Magicylsm: NPCs can now teach spells (#34709)
Oct 20, 2019
8c681b2
Merge pull request #34900 from curstwist/fix-garage,-add-vehicle-spaw…
ZhilkinSerg Oct 20, 2019
4a0e242
Merge pull request #34901 from mlangsdorf/compose_load_arrays
ZhilkinSerg Oct 20, 2019
002d740
Merge pull request #34882 from anothersimulacrum/low-drag
ZhilkinSerg Oct 20, 2019
d5e387a
iuse_actor::can_use parameter change to Character and dependent funct…
KorGgenT Oct 20, 2019
acc520a
fix for construction not resuming
Oct 20, 2019
a4fd594
Merge pull request #34909 from davidpwbrown/construction_fix
ZhilkinSerg Oct 21, 2019
f5d33a2
Add looks_like to wooden panel (#34905)
snipercup Oct 21, 2019
58d5940
Increase bear trap weight and components (#34904)
snipercup Oct 21, 2019
0490a5a
Fix the alignment of many unicode strings (#34886)
Qrox Oct 21, 2019
c923142
Merge pull request #34902 from CleverRaven/ZhilkinSerg-android-fix-ty…
ZhilkinSerg Oct 21, 2019
330984b
Merge pull request #34847 from Hymore246/rebalance-tiger
Rivet-the-Zombie Oct 21, 2019
7787bc0
Add mutagen crafting components to underground lab (#34384)
zachary-kaelan Oct 21, 2019
e3e2452
Add forging requirements to beartrap crafting
kevingranade Oct 21, 2019
7e09245
Adds Butterfly Swords to more martial arts styles
Hymore246 Oct 22, 2019
3a3e8f1
Merge pull request #34927 from CleverRaven/kevingranade-beartrap-need…
ZhilkinSerg Oct 22, 2019
0a07b30
Merge pull request #34929 from Hymore246/style-butterfly
ZhilkinSerg Oct 22, 2019
a71778a
Move morale and related functions to Character (#34911)
ifreund Oct 22, 2019
b37e5a2
Add result for "no seed" farm zone type to avoid invalid recipe error…
Oct 22, 2019
7a02eb5
Merge pull request #34881 from I-am-Erk/vp-lookslike
Rivet-the-Zombie Oct 22, 2019
4cfc071
Serialize requirements for fetch activity (#34907)
Oct 22, 2019
6d11156
Fix CBM not drawing power (#34862)
Fris0uman Oct 22, 2019
ae2ed10
Stupid Sexy Survivor: Synthetic Fabrics pt 2 (#34871)
tenmillimaster Oct 22, 2019
46ae118
The dissoluted devourer zombie (#34057)
free-coffee Oct 22, 2019
2e638ac
Replace fictional Taurus Pro .38 with Taurus Spectrum (#34666)
Oct 22, 2019
e941a73
Infrastructure for using vitamin system for toxins (#34695)
Davi-DeGanne Oct 22, 2019
7825679
Add infrastructure for restricting clothing mods (#34705)
Davi-DeGanne Oct 22, 2019
bb41c00
maps: rework collapsing to prevent weird lab collapses (#34866)
mlangsdorf Oct 22, 2019
f7e743c
Hamster Huey and the Gooey Kablooie: Mk 211 Raufoss and .50 BMG nerfs…
tenmillimaster Oct 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ misc-*,\
modernize-*,\
performance-*,\
readability-*,\
-cata-text-style,\
-bugprone-misplaced-widening-cast,\
-bugprone-narrowing-conversions,\
-bugprone-unused-return-value,\
Expand Down
153 changes: 101 additions & 52 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
def buildAsApplication = !buildAsLibrary
if (buildAsApplication) {
apply plugin: 'com.android.application'
}
else {
} else {
apply plugin: 'com.android.library'
}

Expand All @@ -23,7 +22,7 @@ if (localPropertiesFile.exists()) {
}

def keystorePropertiesFilename = 'keystore.properties'
if( localProperties.getProperty('keystorePropertiesFilename') != null ) {
if (localProperties.getProperty('keystorePropertiesFilename') != null) {
keystorePropertiesFilename = localProperties.getProperty("keystorePropertiesFilename")
}

Expand All @@ -37,85 +36,135 @@ if (keystorePropertiesFile.exists()) {

def njobs = getProperty("j")

def localize = getProperty("localize").toBoolean()
def abi32 = getProperty("abi32").toBoolean()
def abi64 = getProperty("abi64").toBoolean()
def deps = getProperty("deps")
def override_version = getProperty("override_version")
def version_header_path = getProperty("version_header_path")

if (!abi32 && !abi64) {
throw new GradleException("Both `abi32` and `abi64` properties are set to false")
}
if (!file(deps).exists()) {
throw new GradleException("Dependencies file does not exist:" + deps)
}

if (!override_version.isEmpty()) {
if (version_header_path.isEmpty()) {
throw new GradleException("`version_header_path` cannot be empty when `override_version` is not empty")
} else {
println("Overriding version number to $override_version using path $version_header_path")
}
}

task unzipDeps(type: Copy) {
def zipFile = new File('./deps.zip')
println("Using dependencies file: $deps")
def zipFile = new File("$deps")
def outputDir = new File('.')
from zipTree(zipFile)
into outputDir
}

preBuild.dependsOn unzipDeps

switch(OperatingSystem.current()) {
case OperatingSystem.LINUX:
task makeLocalization(type: Exec) {
workingDir './../..'
commandLine 'make', 'localization', 'LANGUAGES=all'
}

preBuild.dependsOn makeLocalization
break
case OperatingSystem.WINDOWS:
task makeLocalization(type: Exec) {
workingDir './../..'
commandLine 'sh.exe', 'android/app/makelocalizations.sh'
task makeLocalization(type: Exec) {
if (localize) {
println("Building with localization'")
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
workingDir './../..'
commandLine 'make', 'localization', 'LANGUAGES=all'
break
case OperatingSystem.WINDOWS:
workingDir './../..'
commandLine 'sh.exe', 'android/app/makelocalizations.sh'
break
default:
workingDir './../..'
commandLine 'echo', 'Building without localization'
break
}

unzipDeps.dependsOn makeLocalization
break
} else {
workingDir './../..'
commandLine 'echo', 'Building without localization'
}
}

makeLocalization
unzipDeps.dependsOn makeLocalization
preBuild.dependsOn unzipDeps

android {
compileSdkVersion 28

if(OperatingSystem.current().isLinux()) {
exec {
workingDir './../..'
commandLine 'make', 'version'
if (override_version.isEmpty()) {
println("Generating version number to $version_header_path")
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
exec {
workingDir './../..'
commandLine 'make', 'version'
}
break
case OperatingSystem.WINDOWS:
exec {
workingDir './../..'
commandLine 'sh.exe', '-c', 'make version'
}
break
default:
exec {
workingDir './../..'
commandLine 'make', 'version'
}
break
}
}
if(OperatingSystem.current().isWindows()) {
} else {
println("Overriding version number to $override_version")
exec {
workingDir './../..'
commandLine 'sh.exe', '-c', 'make version'
commandLine 'echo', '#define VERSION $override_version', '>', '$version_header_path'
}
}

defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode Integer.valueOf(System.env.UPSTREAM_BUILD_NUMBER ?: 1 )
versionName new File('app/jni/src/version.h').text.split("\"")[1]
versionCode Integer.valueOf(System.env.UPSTREAM_BUILD_NUMBER ?: 1)
versionName new File("$version_header_path").text.split('\"')[1]
if (buildAsApplication) {
applicationId "com.cleverraven.cataclysmdda"
setProperty("archivesBaseName", "cataclysmdda-" + versionName)
}

splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
include "armeabi-v7a"
include "arm64-v8a"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk false
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
if (abi32) {
include "armeabi-v7a"
}
if (abi64) {
include "arm64-v8a"
}
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk false
}
}
}

externalNativeBuild {
ndkBuild {
arguments "APP_PLATFORM=android-21", "-j$njobs"
externalNativeBuild {
ndkBuild {
arguments "APP_PLATFORM=android-21", "-j$njobs"
}
}
}
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
if( keystoreProperties.getProperty('storeFile') != null ) {
if( file(keystoreProperties.getProperty('storeFile')).exists() ) {
if (keystoreProperties.getProperty('storeFile') != null) {
if (file(keystoreProperties.getProperty('storeFile')).exists()) {
release {
storeFile file(keystoreProperties.getProperty("storeFile"))
storePassword keystoreProperties.getProperty("storePassword")
Expand All @@ -131,7 +180,7 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if( signingConfigs.hasProperty("release") ) {
if (signingConfigs.hasProperty("release")) {
signingConfig signingConfigs.release
}
externalNativeBuild {
Expand Down
Binary file modified android/app/deps.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions android/app/src/main/java/org/libsdl/app/SDLActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ public void handleMessage(Message msg) {
} else {
int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_VISIBLE;
window.getDecorView().setSystemUiVisibility(flags);
window.addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
SDLActivity.mFullscreenModeActive = false;
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
SDLActivity.mFullscreenModeActive = true;
}
}
} else {
Expand Down
24 changes: 24 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,27 @@ org.gradle.jvmargs=-Xmx1536m
# This property controls the number of jobs sent by -j switch to ndk-build
# You can override this from the command line by passing "-Pj=#"
j=2

# This property controls whether build should be run with localization
# You can override this from the command line by passing "-Plocalize=#"
localize=true

# This property controls whether to build 32 bit ABI
# You can override this from the command line by passing "-Pabi32=#"
abi32=true

# This property controls whether to build 64 bit ABI
# You can override this from the command line by passing "-Pabi64=#"
abi64=true

# This property controls which dependencies file to use
# You can override this from the command line by passing "-Pdeps=#"
deps=./deps.zip

# This property controls which override version number to use
# You can override this from the command line by passing "-Poverride_version=#"
override_version=

# This property controls path where overriden version number header should be generated
# You can override this from the command line by passing "-pversion_header_path=#"
version_header_path=app/jni/src/version.h
2 changes: 1 addition & 1 deletion build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ then
cd android
# Specify dumb terminal to suppress gradle's constatnt output of time spent building, which
# fills the log with nonsense.
TERM=dumb ./gradlew assembleDebug -Pj=3
TERM=dumb ./gradlew assembleRelease -Pj=$num_jobs -Plocalize=false -Pabi32=false -Pabi64=true -Pdeps=/home/travis/build/CleverRaven/Cataclysm-DDA/android/app/deps.zip
else
make -j "$num_jobs" RELEASE=1 CCACHE=1 BACKTRACE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0

Expand Down
Loading