-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gradle 7.5, AGP 7.4.2, moko resources 0.23.0
- Loading branch information
Showing
10 changed files
with
181 additions
and
139 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Nov 10 21:02:04 MSK 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
31 changes: 29 additions & 2 deletions
31
...pp/Sources/Extensions/ThirdParty/MokoResources/ResourcesColorResourceThemed+UIColor.swift
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 |
---|---|---|
@@ -1,8 +1,35 @@ | ||
import shared | ||
import UIKit | ||
|
||
extension ResourcesColorResource.Themed { | ||
extension ColorDesc { | ||
var uiColor: UIColor { | ||
switch self { | ||
case let descResource as ColorDescResource: | ||
return descResource.resource.getUIColor() | ||
case let singleColor as ColorDescSingle: | ||
return singleColor.color.uiColor | ||
case let themedColor as ColorDescThemed: | ||
return themedColor.dynamicUIColor | ||
default: | ||
return UIColor(hex6: 0xffffff) | ||
} | ||
} | ||
} | ||
|
||
extension ColorDescThemed { | ||
var dynamicUIColor: UIColor { | ||
UIColor.dynamic(light: self.light.uiColor, dark: self.dark.uiColor) | ||
UIColor.dynamic(light: self.lightColor.uiColor, dark: self.darkColor.uiColor) | ||
} | ||
} | ||
|
||
private struct ColorHandlingError : LocalizedError { | ||
let description: String | ||
|
||
init(_ description: String) { | ||
self.description = description | ||
} | ||
|
||
var errorDescription: String? { | ||
description | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...llApp/Sources/Extensions/ThirdParty/MokoResources/ResourcesStringResource+Localized.swift
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
224 changes: 112 additions & 112 deletions
224
iosHyperskillApp/iosHyperskillApp/Theme/ColorPalette.swift
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest package="org.hyperskill.app" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
</manifest> |