Skip to content

Commit

Permalink
refactor: add end url end check
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Aug 14, 2024
1 parent 2587cd3 commit c71a1a9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ class UploadSymbolsPlugin implements Plugin<Project> {
throw new StopExecutionException("Please specify your server in countly block.")
}
String buildVersion = project.android.defaultConfig.versionName
String url = "${ext.server}/i/crash_symbols/upload_symbol"
String url = ext.server;
String path = "i/crash_symbols/upload_symbol";
// Ensure there is exactly one "/" between the base URL and the path
url = url.endsWith("/") ? url + path : url + "/" + path;
def filePath = "$project.buildDir/$ext.mappingFile"
logger.debug("uploadJavaSymbols, Version name:[ {} ], Upload symbol url:[ {} ], Mapping file path:[ {} ]", buildVersion, url, filePath)
File file = new File(filePath)
Expand Down

0 comments on commit c71a1a9

Please sign in to comment.