Skip to content

Commit

Permalink
Merge pull request #25 from Winfooz/mhamdan/kotlinpoet/downgrade
Browse files Browse the repository at this point in the history
Mhamdan/kotlinpoet/downgrade
  • Loading branch information
winfoozmnayef authored Nov 7, 2018
2 parents 5edd3f3 + ff55e39 commit 8bbc5da
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
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.3-beta
POM_VERSION=1.0.4-beta
2 changes: 1 addition & 1 deletion compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ dependencies {
implementation project(':annotations')

// Code generation library for kotlin.
implementation 'com.squareup:kotlinpoet:1.0.0-RC2'
implementation 'com.squareup:kotlinpoet:0.6.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.3-beta
POM_VERSION=1.0.4-beta
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.winfooz.winanalytics.compiler.models.Configuration
import com.winfooz.winanalytics.compiler.models.FieldData
import java.io.File
import javax.annotation.processing.ProcessingEnvironment
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy

/**
* This type for generate class with name "Analytics" contains every object of analytics classes.
Expand All @@ -32,7 +31,8 @@ class ConfigurationType(private val processingEnv: ProcessingEnvironment,
* singleton pattern with context parameter
*/
private val singletonHolder: TypeSpec.Builder = TypeSpec.companionObjectBuilder()
.superclass(SINGLETON_HOLDER.parameterizedBy(
.superclass(ParameterizedTypeName.get(
SINGLETON_HOLDER,
ClassName(pkg, CLASS_NAME),
CONTEXT
))
Expand Down
5 changes: 3 additions & 2 deletions sample/src/main/java/com/winfooz/winanalytics/sample/Str.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.winfooz.winanalytics.sample;

import com.winfooz.winanalytics.annotations.Analytics;
import com.winfooz.winanalytics.annotations.Event;

public class Str {

@Analytics({})
@Analytics({@Event("Mohamed")})
private boolean mMohamed;

public boolean getMohamed() {
public boolean getMMohamed() {
return false;
}
}
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.3-beta
POM_VERSION=1.0.4-beta

0 comments on commit 8bbc5da

Please sign in to comment.