Skip to content

Commit

Permalink
Merge pull request #4 from petenathan42/petenathan42-incrementMetric
Browse files Browse the repository at this point in the history
use incrementMetric instead of incrementCounter
  • Loading branch information
m1ga authored Oct 16, 2021
2 parents bc0db91 + 89188db commit 30b70f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
implementation 'com.google.firebase:firebase-perf:20.0.3'
}
Binary file removed android/lib/firebase-perf-11.0.4.aar
Binary file not shown.
6 changes: 3 additions & 3 deletions android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.0
version: 2.0.0
apiversion: 4
architectures: arm64-v8a armeabi-v7a x86
architectures: arm64-v8a armeabi-v7a x86 x86_64
description: titanium-firebase-performance
author: Hans Knoechel
license: Apache 2
Expand All @@ -15,4 +15,4 @@ name: titanium-firebase-performance
moduleid: firebase.performance
guid: 4e3c4e2d-afea-42e5-86f6-d2bdc0767130
platform: android
minsdk: 7.0.0
minsdk: 9.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ public void incrementCounter(String identifier, String counterName, Object incre
}

Trace trace = this.traces.get(identifier);

if (incrementedBy != null) {
trace.incrementCounter(counterName, (long) TiConvert.toInt(incrementedBy));
return;
}

trace.incrementCounter(counterName);
trace.incrementMetric(counterName, (long) TiConvert.toInt(incrementedBy));
}
}

0 comments on commit 30b70f1

Please sign in to comment.