File tree 1 file changed +3
-1
lines changed
src/tasks/AndroidAppBuilder 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,6 @@ public ApkBuilder(TaskLoggingHelper logger)
338
338
string monodroidSource = ( IsLibraryMode ) ? "monodroid-librarymode.c" : "monodroid.c" ;
339
339
340
340
string cmakeLists = Utils . GetEmbeddedResource ( "CMakeLists-android.txt" )
341
- . Replace ( "%ProjectName%" , ProjectName )
342
341
. Replace ( "%MonoInclude%" , monoRuntimeHeaders )
343
342
. Replace ( "%NativeLibrariesToLink%" , nativeLibraries )
344
343
. Replace ( "%MONODROID_SOURCE%" , monodroidSource )
@@ -393,6 +392,9 @@ public ApkBuilder(TaskLoggingHelper logger)
393
392
if ( ! string . IsNullOrEmpty ( ProjectName ) && checkNumerics . IsMatch ( ProjectName ) )
394
393
ProjectName = checkNumerics . Replace ( ProjectName , @"_$1" ) ;
395
394
395
+ if ( ! string . IsNullOrEmpty ( ProjectName ) && ProjectName . Contains ( '-' ) )
396
+ ProjectName = ProjectName . Replace ( "-" , "_" ) ;
397
+
396
398
string packageId = $ "net.dot.{ ProjectName } ";
397
399
398
400
File . WriteAllText ( javaActivityPath ,
You can’t perform that action at this time.
0 commit comments