x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] Android $S(PackageName) APL variable not available in 4.12

Finding that the APL script variable PackageName is no longer available in 4.12 or at least I am getting build errors telling me it's missing. Is this expected? If so is there an accepted way to access the Android package name in APL script?

Product Version: Not Selected
Tags:
more ▼

asked Sep 16 '16 at 05:32 PM in Packaging & Deployment

avatar image

Answers.Archive STAFF
2k 212 318 698

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Sep 16 '16 at 05:34 PM by AndrewHurley for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

This wasn't ever exposed in the past. The best way to get it is from the AndoidManifest.xml in androidManifestUpdates:

It should be the first thing you do in the section.

more ▼

answered Sep 16 '16 at 05:33 PM

avatar image

Answers.Archive STAFF
2k 212 318 698

avatar image Answers.Archive STAFF Sep 16 '16 at 05:33 PM

Thanks Chris. I must've added the support for the PackageName from my own purposes at some point. The use of the setStringFromAttribute call seems more appropriate and works quite well.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question