From bc962f2e65f867a426f1711d7cbf3ed8eb35e938 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Thu, 21 Mar 2024 15:03:52 +0100 Subject: [PATCH] ios info properties and assets --- templates/ios-make/Makefile | 2 +- templates/ios-make/project.yml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/ios-make/Makefile b/templates/ios-make/Makefile index 78ff680..ae15b94 100644 --- a/templates/ios-make/Makefile +++ b/templates/ios-make/Makefile @@ -54,4 +54,4 @@ clean: PERCENT := % $(SOURCES_OUT): build/gen/src/%: $$(filter $$(PERCENT)/%,$$(SOURCES)) | build/gen/src - cp $^ $@ + cp -R $^ $@ diff --git a/templates/ios-make/project.yml b/templates/ios-make/project.yml index b963bef..7887ef2 100644 --- a/templates/ios-make/project.yml +++ b/templates/ios-make/project.yml @@ -37,7 +37,14 @@ targets: {{?}} info: path: Info.plist -{{?it.product.buses.filter(x => x.type == "audio" && x.direction == "input").length > 0}} +{{?(it.product.buses.filter(x => x.type == "audio" && x.direction == "input").length > 0) || (it.ios_make && it.ios_make.infoProperties)}} properties: +{{?it.product.buses.filter(x => x.type == "audio" && x.direction == "input").length > 0}} NSMicrophoneUsageDescription: Need audio input for processing sound {{?}} +{{?it.ios_make && it.ios_make.infoProperties}} +{{~it.ios_make.infoProperties :p}} + {{=p.key}}: {{=p.value.toString()}} +{{~}} +{{?}} +{{?}}