Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
6a58d17b
Unverified
Commit
6a58d17b
authored
Oct 22, 2020
by
Pavitra Golchha
Committed by
GitHub
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support %packageName% token (#2315)
parent
31a8421c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java
...rver/src/com/google/appinventor/buildserver/Compiler.java
+12
-3
No files found.
appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java
View file @
6a58d17b
...
...
@@ -1075,7 +1075,10 @@ public final class Compiler {
}
for
(
String
permission
:
permissions
)
{
out
.
write
(
" <uses-permission android:name=\""
+
permission
+
"\" />\n"
);
out
.
write
(
" <uses-permission android:name=\""
+
permission
.
replace
(
"%packageName%"
,
packageName
)
// replace %packageName% with the actual packageName
+
"\" />\n"
);
}
if
(
isForCompanion
)
{
// This is so ACRA can do a logcat on phones older then Jelly Bean
...
...
@@ -1193,7 +1196,10 @@ public final class Compiler {
for
(
Map
.
Entry
<
String
,
Set
<
String
>>
metadataElementSetPair
:
metadataElements
)
{
Set
<
String
>
metadataElementSet
=
metadataElementSetPair
.
getValue
();
for
(
String
metadataElement
:
metadataElementSet
)
{
out
.
write
(
metadataElement
);
out
.
write
(
metadataElement
.
replace
(
"%packageName%"
,
packageName
)
// replace %packageName% with the actual packageName
);
}
}
}
...
...
@@ -1230,7 +1236,10 @@ public final class Compiler {
subelement
.
contains
(
"android.provider.Telephony.SMS_RECEIVED"
))
{
continue
;
}
out
.
write
(
subelement
);
out
.
write
(
subelement
.
replace
(
"%packageName%"
,
packageName
)
// replace %packageName% with the actual packageName
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment