🏃‍♂️ Fast : An Efficient Way to Build & Publish Extensions

still same
image

I see the same output (no upgrade starts), on a linux machine, so not just Windows :wink:

1 Like

I will investigate this matter soon, in the meantime, kindly proceed with the manual process.

1 Like

Sorry for the inconvenience. There was no problem with the program. Actually I forgot to upload the zip file. Try it now, it should work fine.

3 Likes

Always helps :slight_smile:

Working now.

2 Likes

Men, Help me configure this proguard correctly, I'm lost, I've tried several times to filter the classes and it's generating an 8mb .axi and there are many warnings. This error is usually happening when I use dependencies via gradle, in my case I'm trying to pass android.media3. I just sent the logs to your DM @JEWEL :thinking:

These rules might help you.

-dontwarn androidx.exifinterface.**
-dontwarn androidx.media3.**
-dontnote com.google.common.**
-dontwarn com.google.common.**
1 Like

thank you

1 Like

private void loadImage(final ImageView imageView, final String imageUrl) {
        if (imageUrl == null || imageUrl.isEmpty()) {
//            imageView.setImageResource(android.R.drawable.ic_menu_report_image);

//            int id = form.$context().getResources().getIdentifier("notification_icon_background", "drawable", form.$context().getPackageName());
//            int id = form.$context().getResources().getIdentifier("icons", "drawable", form.$context().getPackageName());
            int id = form.$context().getResources().getIdentifier("icons.png", "drawable", form.$context().getPackageName());
            
// 1st Method
//            if (id != 0) {
//                imageView.setImageResource(id);
//            }

// 2nd Method
            if (id != 0) {
                Drawable drawable = ContextCompat.getDrawable(context, id);
                imageView.setImageDrawable(drawable);
            }
            
            return;
        }

...
....

i try every possible way, adding "icons.png" & "icons" and method 1 & 2, but image not show. (i try in companion/apk both.)
where is code wrong?

This only works with vector images in xml files.

1 Like

ohh thanks, any way to handle .png or .jpg or other formats

You can add png or jpg files to the extension without using UsesXml, in the assets folder. You can then read the files in the extension using AssetManager.

There are also online converters that can convert simple png files to vectors. You can then use these vectors to create an XML file. However, this will only work for simple graphics.

1 Like

where is generate block , icant find

ih ave found

Pass -b as an additional argument with the build command to generate blocks and docs.

1 Like

Even though libraries are resolved and are in classpath but still i am getting unresolved reference and import error for that library. Below are my logs.

fast build -d
  __           _   
 / _| __ _ ___| |_ 
| |_ / _` / __| __|
|  _| (_| \__ \ |_ 
|_|  \__,_|___/\__| (v2.8.4)

- Cleaning build caches
- Increasing Components version
- Resolving runtime dependencies
  - Searching for required dependencies
    + io.coil-kt:coil:2.7.0
    + io.coil-kt:coil-base:2.7.0
    + org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1
    + com.squareup.okio:okio:3.9.0
    + androidx.appcompat:appcompat-resources:1.6.1
    + com.squareup.okhttp3:okhttp:4.12.0
    + androidx.core:core-ktx:1.12.0
    + androidx.exifinterface:exifinterface:1.3.7
    + androidx.profileinstaller:profileinstaller:1.3.1
    + org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.8.1
    + org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21
    + org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.1
    + com.squareup.okio:okio:3.6.0
    + androidx.concurrent:concurrent-futures:1.1.0
    + com.squareup.okio:okio-jvm:3.9.0
    + org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.8.1
    + androidx.startup:startup-runtime:1.1.1
    + com.google.guava:listenablefuture:1.0
    + com.google.guava:guava-parent:26.0-android
    + org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.21
    + androidx.tracing:tracing:1.0.0
    + org.sonatype.oss:oss-parent:9
  - Resolving required dependencies
    + io.coil-kt:coil:2.7.0:jar
    + io.coil-kt:coil-base:2.7.0:jar
    + org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1:jar
    + org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.1:jar
    + com.squareup.okhttp3:okhttp:4.12.0:jar
    + org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21:jar
    + org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.21:jar
    + com.squareup.okio:okio:3.9.0:jar
    + com.squareup.okio:okio-jvm:3.9.0:jar
    + androidx.appcompat:appcompat-resources:1.6.1:jar
    + androidx.core:core-ktx:1.12.0:jar
    + androidx.exifinterface:exifinterface:1.3.7:jar
    + androidx.profileinstaller:profileinstaller:1.3.1:jar
    + androidx.concurrent:concurrent-futures:1.1.0:jar
    + androidx.startup:startup-runtime:1.1.1:aar
    + androidx.tracing:tracing:1.0.0:aar
    + com.google.guava:listenablefuture:1.0:jar
- Compiling Kotlin classes
  - logging: using Kotlin home directory /Users/apple/Work/Development-extension/Fast/fast/lib/compiler/2.1.0/kotlinc
  - logging: using JDK home directory /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home
  - logging: using JVM IR backend
  - logging: configuring the compilation environment
  - logging: loading modules: [java.se, jdk.accessibility, jdk.attach, jdk.compiler, jdk.dynalink, jdk.httpserver, jdk.incubator.foreign, jdk.incubator.vector, jdk.jartool, jdk.javadoc, jdk.jconsole, jdk.jdi, jdk.jfr, jdk.jshell, jdk.jsobject, jdk.management, jdk.management.jfr, jdk.net, jdk.nio.mapmode, jdk.sctp, jdk.security.auth, jdk.security.jgss, jdk.unsupported, jdk.unsupported.desktop, jdk.xml.dom, kotlin.stdlib, kotlin.script.runtime, kotlin.reflect, java.base, java.compiler, java.datatransfer, java.desktop, java.xml, java.instrument, java.logging, java.management, java.management.rmi, java.rmi, java.naming, java.net.http, java.prefs, java.scripting, java.security.jgss, java.security.sasl, java.sql, java.transaction.xa, java.sql.rowset, java.xml.crypto, jdk.internal.jvmstat, jdk.management.agent, jdk.jdwp.agent, jdk.internal.ed, jdk.internal.le, jdk.internal.opt]
  - src/pk/asyncimagepk/AsyncImagepk.kt:21:13: error: unresolved reference 'imageLoader'.
  - import coil.imageLoader 
               ^^^^^^^^^^^
  - src/pk/asyncimagepk/AsyncImagepk.kt:34:53: error: unresolved reference 'imageLoader'.
       private val imageLoader: ImageLoader = activity.imageLoader
                                                       ^^^^^^^^^^^
x java.io.IOException: BUILD FAILED!
        at com.jewel.fast.repacked.cT.<init>(KotlinCompiler.java:64)
        at com.jewel.fast.repacked.cx.<init>(Build.java:341)
        at com.jewel.fast.Fast.main(Fast.java:60)

The Maven resolver has some problems, and that's why I've added the Gradle resolver. Since you're on an older version, you might be using local dependencies.

hello jewel is there a tutorial how to add library?

Yes, on latest free version. It,s working with local dependencies but getting above error with remote dependencies.

- com.squareup.okio:okio:3.9.0

Here is the way to specify remote dependencies.

1 Like

Hello Jewel, Can i get some discount on the purchase of Fast premium?