Skip to content

Instantly share code, notes, and snippets.

@hypest
Created November 8, 2019 11:55
Show Gist options
  • Save hypest/2e82f6fbaf68898063f3fc5f50c8c6ed to your computer and use it in GitHub Desktop.
Save hypest/2e82f6fbaf68898063f3fc5f50c8c6ed to your computer and use it in GitHub Desktop.
Using Aztec from source in Gutenberg-mobile
diff --git a/android/build.gradle b/android/build.gradle
index 00832c50..e298f241 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -8,6 +8,13 @@ buildscript {
targetSdkVersion = 28
supportLibVersion = '28.0.0'
wordpressUtilsVersion = '1.22'
+ kotlinCoroutinesVersion = '1.1.0'
+ tagSoupVersion = '1.2.1'
+ glideVersion = '3.7.0'
+ picassoVersion = '2.5.2'
+ robolectricVersion = '3.5.1'
+ jUnitVersion = '4.12'
+ jSoupVersion = '1.11.3'
}
repositories {
google()
diff --git a/android/settings.gradle b/android/settings.gradle
index 22fa4e6d..e380404a 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -11,3 +11,13 @@ include ':react-native-gutenberg-bridge'
project(':react-native-gutenberg-bridge').projectDir = new File(rootProject.projectDir, '../react-native-gutenberg-bridge/android')
include ':app'
+
+def aztecSourceRoot = '../../../../../android/WordPress-Aztec-Android'
+
+include ':aztecdemo', ':aztec', ':glide-loader', ':wordpress-comments', ':wordpress-shortcodes', ':picasso-loader'
+project(':aztecdemo').projectDir = new File(rootProject.projectDir, "${aztecSourceRoot}/app")
+project(':aztec').projectDir = new File(rootProject.projectDir, "${aztecSourceRoot}/aztec")
+project(':glide-loader').projectDir = new File(rootProject.projectDir, "${aztecSourceRoot}/glide-loader")
+project(':picasso-loader').projectDir = new File(rootProject.projectDir, "${aztecSourceRoot}/picasso-loader")
+project(':wordpress-comments').projectDir = new File(rootProject.projectDir, "${aztecSourceRoot}/wordpress-comments")
+project(':wordpress-shortcodes').projectDir = new File(rootProject.projectDir, "${aztecSourceRoot}/wordpress-shortcodes")
diff --git a/react-native-aztec/android/build.gradle b/react-native-aztec/android/build.gradle
index 33e57573..1dd4305c 100644
--- a/react-native-aztec/android/build.gradle
+++ b/react-native-aztec/android/build.gradle
@@ -93,10 +93,11 @@ repositories {
}
dependencies {
- api ("com.github.wordpress-mobile.WordPress-Aztec-Android:aztec:$aztecVersion")
- api ("com.github.wordpress-mobile.WordPress-Aztec-Android:wordpress-shortcodes:$aztecVersion")
- api ("com.github.wordpress-mobile.WordPress-Aztec-Android:wordpress-comments:$aztecVersion")
- api ("com.github.wordpress-mobile.WordPress-Aztec-Android:glide-loader:$aztecVersion")
+ api project(':aztec')
+ api project(':wordpress-shortcodes')
+ api project(':wordpress-comments')
+ api project(':glide-loader')
+ api project(':picasso-loader')
api "org.wordpress:utils:$wordpressUtilsVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment