-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/develop' into public
# Conflicts: # weather-api/src/main/jni/Application.mk
- Loading branch information
Showing
191 changed files
with
8,689 additions
and
3,021 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ewizrd/simpleweather/InstrumentedTests.kt → ...d/simpleweather/test/InstrumentedTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a/com/thewizrd/simpleweather/UnitTests.kt → .../thewizrd/simpleweather/test/UnitTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/src/fullgms/java/com/thewizrd/simpleweather/performance/PerfTrace.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@file:JvmMultifileClass | ||
@file:JvmName("PerfTrace") | ||
|
||
package com.thewizrd.simpleweather.performance | ||
|
||
import com.google.firebase.perf.metrics.Trace | ||
|
||
class PerfTrace(private val name: String) { | ||
private val trace = Trace.create(name) | ||
|
||
fun startTrace() { | ||
trace.start() | ||
} | ||
|
||
fun stopTrace() { | ||
trace.stop() | ||
} | ||
|
||
fun putAttribute(name: String, value: String) { | ||
trace.putAttribute(name, value) | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
app/src/fullgms/java/com/thewizrd/simpleweather/radar/EmptyRadarViewProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.thewizrd.simpleweather.radar; | ||
|
||
import android.content.Context; | ||
import android.os.Build; | ||
import android.os.Bundle; | ||
import android.view.ViewGroup; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.annotation.RequiresApi; | ||
|
||
import com.google.android.gms.maps.GoogleMap; | ||
|
||
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) | ||
public class EmptyRadarViewProvider extends MapTileRadarViewProvider { | ||
public EmptyRadarViewProvider(@NonNull Context context, @NonNull ViewGroup rootView) { | ||
super(context, rootView); | ||
} | ||
|
||
@Override | ||
public void onCreateView(@Nullable Bundle savedInstanceState) { | ||
super.onCreateView(savedInstanceState); | ||
if (getViewContainer().getChildCount() == 0) { | ||
getViewContainer().addView(getMapView()); | ||
} | ||
} | ||
|
||
@Override | ||
public void updateRadarView() { | ||
getMapView().getMapAsync(this); | ||
} | ||
|
||
@Override | ||
public void onMapReady(@NonNull GoogleMap googleMap) { | ||
super.onMapReady(googleMap); | ||
} | ||
} |
Oops, something went wrong.