From 596f3aab152392a5dec4480b67ee9fc47e763c81 Mon Sep 17 00:00:00 2001 From: elliot Date: Tue, 3 Mar 2020 17:25:40 +0100 Subject: [PATCH] Release 1.0.0 --- .github/workflows/android.yml | 23 +++ .gitignore | 6 +- .idea/runConfigurations/build_aar.xml | 21 ++ .idea/runConfigurations/dispatcher_test.xml | 1 + CHANGELOG.md | 4 + LICENSE | 9 + Makefile | 22 +++ README.md | 34 ++++ build.gradle | 6 +- google-analytics-dispatcher/build.gradle | 46 ++--- google-analytics-dispatcher/jacoco.gradle | 89 +++++++++ google-analytics-dispatcher/libs/Batch.aar | Bin 620543 -> 0 bytes .../maven-publish.gradle | 153 +++++++++++++++ .../googleanalytics/BatchEventBuilder.java | 12 ++ .../GoogleAnalyticsDispatcher.java | 76 ++++---- .../GoogleAnalyticsRegistrar.java | 18 +- .../src/main/res/values/strings.xml | 3 - .../GoogleAnalyticsDispatcherTest.java | 180 +++++++++++------- gradle/wrapper/gradle-wrapper.properties | 4 +- 19 files changed, 564 insertions(+), 143 deletions(-) create mode 100644 .github/workflows/android.yml create mode 100644 .idea/runConfigurations/build_aar.xml create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.md create mode 100644 google-analytics-dispatcher/jacoco.gradle delete mode 100644 google-analytics-dispatcher/libs/Batch.aar create mode 100644 google-analytics-dispatcher/maven-publish.gradle delete mode 100644 google-analytics-dispatcher/src/main/res/values/strings.xml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..e2cffa5 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,23 @@ +name: Android CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Run CI + run: make ci + - name: Upload artifact + if: github.ref == 'refs/heads/master' + uses: actions/upload-artifact@v1 + with: + name: google-analytics-dispatcher.zip + path: release/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0bd19b0..0606706 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,10 @@ /captures .externalNativeBuild .cxx +release/ + /.idea/* -!/.idea/runConfigurations/ \ No newline at end of file +!/.idea/runConfigurations/ +/maven.properties +/batch-maven-secret-gpg.key diff --git a/.idea/runConfigurations/build_aar.xml b/.idea/runConfigurations/build_aar.xml new file mode 100644 index 0000000..9775492 --- /dev/null +++ b/.idea/runConfigurations/build_aar.xml @@ -0,0 +1,21 @@ + + + + + + + true + + + \ No newline at end of file diff --git a/.idea/runConfigurations/dispatcher_test.xml b/.idea/runConfigurations/dispatcher_test.xml index fa88a12..ec7da62 100644 --- a/.idea/runConfigurations/dispatcher_test.xml +++ b/.idea/runConfigurations/dispatcher_test.xml @@ -1,6 +1,7 @@ +