Skip to content

Commit

Permalink
Update Android project
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Feb 13, 2019
1 parent d5b4b53 commit be2f94c
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ plugins/android.json
plugins/ios.json
$RECYCLE.BIN/
ios/capacitor-cordova-ios-plugins/
android/capacitor-cordova-android-plugins/

.DS_Store
Thumbs.db
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation project(':capacitor-android-plugins')
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation project(':capacitor-cordova-android-plugins')
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.android.support:support-v4:27.1.1'
}

Expand Down
2 changes: 1 addition & 1 deletion android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN

apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {


Expand Down
45 changes: 45 additions & 0 deletions android/capacitor-cordova-android-plugins/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}

repositories {
google()
jcenter()
mavenCentral()
flatDir{
dirs 'src/main/libs', 'libs'
}
}

dependencies {
implementation fileTree(dir: 'src/main/libs', include: ['*.jar'])
implementation 'org.apache.cordova:framework:7.0.0'
// SUB-PROJECT DEPENDENCIES START

// SUB-PROJECT DEPENDENCIES END
}

// PLUGIN GRADLE EXTENSIONS START
apply from: "cordova.variables.gradle"
// PLUGIN GRADLE EXTENSIONS END
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
ext {
cdvMinSdkVersion = 21
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest package="capacitor.android.plugins"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:amazon="http://schemas.amazon.com/apk/res/android">
<application>

</application>

</manifest>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
6 changes: 2 additions & 4 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
include ':app'
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor/')
include ':capacitor-android-plugins'
project(':capacitor-android-plugins').projectDir = new File('../node_modules/@capacitor/cli/assets/capacitor-android-plugins/')
include ':capacitor-cordova-android-plugins'
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')

apply from: 'capacitor.settings.gradle'

0 comments on commit be2f94c

Please sign in to comment.