Skip to content

Commit

Permalink
Merge pull request #354 from davychhouk405/master
Browse files Browse the repository at this point in the history
A quick fix for iOS release build.
  • Loading branch information
trepidity committed Jan 26, 2018
2 parents c1069c5 + a58d4cf commit 8d2a9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RNSound/RNSound.m
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ -(NSDictionary *)constantsToExport {
player = [[AVAudioPlayer alloc] initWithContentsOfURL:fileNameUrl error:&error];
}
else {
fileNameUrl = [NSURL fileURLWithPath:[fileName stringByRemovingPercentEncoding]];
fileNameUrl = [NSURL URLWithString: fileName];
player = [[AVAudioPlayer alloc]
initWithContentsOfURL:fileNameUrl
error:&error];
Expand Down

0 comments on commit 8d2a9b9

Please sign in to comment.