Skip to content

Commit

Permalink
Merge pull request #23 from Winfooz/mhamdan/code-style/2018-11-04
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
winfoozmnayef authored Nov 5, 2018
2 parents 26c9f49 + 152c9a2 commit 7cffae7
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ If you'd like to contribute, please take a look at the [`Contributing`](https://
# Example WinAnalytics:

**Application class**
```
```kotlin
@AnalyticsConfiguration(
AnalyticsClient(type = AnalyticsTypes.FIREBASE, enabled=false),
AnalyticsClient(type = AnalyticsTypes.FABRIC),
Expand All @@ -33,7 +33,7 @@ class MyApplication : Application() {
```

**Model class**
```Java
```kotlin
data class User(
@Analytics(
Event("Login"),
Expand Down Expand Up @@ -70,7 +70,7 @@ data class Address(
```

**MainActivity**
```
```kotlin
private fun onHelloWorldClicked(view: View) {
Analytics.getInstance(applicationContext).userAnalytics.loginEvent(user)
}
Expand All @@ -79,7 +79,7 @@ private fun onHelloWorldClicked(view: View) {
# Example analytics from more than a place:

**MainActivity**
```
```kotlin
@AnalyticsEmbedded
var user: User? = null

Expand All @@ -98,15 +98,20 @@ protected void onCreate(Bundle savedInstanceState) {
# Download

```groovy
repositories {
maven {
url "https://dl.bintray.com/mnayef95/WinAnalytics"
}
}
dependencies {
implementation 'com.winfooz.winanalytics:annotations:1.0.1-beta'
implementation 'com.winfooz.winanalytics:winanalytics:1.0.1-beta'
kapt 'com.winfooz.winanalytics:compiler:1.0.1-beta'
implementation 'com.winfooz.winanalytics:winanalytics:1.0.2-beta'
kapt 'com.winfooz.winanalytics:compiler:1.0.2-beta'
}
```

# Support annotations
```
```kotlin
@Analytics()
@AnalyticsConfiguration()
@AnalyticsEmbedded()
Expand Down
4 changes: 0 additions & 4 deletions annotations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ plugins {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.0"
}
apply from: rootProject.file('deploy.gradle')
2 changes: 1 addition & 1 deletion annotations/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=Annotations for use in your project
POM_BINTRAY_NAME=com.winfooz.winanalytics:annotations
POM_ARTIFACT_ID=annotations
POM_PACKAGING=jar
POM_VERSION=1.0.1-beta
POM_VERSION=1.0.2-beta
6 changes: 1 addition & 5 deletions compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation project(':annotations')

// Code generation library for kotlin.
api 'com.squareup:kotlinpoet:0.7.0'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.0"
implementation 'com.squareup:kotlinpoet:0.7.0'
}
apply from: rootProject.file('deploy.gradle')
2 changes: 1 addition & 1 deletion compiler/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=For proccess annotations and generate code
POM_BINTRAY_NAME=com.winfooz.winanalytics:compiler
POM_ARTIFACT_ID=compiler
POM_PACKAGING=jar
POM_VERSION=1.0.1-beta
POM_VERSION=1.0.2-beta
2 changes: 2 additions & 0 deletions winanalytics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.0"

implementation project(':annotations')

implementation 'com.google.firebase:firebase-core:16.0.4'
implementation "com.mixpanel.android:mixpanel-android:5.4.1"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
Expand Down
2 changes: 1 addition & 1 deletion winanalytics/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=For log analytics to firebase,fabric,mixpanel etc...
POM_BINTRAY_NAME=com.winfooz.winanalytics:winanalytics
POM_ARTIFACT_ID=winanalytics
POM_PACKAGING=jar
POM_VERSION=1.0.1-beta
POM_VERSION=1.0.2-beta

0 comments on commit 7cffae7

Please sign in to comment.