Replies: 46 comments 91 replies
-
Sorry for the trouble, and thanks for sending the log file! It looks like the error is network related: RADLE> FAILURE: Build failed with an exception. Were you experiencing any network problems? Are there restrictions in your environment that might prevent Gradle from downloading dependencies? |
Beta Was this translation helpful? Give feedback.
-
Thanks so much. It finally worked after getting better internet connection. And please, if I have this chance, I want to ask, I am new to Swift so trying to figure skip out is a challenge. 😅By GOD’S Grace, I made an app with a simple UI. There is a header, with some text, and an icon on it and two buttons. And there are tab views below. And the tabs only embed our webpages using WebKit. But, I can’t seem to figure out how to do it in Skip. It gives me many errors and does not support WebKit and it says my colour .purple for the tab bar can’t show. Is it possible to build such an interface with Skip, please? Sent from my iPhoneOn 25 Apr 2024, at 5:42 PM, Abe White ***@***.***> wrote:
Sorry for the trouble, and thanks for sending the log file! It looks like the error is network related:
RADLE> FAILURE: Build failed with an exception.
GRADLE>
GRADLE> * What went wrong:
GRADLE> Execution failed for task ':SkipUI:compileDebugKotlin'.
GRADLE> > Could not resolve all files for configuration ':SkipUI:debugCompileClasspath'.
GRADLE> > Failed to transform collection-jvm-1.4.0.jar (androidx.collection:collection-jvm:1.4.0) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api, org.jetbrains.kotlin.platform.type=jvm}.
GRADLE> > Could not download collection-jvm-1.4.0.jar (androidx.collection:collection-jvm:1.4.0)
GRADLE> > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/collection/collection-jvm/1.4.0/collection-jvm-1.4.0.jar'.
GRADLE> > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/collection/collection-jvm/1.4.0/collection-jvm-1.4.0.jar'.
GRADLE> > Got socket exception during request. It might be caused by SS
/private/var/folders/w7/6f6_q8pj2_zc683391mp3hzc0000gn/T/134F8DB4-B8E9-48AA-9528-0AB64AF2DE3F/hello-skip/.build/checkouts/skip/Sources/SkipTest/XCGradleHarness.swift:327: error: -[HelloSkipTests.XCSkipTests testSkipModule] : Execution failed for task ':SkipUI:compileDebugKotlin'.
/private/var/folders/w7/6f6_q8pj2_zc683391mp3hzc0000gn/T/134F8DB4-B8E9-48AA-9528-0AB64AF2DE3F/hello-skip/Tests/HelloSkipTests/XCSkipTests.swift:20: error: -[HelloSkipTests.XCSkipTests testSkipModule] : failed - The expected test output folder did not exist, which may indicate that the gradle process encountered a build error or other issue. Missing folder: /private/var/folders/w7/6f6_q8pj2_zc683391mp3hzc0000gn/T/134F8DB4-B8E9-48AA-9528-0AB64AF2DE3F/hello-skip/.build/checkouts/skip/Skip/build/hello-skip/HelloSkipTests/skipstone/HelloSkip/.build/HelloSkip/test-results
Test Case '-[HelloSkipTests.XCSkipTests testSkipModule]' failed (132.038 seconds).
Test Suite 'XCSkipTests' failed at 2024-04-24 13:12:50.861.
Executed 1 test, with 2 failures (0 unexpected) in 132.038 (132.038) seconds
Test Suite 'hello-skipPackageTests.xctest' failed at 2024-04-24 13:12:50.861.
Executed 1 test, with 2 failures (0 unexpected) in 132.038 (132.038) seconds
Test Suite 'Selected tests' failed at 2024-04-24 13:12:50.861.
Executed 1 test, with 2 failures (0 unexpected) in 132.038 (132.039) seconds
L misconfiguration
GRADLE> > No route to host
Were you experiencing any network problems? Are there restrictions in your environment that might prevent Gradle from downloading dependencies?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
There's currently no out-of-the-box WebView component, either for SwiftUI or Compose. Probably the simplest thing to do would be to take our sample implementation from the Bookings app and drop it into your project: https://github.com/skiptools/skipapp-bookings/blob/main/Sources/TravelBookings/WebView.swift We have a more advanced WebView component in the works, which will enable navigation controls like back/forward buttons and a URL bar, at https://github.com/skiptools/skip-web. You are welcome to take a look and file issue reports for specific things that you need – we are looking for active feedback and suggestions on the framework.
There isn't any built-in support for changing the tab bar's color in SwiftUI. You could sort of hack it in on the iOS side by using the UIKit public var body: some View {
TabView(selection: $tab) {
Text("Tab 1")
.tabItem { Label("Cities", systemImage: "list.bullet") }
.tag(1)
}
.onAppear {
#if !SKIP
UITabBar.appearance().barTintColor = .purple
#endif
}
} As for the compose side, I'm not sure how it could be done, but I suspect some theming properties in the AndroidManifest.xml for local resources might do it. |
Beta Was this translation helpful? Give feedback.
-
Awesome! Seems it has a chance. Thanks so much. So if I drop the WebView.swift in, I can call on it like normal?This is how the code was before with the tab bar. struct ContentView: View {
var body: some View {
VStack {
ZStack(alignment: .bottomLeading) {
// This may be your header image
Color.orange.opacity(0.2)
.frame(height: 300)
.offset(y: -20)
VStack(alignment: .leading, spacing: 10) {
Text("SOME HEADER TEXT")
.bold()
Text("Subtitle...")
HStack(spacing: 60) {
Button(action: { }, label: {
Label("Invite", systemImage: "person")
})
.buttonStyle(.borderedProminent)
.tint(.purple)
Button(action: { }, label: {
Label("Contact Us", systemImage: "envelope")
})
.buttonStyle(.borderedProminent)
.tint(.purple)
}
.frame(maxWidth: .infinity)
}
.padding(.horizontal, 16)
.padding(.top, 60)
.padding(.bottom, 16)
.frame(maxWidth: .infinity, alignment: .leading)
.background(
RoundedRectangle(cornerRadius: 20)
.foregroundColor(.white)
.shadow(radius: 5)
)
.overlay(
GeometryReader { geometry in
Circle()
.foregroundStyle(.purple)
.frame(width: 70, height: 70)
.position(x: geometry.size.width * 0.1, y: geometry.size.height * 0.05)
}
)
}
TabView {
//HomeView
HomeView()
.tabItem {
Label("Home", systemImage: "house.circle")
}
//MediaView
MediaView()
.tabItem {
Label("Media", systemImage: "tv.and.mediabox")
}
//VideosView
VideosView()
.tabItem {
Label("Videos", systemImage: "video")
}
//ContactView
ContactView()
.tabItem {
Label("Contact", systemImage: "person.crop.circle.fill")
}
}
}
//Tab Customisation
.onAppear() { let appearance = UITabBarAppearance() appearance.configureWithOpaqueBackground()
appearance.stackedLayoutAppearance.normal.iconColor = .red
appearance.stackedLayoutAppearance.normal.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.red]
appearance.stackedLayoutAppearance.selected.iconColor = .white
appearance.stackedLayoutAppearance.selected.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
appearance.backgroundColor = .purple
UITabBar.appearance().standardAppearance = appearance
UITabBar.appearance().scrollEdgeAppearance = appearance
}
.tint(.white)
.ignoresSafeArea()Can I use the same format for the tab view? And any tips on creating the header? So sorry to trouble you this way. I just feel quite overwhelmed by all of the coding. 🙏🏼🙏🏼🙏🏼🥰Sent from my iPhoneOn 25 Apr 2024, at 7:02 PM, marcprux ***@***.***> wrote:
And the tabs only embed our webpages using WebKit. But, I can’t seem to figure out how to do it in Skip. It gives me many errors and does not support WebKit
There's currently no out-of-the-box WebView component, either for SwiftUI or Compose. Probably the simplest thing to do would be to take our sample implementation from the Bookings app and drop it into your project: https://github.com/skiptools/skipapp-bookings/blob/main/Sources/TravelBookings/WebView.swift
We have a more advanced WebView component in the works, which will enable navigation controls like back/forward buttons and a URL bar, at https://github.com/skiptools/skip-web. You are welcome to take a look and file issue reports for specific things that you need – we are looking for active feedback and suggestions on the framework.
and it says my colour .purple for the tab bar can’t show. Is it possible to build such an interface with Skip, please?
There isn't any built-in support for changing the tab bar's color in SwiftUI. You could sort of hack it in on the iOS side by using the UIKit appearance() APIs with something like this:
public var body: some View {
TabView(selection: $tab) {
Text("Tab 1")
.tabItem { Label("Cities", systemImage: "list.bullet") }
.tag(1)
}
.onAppear {
#if !SKIP
UITabBar.appearance().barTintColor = .purple
#endif
}
}
As for the compose side, I'm not sure how it could be done, but I suspect some theming properties in the AndroidManifest.xml for local resources might do it.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, you should be able add something like this to the content of one of your tabs: WebView(url: URL(string: "https://wikipedia.org/wiki/Special:Random")!) Let us know if you run into issues or have further questions. |
Beta Was this translation helpful? Give feedback.
-
Hi! By GOD'S Grace, I'm still trying to build the app, but I keep getting
this error message. Could you kindly help me with this?
Attaching the log also, please. And also,
***@***.*** ~ % skip init --open-xcode
--appid=com.phela.Heaven-Seekers-Ministry heaven-seekers-ministry-app
HSM-App
Initializing Skip application heaven-seekers-ministry-app
[✓] Resolve dependencies (41.77s)
[✗] Build heaven-seekers-ministry-app (13.9s)
[✓] Check Swift Package (0.18s)
[✓] Created module HSM-App in
/Users/jesusseraphel/heaven-seekers-ministry-app
[✓] Opening Xcode project (0.06s)
[✗] Skip 0.8.31 init failed with 1 error
Also, I want to know if this kind of header with geometry, and tab view
with appearance changes will be accepted and okay in Skip: (A picture of
what I hope to accomplish will also be attached, please)
Thank you very much, and GOD bless you. I will be grateful for all the help
I can get, with all humility. My main aim now is to build and have the app
running well for Android only.
So, if there is anything to be changed to suit Android, I will be grateful.
So sorry for all the trouble, please.🙏🏽🙂
e
|
Beta Was this translation helpful? Give feedback.
-
Hi, please. I am trying to create a brand new project but got the error code I sent you. I really hope to start working on it anew. Please, what was the reason for the error?And I want to know if the features in the code I sent you are supported and how to go about it in Skip, if possible. Many thanks. Sent from my iPhoneOn 27 Apr 2024, at 4:00 PM, Abe White ***@***.***> wrote:
Sorry for the trouble.
First, I want to point out that "skip init" is for creating a brand new project. You only use it once. After the project is created, you open the Darwin/.xcodeproj file in Xcode and work in Xcode.
Are you creating a brand new project, or attempting to build your existing project?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
You might have to use AsyncImage with a resource URL for you header: see https://skip.tools/docs/modules/skip-ui/#imagesI don’t see anything else initially that should give you trouble. Can you please attach the error log as an attachment? It’s hard to read inline. Sent from my iPhoneOn Apr 27, 2024, at 11:04 AM, Seraphel ***@***.***> wrote:
Hi, please. I am trying to create a brand new project but got the error code I sent you. I really hope to start working on it anew. Please, what was the reason for the error?And I want to know if the features in the code I sent you are supported and how to go about it in Skip, if possible. Many thanks. Sent from my iPhoneOn 27 Apr 2024, at 4:00 PM, Abe White ***@***.***> wrote:
Sorry for the trouble.
First, I want to point out that "skip init" is for creating a brand new project. You only use it once. After the project is created, you open the Darwin/.xcodeproj file in Xcode and work in Xcode.
Are you creating a brand new project, or attempting to build your existing project?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, please I already sent it as an attachment in the previous email apart
from the code. Should I resend it, with all humility?
…On Sat, 27 Apr 2024, 16:48 Abe White, ***@***.***> wrote:
You might have to use AsyncImage with a resource URL for you header: see
https://skip.tools/docs/modules/skip-ui/#imagesI don’t see anything else
initially that should give you trouble. Can you please attach the error log
as an attachment? It’s hard to read inline. Sent from my iPhoneOn Apr 27,
2024, at 11:04 AM, Seraphel ***@***.***> wrote:
Hi, please. I am trying to create a brand new project but got the error
code I sent you. I really hope to start working on it anew. Please, what
was the reason for the error?And I want to know if the features in the code
I sent you are supported and how to go about it in Skip, if possible. Many
thanks. Sent from my iPhoneOn 27 Apr 2024, at 4:00 PM, Abe White
***@***.***> wrote:
Sorry for the trouble.
First, I want to point out that "skip init" is for creating a brand new
project. You only use it once. After the project is created, you open the
Darwin/.xcodeproj file in Xcode and work in Xcode.
Are you creating a brand new project, or attempting to build your existing
project?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you authored the thread.Message ID: ***@***.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALEPUFCGQ5YSFU4MYCHSXVDY7PJHDAVCNFSM6AAAAABGW6BY7SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TENBWGU2TG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, please send the full log as an attachment |
Beta Was this translation helpful? Give feedback.
-
I send it through email. I'm going to send it on Github then, please. |
Beta Was this translation helpful? Give feedback.
-
Thank you - the attachment worked. The problem is that hyphen characters are not valid for the app name. Sorry - our tool should have caught that error. Please try the following instead: skip init --open-xcode --appid=com.phela.HeavenSeekersMinistry heaven-seekers-ministry-app HSMApp |
Beta Was this translation helpful? Give feedback.
-
Okay please. Thank you so much. I am really grateful.
|
Beta Was this translation helpful? Give feedback.
-
Oh okay please. I will double check on the site’s design and layout then. And please, is there any chance for the progress bar, with all humility? 🙏🏻🙂 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for everything!!! And please, is there any chance for the progress bar, with all humility? 🙏🏻🙂 And how do I configure the App Icon and Launch Screen for Android, please? I have been searching through the docs... And to set up the Firebase, after unzipping the file provided, am I to transfer all of it's contents to my app? I wish the instructions could direct me clearly, please. And it seems Android does not allow App Bundle ID's that have (-) dashes in them. I am trying to change mine to use underscores (_) but it does not update, please. |
Beta Was this translation helpful? Give feedback.
-
Okay please, will do. Thanks so much. 🙏🏻🙂 |
Beta Was this translation helpful? Give feedback.
-
UPDATE: By GOD'S Grace, I think I figured the Icon part out in the "res" folder. I am left with the Launch Screen and any help for the other questions will be much appreciated, please. 🙏🏼🙂 |
Beta Was this translation helpful? Give feedback.
-
Hi, please! @marcprux @aabewhite Any response with regard to the Launch Screen for the Android Version, please? 🙏🏻🙂 And any enlightenment on the SKIPFireside too, please? |
Beta Was this translation helpful? Give feedback.
-
Please any response with regard to the Launch Screen for the Android version? @aabewhite @marcprux |
Beta Was this translation helpful? Give feedback.
-
The launch screen isn't something we support directly. If you want a custom launch screen, you'll have to use Android's native mechanisms for creating one. I haven't done this before, but a web search led me to this explanation for how to create a splash screen in Android: |
Beta Was this translation helpful? Give feedback.
-
Thanks - with the additional code I'm able to reproduce the content flash. I'll investigate later today and let you know what I find |
Beta Was this translation helpful? Give feedback.
-
This appears to be a known bug with using Android's WebView inside Compose: A solution to prevent the flashing is in Webview.swift, call the following on the WebView that you create within the AndroidView: Please let us know if that doesn't fix it for you. |
Beta Was this translation helpful? Give feedback.
-
@aabewhite This is what I have tried so far by GOD'S Grace... kindly let me know if I have gone wrong in any way, please. And what I can change to make it work, please. Thanks so much. Main.kt
res/layout/activity_main.xml
WebView.swift
|
Beta Was this translation helpful? Give feedback.
-
@aabewhite Please, I was trying to edit in Android Studio, but do not know much or what to do with this error. 🙏🏼 |
Beta Was this translation helpful? Give feedback.
-
@aabewhite And also, please, can you direct me on how to add that the app uses Camera and Photo library? |
Beta Was this translation helpful? Give feedback.
-
@aabewhite Please, all that is left in the main app now is how to get the ProgressView to run whenever a user taps on a link in the page. I have tried all codes I can but can’t seem to get it done. I have reached a dead end. 🤦🏻♀️ Feels like I might have to give it up altogether. |
Beta Was this translation helpful? Give feedback.
-
Sorry this is beyond the scope of Skip, and is just a general Android / Jetpack Compose issue. If I knew the answer I would give it to you, but I do not. I'd have to do the research and write the program and try various solutions, just as you are doing. |
Beta Was this translation helpful? Give feedback.
-
Hi! Newbie here!
By GOD'S Grace, I thought of trying Skip to help merge the two platforms. I got XCode, Android Studio, and Homebrew, all in the latest version.
But, I can't seem to continue due to this error code. Can someone please throw more light on it for me?
skip-checkup-2024-04-24T13:07:57Z.txt
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions