Git Product home page Git Product logo

Comments (7)

banshee avatar banshee commented on July 30, 2024

It doesn't look like those projects have AndroidProguardScala nature;
there's no proguard_conf directory (or did you just not check that in?)

What does the proguard_processed.conf file look like?

from androidproguardscala.

banshee avatar banshee commented on July 30, 2024

FYI, I'm starting to add to the troubleshooting section of
https://github.com/banshee/AndroidProguardScala/blob/master/README.md

On Sun, Feb 3, 2013 at 12:41 PM, James Moore [email protected] wrote:

It doesn't look like those projects have AndroidProguardScala nature;
there's no proguard_conf directory (or did you just not check that in?)

What does the proguard_processed.conf file look like?

James Moore
[email protected]
http://jamesmoorecode.blogspot.com/

from androidproguardscala.

jimfulton avatar jimfulton commented on July 30, 2024

On Sun, Feb 3, 2013 at 3:42 PM, James Moore [email protected] wrote:

It doesn't look like those projects have AndroidProguardScala nature;

The nature is listed in hi/.project and hiTest/.project

there's no proguard_conf directory (or did you just not check that in?)

I've never seen such a thing.

I do have proguard_cache and proguard_cache_conf directories, which I
assumed I shouldn't check in.

What does the proguard_processed.conf file look like?

like this:

-injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-library.jar"(!META-INF/MANIFEST.MF)
-injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-swing.jar"(!META-INF/MANIFEST.MF)
-injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-actors.jar"(!META-INF/MANIFEST.MF)
-outjars "/Users/jim/e/hi/proguard_cache/jartender_cache_6342811044649977578.jar"
-injars "/Users/jim/e/hi/bin/classes"
-libraryjars "/Users/jim/i/android/sdk/platforms/android-4.2/android.jar"
-libraryjars "/Users/jim/e/hi/libs/android-support-v4.jar"
-dontwarn
-dontoptimize
-dontobfuscate
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers

-ignorewarnings
-forceprocessing

# Inserting proguard additions file

/Users/jim/e/hi/proguard_cache_conf/proguard_additions.conf here
# /Users/jim/e/hi/proguard_cache_conf/proguard_additions.conf (No
such file or directory)
-keep class com.zope.hi.BuildConfig {;}
-keep class com.zope.hi.MainActivity {
;}
-keep class com.zope.hi.R$attr {;}
-keep class com.zope.hi.R$drawable {
;}
-keep class com.zope.hi.R$id {;}
-keep class com.zope.hi.R$layout {
;}
-keep class com.zope.hi.R$menu {;}
-keep class com.zope.hi.R$string {
;}
-keep class com.zope.hi.R$style {;}
-keep class com.zope.hi.R {
;}

So it looks like there's a missing -injars for the test project.

Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm

from androidproguardscala.

banshee avatar banshee commented on July 30, 2024

What Scala ide version are you using?
On Feb 3, 2013 1:02 PM, "Jim Fulton" [email protected] wrote:

On Sun, Feb 3, 2013 at 3:42 PM, James Moore [email protected]
wrote:

It doesn't look like those projects have AndroidProguardScala nature;

The nature is listed in hi/.project and hiTest/.project

there's no proguard_conf directory (or did you just not check that in?)

I've never seen such a thing.

I do have proguard_cache and proguard_cache_conf directories, which I
assumed I shouldn't check in.

What does the proguard_processed.conf file look like?

like this:

-injars
"/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-library.jar"(!META-INF/MANIFEST.MF)
-injars
"/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-swing.jar"(!META-INF/MANIFEST.MF)
-injars
"/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-actors.jar"(!META-INF/MANIFEST.MF)
-outjars
"/Users/jim/e/hi/proguard_cache/jartender_cache_6342811044649977578.jar"
-injars "/Users/jim/e/hi/bin/classes"
-libraryjars "/Users/jim/i/android/sdk/platforms/android-4.2/android.jar"
-libraryjars "/Users/jim/e/hi/libs/android-support-v4.jar"
-dontwarn
-dontoptimize
-dontobfuscate
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers

-ignorewarnings
-forceprocessing

Inserting proguard additions file

/Users/jim/e/hi/proguard_cache_conf/proguard_additions.conf here

/Users/jim/e/hi/proguard_cache_conf/proguard_additions.conf (No

such file or directory)
-keep class com.zope.hi.BuildConfig {;}
-keep class com.zope.hi.MainActivity {
;}
-keep class com.zope.hi.R$attr {;}
-keep class com.zope.hi.R$drawable {
;}
-keep class com.zope.hi.R$id {;}
-keep class com.zope.hi.R$layout {
;}
-keep class com.zope.hi.R$menu {;}
-keep class com.zope.hi.R$string {
;}
-keep class com.zope.hi.R$style {;}
-keep class com.zope.hi.R {
;}

So it looks like there's a missing -injars for the test project.

Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-13054228.

from androidproguardscala.

jimfulton avatar jimfulton commented on July 30, 2024

On Sun, Feb 3, 2013 at 4:02 PM, Jim Fulton [email protected] wrote:

On Sun, Feb 3, 2013 at 3:42 PM, James Moore [email protected] wrote:

What does the proguard_processed.conf file look like?

like this:

Sorry, I think I sent the wrong one. It look like this:

-injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-library.jar"(!META-INF/MANIFEST.MF)
-injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-swing.jar"(!META-INF/MANIFEST.MF)
-injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-actors.jar"(!META-INF/MANIFEST.MF)
-outjars "/Users/jim/e/hiTests/proguard_cache/jartender_cache_2142014402002217566.jar"
-injars "/Users/jim/e/hiTests/bin/classes"
-libraryjars "/Users/jim/i/android/sdk/platforms/android-4.2/android.jar"
-dontwarn
-dontoptimize
-dontobfuscate
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers

-ignorewarnings
-forceprocessing

Inserting proguard additions file

/Users/jim/e/hiTests/proguard_cache_conf/proguard_additions.conf here

/Users/jim/e/hiTests/proguard_cache_conf/proguard_additions.conf (No

such file or directory)
-keep class com.zope.hi.test.BuildConfig {;}
-keep class com.zope.hi.test.MainActivityTest {
;}
-keep class com.zope.hi.test.R$attr {;}
-keep class com.zope.hi.test.R$drawable {
;}
-keep class com.zope.hi.test.R$string {;}
-keep class com.zope.hi.test.R {
;}

So it does have the test class directory.

I noticed in the AndroidProguardScala properties that the
scala-reflect jar was being ignored.

Give that the error I'm getting is:

E/AndroidRuntime(2992): java.lang.NoClassDefFoundError:
scala/reflect/ScalaSignature

That seemed relevant, but even after setting scala-reflect to be an
input jar, I'm still getting the error.

Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm

from androidproguardscala.

jimfulton avatar jimfulton commented on July 30, 2024

On Sun, Feb 3, 2013 at 4:19 PM, James Moore [email protected]:

What Scala ide version are you using?

2.1.0 nightly 2_10 from Jan 24.

I couldn't get a non nightly release to work.

scala-ide/docs#39

Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm

from androidproguardscala.

jimfulton avatar jimfulton commented on July 30, 2024

Removing the AndroidProguardScala nature and putting the scala library in by libs directory worked.

So then... Added proguard_cache_conf/proguard_additions.conf with:

-keep class scala.reflect.ScalaSignature

removed proguard_cache and success!

So, maybe AndroidProguardScala should add that for test projects?

I guess I should check proguard_cache_conf in?

The README's description of proguard_cache and proguard_cache_conf don't seem to match what I'm seeing.
My proguard_cache_conf is empty except for proguard_additions.conf. proguard_processed.conf is in proguard_cache.

from androidproguardscala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.