Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it a phonegap application? #6

Open
gianarb opened this issue Jan 13, 2015 · 0 comments
Open

is it a phonegap application? #6

gianarb opened this issue Jan 13, 2015 · 0 comments
Milestone

Comments

@gianarb
Copy link
Contributor

gianarb commented Jan 13, 2015

Generator will manage phonegap integration

package.json

  • grunt-phonegap-build
  • grunt-shell
  • grunt-contrib-compress

Gruntfile.js

grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-phonegap-build');

compress: {
    bin: {
        options: {
            archive: 'dist/upload.zip'
         },
        files: [
            {src: ['config.xml'], dest: '.'},
            {expand : true, cwd: 'bin/', src: ['**/*.*'], dest: '.'}
        ]
    },
    build: {
        options: {
            archive: 'dist/upload.zip'
        },
        files: [
            {src: ['config.xml'], dest: '.'},
            {expand : true, cwd: 'build/', src: ['**/*.*'], dest: '.'}
        ]
    }
},
"phonegap-build": {
      release: {
          options: {
              archive: "dist/upload.zip",
              "appId": "<%=credential.phonegap.appId %>",
              "user": {
                  "token": "<%=credential.phonegap.token %>"
              },keys: {
                  ios: { "password": "<%=credential.phonegap.keys.ios.password %>" },
                  android: { "key_pw": "<%=credential.phonegap.keys.android.key_pw %>", "keystore_pw": "<%=credential.phonegap.keys.android.keystore_pw %>" }
              },
              download: {
                  //ios: './dist/app.ipa',
                  android: './dist/app.apk'
              },
              pollRate : 10
          }
      }
    },
    shell: {
      install: {
        options: {
          stderr: true
        },
          command: [
              'adb install -r ./dist/app.apk'
          ].join('&&')
      },
      androidLog: {
        options: {
          stderr: true
        },
          command: [
            'adb logcat CordovaLog:* GCMBaseIntentService:* GCMBroadcastReceiver:*   PluginManager:* *:S'
          ].join('&&')
      }
    },

Credential.json

{
    "phonegap": {
        "appId": "",
        "token": "",
       "keys": {
         "ios": { "password": "" },
         "android": { "key_pw": "", "keystore_pw": "" }
    }    
}

Config.xml

Add config.xml

@gianarb gianarb self-assigned this Jan 13, 2015
@gianarb gianarb added this to the 0.0.1 milestone Jan 13, 2015
@gianarb gianarb removed their assignment Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant