Skip to content

Commit 75cdfd4

Browse files
authored
Merge pull request #84 from adessoTurkey/feature/map-screen
Map Screen
2 parents 04d5c85 + db293af commit 75cdfd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1387
-15
lines changed

androidApp/build.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import movee.util.requireStringProperty
2+
13
plugins {
24
alias(libs.plugins.android.application)
35
alias(libs.plugins.kotlin.android)
46
alias(libs.plugins.compose)
7+
alias(libs.plugins.maps.secrets)
58
}
69

710
android {
@@ -15,6 +18,14 @@ android {
1518
versionCode = 1
1619
versionName = "1.0"
1720
}
21+
signingConfigs {
22+
getByName("debug") {
23+
storeFile = file(requireStringProperty("SIGNING_STORE_FILE"))
24+
storePassword = requireStringProperty("SIGNING_STORE_PASSWORD")
25+
keyAlias = requireStringProperty("SIGNING_KEY_ALIAS")
26+
keyPassword = requireStringProperty("SIGNING_KEY_PASSWORD")
27+
}
28+
}
1829
buildFeatures {
1930
compose = true
2031
}
@@ -35,6 +46,9 @@ android {
3546
"proguard-rules.pro"
3647
)
3748
}
49+
getByName("debug") {
50+
signingConfig = signingConfigs.getByName("debug")
51+
}
3852
}
3953
compileOptions {
4054
isCoreLibraryDesugaringEnabled = true
@@ -58,3 +72,8 @@ dependencies {
5872
implementation(core)
5973
}
6074
}
75+
76+
secrets {
77+
defaultPropertiesFileName = "default.local.properties"
78+
propertiesFileName = "local.properties"
79+
}

androidApp/gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SIGNING_STORE_FILE=../debug.jks
2+
SIGNING_STORE_PASSWORD=movee1234
3+
SIGNING_KEY_ALIAS=key0
4+
SIGNING_KEY_PASSWORD=movee1234

androidApp/src/main/AndroidManifest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3-
<uses-permission android:name="android.permission.INTERNET"/>
3+
<uses-permission android:name="android.permission.INTERNET" />
4+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
5+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
46
<application
57
android:name=".MoveeApplication"
68
android:allowBackup="false"
@@ -16,5 +18,7 @@
1618
<category android:name="android.intent.category.LAUNCHER" />
1719
</intent-filter>
1820
</activity>
21+
<meta-data android:name="com.google.android.geo.API_KEY" android:value="${MAPS_API_KEY}"/>
22+
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
1923
</application>
2024
</manifest>

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
alias(libs.plugins.moko.resources).apply(false)
99
alias(libs.plugins.buildKonfig).apply(false)
1010
alias(libs.plugins.kotlin.cocoapods).apply(false)
11+
alias(libs.plugins.maps.secrets).apply(false)
1112
}
1213

1314
tasks.register("clean", Delete::class) {

buildSrc/src/main/java/com/example/moveApp-Compose-KMM/util/ProjectExt.kt renamed to buildSrc/src/main/java/movee/util/ProjectExt.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.moveeapp_compose_kmm.util
1+
package movee.util
22

33
import org.gradle.api.Project
44

debug.jks

2.47 KB
Binary file not shown.

default.local.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# set MAPS_API_KEY at local.properties
2+
MAPS_API_KEY=STUB_FOR_GOOGLE_MAPS_API_KEY

gradle/libs.versions.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ koin = "3.5.0"
2121
koin-compose = "1.1.0"
2222
moko = "0.23.0"
2323
seiko = "1.5.1"
24+
mapsCompose = "2.15.0"
25+
playServicesMaps = "18.1.0"
26+
playServicesLocation = "21.0.1"
27+
maps-secrets = "2.0.1"
2428

2529
[libraries]
2630

@@ -30,6 +34,9 @@ androidx-activity-compose = { module = "androidx.activity:activity-compose", ver
3034
androidx-compose-ui-util = { module = "androidx.compose.ui:ui-util", version.ref = "compose" }
3135
androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
3236
androidx-compose-ui-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
37+
maps-compose = { module = "com.google.maps.android:maps-compose", version.ref = "mapsCompose" }
38+
play-services-maps = { module = "com.google.android.gms:play-services-maps", version.ref = "playServicesMaps" }
39+
play-services-location = { module = "com.google.android.gms:play-services-location", version.ref = "playServicesLocation" }
3340

3441
desugar-jdk-libs = { module = "com.android.tools:desugar_jdk_libs", version.ref = "desugar_jdk_libs" }
3542

@@ -78,3 +85,4 @@ android-library = { id = "com.android.library", version.ref = "agp" }
7885
buildKonfig = { id = "com.codingfeline.buildkonfig", version.ref = "buildKonfig" }
7986
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
8087
moko-resources = { id = "dev.icerock.mobile.multiplatform-resources", version.ref = "moko" }
88+
maps-secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "maps-secrets" }

iosApp/iosApp.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 51;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -404,6 +404,7 @@
404404
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
405405
CODE_SIGN_STYLE = Automatic;
406406
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
407+
DEVELOPMENT_TEAM = ET37P8CM79;
407408
ENABLE_PREVIEWS = NO;
408409
FRAMEWORK_SEARCH_PATHS = (
409410
"$(inherited)",
@@ -435,6 +436,7 @@
435436
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
436437
CODE_SIGN_STYLE = Automatic;
437438
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
439+
DEVELOPMENT_TEAM = 3KLVB8AAXN;
438440
ENABLE_PREVIEWS = NO;
439441
FRAMEWORK_SEARCH_PATHS = (
440442
"$(inherited)",

iosApp/iosApp/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
<string>UIInterfaceOrientationLandscapeLeft</string>
4949
<string>UIInterfaceOrientationLandscapeRight</string>
5050
</array>
51+
<key>NSLocationWhenInUseUsageDescription</key>
52+
<string>If you want to see the weather for your location, grant the permission.</string>
5153
<key>UILaunchScreen</key>
5254
<dict/>
5355
</dict>

0 commit comments

Comments
 (0)