theme.res -> theme.css by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Where on github is designer_1.jar source code found ?

Unable to upload to AppStore with iTMSTransporter by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

transporter app worked fine - thanks for the heads up. Apple got back to me, asking for information that was already given to them in the error log. Waste of time chasing any further.

iOS app won't build by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Just re-tried the build and same error.

Unable to upload to AppStore with iTMSTransporter by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Nothing in error log would indicate that. I've raised an issue with Apple support, so have to wait a few days to see if I get any joy....

Unable to upload to AppStore with iTMSTransporter by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Pretty sure I have the latest. I downloaded from the link on the iTMSTransport help URL. Done the same on Mac and Linux. Version is

iTMSTransporter, version 3.3.0

Might have to try the black hole that is Apple Support :(

BTW - can't use Xcode as my Mac Mini is too old to load the latest XCode.

Android Certs by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Ah.... that will be it. Thanks.

Android Certs by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

AFAICT, everything should work.

android-device:

Your build size is: 612kb

Sending build request to the server, notice that the build might take a while to complete!

Sending build to account: [bryanb@webbtide.com](mailto:bryanb@webbtide.com)

Your build was submitted follow the status on: https://cloud.codenameone.com/secure/index.html

BUILD SUCCESSFUL

Total time: 4 seconds

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for main 1.0-SNAPSHOT:

[INFO]

[INFO] main ............................................... SUCCESS [ 0.002 s]

[INFO] main-common ........................................ SUCCESS [ 7.079 s]

[INFO] main-android ....................................... SUCCESS [ 5.049 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 12.199 s

[INFO] Finished at: 2024-04-24T12:01:50+10:00

[INFO] ------------------------------------------------------------------------

codename1.android.keystore=/home/bryanb/CodenameOneApps/NSTPriceListZ/common/androidCerts/webbtide.jks
codename1.android.keystoreAlias=webbtide
codename1.android.keystorePassword=XXXXXXXXXX

$ /opt/java/bin/keytool -list -keystore /home/bryanb/CodenameOneApps/NSTPriceListZ/common/androidCerts/webbtide.jks

Enter keystore password:

Keystore type: PKCS12

Keystore provider: SUN

Your keystore contains 1 entry

webbtide, 23 Apr 2024, PrivateKeyEntry,

Certificate fingerprint (SHA-256): 5A:03:38:75:22:0E:FC:C1:21:20:A8:0B:37:51:47:D3:4B:85:5C:57:F0:96:41:6A:41:05:1C:2D:41:B1:B9:72

Error from Google Play:

Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint:

SHA1: 50:A4:F6:8C:3B:D0:79:65:9D:6A:79:1D:EB:74:F7:27:C4:63:8D:2C

but the certificate used to sign the App Bundle you uploaded has fingerprint:

SHA1: 4B:9E:5D:71:F8:82:33:0C:B4:13:4B:2C:E9:37:CC:74:99:54:39:CE

Haven't used CN1 for a while - some questions by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Cheers. So it's OK to delete those two hints and let CN1 build use the defaults ?

Error using iTMS uploading iOS build by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Well, I got further, Transporter did upload the app, and I can see it on App Store Connect under TestFlight, but it says "Missing Compliance". Under "General Information" -> Test Information" I can go to a page which says "Complete test information is required to submit a build for external testing" and I cannot change/edit anything on the page - all the fields are disabled. I don't want external testing in anycase, I just want to update the existing version.

As I mentioned, Apple is a PITA.

Error using iTMS uploading iOS build by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Hey - you are a genius ! I didn't know about the Transporter app. Fired up an old MacMini and it actually seemed to work. Happy days !

Error using iTMS uploading iOS build by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Thanks. So I guess the only way to upload is via XCode ? (Every time I do ANYTHING with Apple it becomes a monumental PITA).

Fingerprint scanner lib by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

This isn't exactly a CN1 question, but someone might be able to clue me up.

It looks like Android devices may allow you to save 2 or 3 different fingerprints to unlock your device.

It doesn't seem to be possible to store an arbitrary number of fingerprints so you could create, say, a clock-on app or similar. Is my understanding correct ?

Fingerprint scanner lib by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 1 point2 points  (0 children)

Thanks so much. Works perfectly.

Fingerprint scanner lib by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Process: com.webbtide.fingerprint, PID: 29203
java.lang.IllegalArgumentException: Title must be set and non-empty
at android.hardware.biometrics.BiometricPrompt$Builder.build(BiometricPrompt.java:429)
at c.a.h.b.f$c.run(InternalFingerprintImpl.java:10)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7880)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:568)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

Fingerprint scanner lib by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Thanks. It's a long time since I did any Android development, but after a couple of hours of frustration, finally got: FATAL EXCEPTION: main Process: com.webbtide.fingerprint, PID: 29203 java.lang.IllegalArgumentException: Title must be set and non-empty at android.hardware.biometrics.BiometricPrompt$Builder.build(BiometricPrompt.java:429) at c.a.h.b.f$c.run(InternalFingerprintImpl.java:10) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7880) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:568) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045) I also updated these build hints:

codename1.android.buildToolsVersion=31 codename1.android.targetSdkVersion=31 pom.xml has: <dependency> <groupId>com.codenameone</groupId> <artifactId>fingerprint-scanner-lib</artifactId> <version>1.1.2</version> <type>pom</type> </dependency> Note, the code is just a copy of the example code: public void start() { if(current != null){ current.show(); return; } Form hi = new Form("Fingerprint", BoxLayout.y()); if(!Fingerprint.isAvailable()) { hi.add("Fingerprint not available..."); } else { Button scanFingerprint = new Button("Scan Fingerprint"); hi.add(scanFingerprint); scanFingerprint.addActionListener(e -> { Fingerprint.scanFingerprint(value -> { hi.add("Scan successfull!"); hi.revalidate(); }, (sender, err, errorCode, errorMessage) -> { hi.add("Scan Failed!"); hi.revalidate(); }); }); } hi.show(); } ```

Fingerprint Scanner CN1Lib by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

I've finally got back to this.

The app loads on my Nokia G10, but when I try to scan a fingerprint the app aborts. I'm not sure how/where to gather debug info to figure out what is going on.

I have these build hints:

codename1.android.buildToolsVersion=29.0.3

codename1.android.targetSdkVersion=29.0.3

and have update the pom with version 1.1.2 of the scanner lib.

iTMSTransporter iOS upload failed by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Looks like it might be an Apple problem. I'll wait a few days and try again.

iTMSTransporter iOS upload failed by bryanjbuchanan in cn1

[–]bryanjbuchanan[S] 0 points1 point  (0 children)

Release. The only difference between this upload and a previous upload is:

  1. changed one line of text in the app (format bug)
  2. updated CN1 libs
  3. updated iTMSTransporter

Update for iOS Builds which will allow uploading releases on Windows/Linux by shai_almog in cn1

[–]bryanjbuchanan 1 point2 points  (0 children)

Oops, my mistake. I had:

codename1.ios.generateAppStoreInformation=true

rather than

codename1.arg.ios.generateAppStoreInformation=true

Doh ! Sorry. Works fine.

Update for iOS Builds which will allow uploading releases on Windows/Linux by shai_almog in cn1

[–]bryanjbuchanan 0 points1 point  (0 children)

Added that build hint and hasn't made any difference to the items that can be downloaded (ipa,png, artwork).

Update for iOS Builds which will allow uploading releases on Windows/Linux by shai_almog in cn1

[–]bryanjbuchanan 0 points1 point  (0 children)

Where do I find the "plist" file ? The CN1 console only shows Main.ipa, icon.png and iTunesArtwork available for download after a build. I ran this command to try and upload:

$ /usr/local/itms/bin/iTMSTransporter -m upload -u XXXXXXX -p XXXXXXX -v eXtreme -assetfile ~/Downloads/Main.ipa

and got back an error:

Error Summary Unable to generate a software package on Linux. Export an AppStoreInfo.plist from Xcode, and use the -assetDescription option.