diff --git a/CHANGELOG.md b/CHANGELOG.md index b377c85..f5119d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.2 +* Update a dependency to the latest release. + ## 1.0.1 * Update a dependency to the latest release. diff --git a/README.md b/README.md index b5ca35e..5e81f9f 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # analytics_logger_gen -[analytics_logger_gen](https://github.com/9oya/analytics_logger_gen) is a Flutter plugin that generates an integrated event logger for various analytics tools including Firebase, AppsFlyer, Amplitude, Mixpanel, Singular, and DataDog. Import data from Google Spreadsheets, remote repositories, or local CSV files. +[analytics_logger_gen](https://github.com/9oya/analytics_logger_gen) is a code generator that generates an event logger for analytics tools like FirebaseAnalytics and AppsFlyer. Import data from Google Spreadsheets, remote repositories or CSV files. ## Running the generator ```shell flutter packages pub run build_runner build # if you want to delete the generated files before building -# > flutter packages pub run build_runner build --delete-conflicting-outputs +flutter packages pub run build_runner build --delete-conflicting-outputs -# if generated files are not updated after modifying the CSV file, run the following command -# > flutter pub run build_runner clean +# if generated files are not updated after modifying the CSV file +flutter pub run build_runner clean ``` ## Basic Usage The builders generate code when they find members annotated with `@AnalyticsLogger`. diff --git a/example/pubspec.lock b/example/pubspec.lock index 7e938f6..b371074 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -31,7 +31,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0" + version: "1.0.2" analyzer: dependency: transitive description: diff --git a/lib/src/analytics_logger.dart b/lib/src/analytics_logger.dart index 416a501..9b84ff4 100644 --- a/lib/src/analytics_logger.dart +++ b/lib/src/analytics_logger.dart @@ -1,4 +1,3 @@ - /// The [AnalyticsLogger] annotation is used to generate the logger class. class AnalyticsLogger { /// When [localCsvPath] is provided, the logger and events will be diff --git a/lib/src/analytics_logger_generator.dart b/lib/src/analytics_logger_generator.dart index 400e948..0171c46 100644 --- a/lib/src/analytics_logger_generator.dart +++ b/lib/src/analytics_logger_generator.dart @@ -107,7 +107,8 @@ class AnalyticsLoggerGenerator extends GeneratorForAnnotation { 'The event flag names for the \'$_eventLoggerColumnName\' in the header row ($headerRows) of the CSV file do not match those declared in the @AnalyticsLogger annotation.'); } - int _indexOfEventLoggerName = headerRows.indexOf(_eventLoggerColumnName); + int _indexOfEventLoggerName = + headerRows.indexOf(_eventLoggerColumnName); String _eventFlagKey = headerRows[_indexOfEventLoggerName]; String _eventFlag = 'false'; if (bodyRows[i][_eventFlagKey] != null) { @@ -207,8 +208,7 @@ class AnalyticsLoggerGenerator extends GeneratorForAnnotation { buffer.writeln('Map attributes = {'); buffer.writeln(paramsDict); buffer.writeln('};'); - buffer.writeln( - '$className.logEvent($_enumName.$eventName, attributes);'); + buffer.writeln('$className.logEvent($_enumName.$eventName, attributes);'); buffer.writeln('}'); } buffer.writeln('}'); @@ -224,8 +224,7 @@ class AnalyticsLoggerGenerator extends GeneratorForAnnotation { buffer.writeln('static void setup() {'); for (String _loggerName in eventLoggerNamesDict.keys) { - buffer.writeln( - '${_loggerName.toLowerFirstCase()}.setup();'); + buffer.writeln('${_loggerName.toLowerFirstCase()}.setup();'); } buffer.writeln('}'); diff --git a/pubspec.yaml b/pubspec.yaml index c87aca3..7907294 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: analytics_logger_gen -description: analytics_logger_gen is a Flutter plugin that generates an integrated event logger for various analytics tools including Firebase, AppsFlyer, Amplitude, Mixpanel, Singular, and DataDog. Import data from Google Spreadsheets, remote repositories, or local CSV files. -version: 1.0.1 +description: analytics_logger_gen generates an event logger for analytics tools like FirebaseAnalytics and AppsFlyer. Import data from Google Spreadsheets, remote repositories or CSV files. +version: 1.0.2 homepage: https://github.com/9oya repository: https://github.com/9oya/analytics_logger_gen issue_tracker: https://github.com/9oya/analytics_logger_gen/issues @@ -17,7 +17,7 @@ environment: dependencies: flutter: sdk: flutter - analyzer: ^5.0.0 + analyzer: ^5.1.0 build: ^2.3.1 source_gen: ^1.2.7 http: ^0.13.5