Skip to content

Commit

Permalink
Fixed bad paths due to new Android file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gokr committed May 28, 2018
1 parent 3201850 commit 5d4040a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/after_prepare_android.js
Expand Up @@ -7,10 +7,10 @@ module.exports = function(context)
var UTIL = require('./util.js')

// Insert version info into target index.html.
UTIL.insertVersionInfo(context, './platforms/android/assets/www/index.html')
UTIL.insertVersionInfo(context, './platforms/android/app/src/main/assets/www/index.html')

// Insert version info into target app.js.
UTIL.insertVersionInfo(context, './platforms/android/assets/www/js/app.js')
UTIL.insertVersionInfo(context, './platforms/android/app/src/main/assets/www/js/app.js')

// Get application ID.
var appID = UTIL.getAppID(context)
Expand All @@ -29,7 +29,7 @@ module.exports = function(context)
var packagePath = appID.replace(/\./g, '/')

// Path to where MainActivity.java is to be written.
var fullDestPath = './platforms/android/src/' + packagePath + '/MainActivity.java'
var fullDestPath = './platforms/android/app/src/main/java/' + packagePath + '/MainActivity.java'

// Write MainActivity.java to destination.
UTIL.writeFileUTF8(fullDestPath, data)
Expand Down

0 comments on commit 5d4040a

Please sign in to comment.