Skip to content

Instantly share code, notes, and snippets.

@shiki
Created February 14, 2019 22:38
Show Gist options
  • Save shiki/7d850e0a637b86e3738d5f3a030600eb to your computer and use it in GitHub Desktop.
Save shiki/7d850e0a637b86e3738d5f3a030600eb to your computer and use it in GitHub Desktop.
WordPress-Android with local Automattic-Tracks-Android
diff --git a/libs/analytics/WordPressAnalytics/build.gradle b/libs/analytics/WordPressAnalytics/build.gradle
index ab9ca52842..f1de0bbf65 100644
--- a/libs/analytics/WordPressAnalytics/build.gradle
+++ b/libs/analytics/WordPressAnalytics/build.gradle
@@ -19,7 +19,7 @@ repositories {
}
dependencies {
- implementation 'com.automattic:tracks:1.1.5'
+ api project(':tracks')
implementation 'org.wordpress:utils:1.19.0'
lintChecks 'org.wordpress:lint:1.0.1'
diff --git a/settings.gradle b/settings.gradle
index 13bc3e09be..6b01f2da6a 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -15,3 +15,6 @@ if (properties.getOrDefault('wp.BUILD_GUTENBERG_FROM_SOURCE', false).toBoolean()
include ':react-native-gutenberg-bridge'
project(':react-native-gutenberg-bridge').projectDir = new File(rootProject.projectDir, 'libs/gutenberg-mobile/react-native-gutenberg-bridge/android')
}
+
+include ':tracks'
+project(':tracks').projectDir = new File(rootProject.projectDir, '../Automattic-Tracks-Android/AutomatticTracks')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment