Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiled version? #2

Open
sschueller opened this issue Jan 16, 2014 · 8 comments
Open

Compiled version? #2

sschueller opened this issue Jan 16, 2014 · 8 comments

Comments

@sschueller
Copy link

Is there a compiled version of the module available?

Thanks

@ghahramani
Copy link
Owner

Yes I will upload it tonight. I can't do it now. I'm not home now.

@sschueller
Copy link
Author

Thanks, no rush, I was able to compile it now. However, having some issues with the eventhandlers crashing the app.

@ricardoalcocer
Copy link
Contributor

@sschueller, it seems like you and I always end up in the same repos :) @dreamlearn, could you provide the compiled version?

@ricardoalcocer
Copy link
Contributor

BTW, I was able to compile it without problems. I had to modify timodule.xml to remove the Android Theme section. It runs fine for 5 seconds until I get a "License Violation Detected" error:

[ERROR] TiVerify: (Timer-2) [1145,6126] License violation detected. Unlicensed module(s) detected. You must be a subscriber to use one or more of the modules included with this project.. Please contact Appcelerator Support.

UPDATE: Fixed it by changing the GUID in the manifest file and recompiling. It appears to be working properly now. :)

@sschueller
Copy link
Author

@ricardoalcocer : We have to stop meeting this way :) Did you get the event listeners to work? There is a resource missing "com.astuetz.viewpager.extensions.PagerSlidingTabStrip". Wenn I added it I could not longer compile. I also tried it in InteliJ but couldn't get it compile.

More info here: https://developer.appcelerator.com/question/156109/google-play-viewpager-and-tabs-module . Click "Show 5 more comments" for a lot more info.

@ricardoalcocer
Copy link
Contributor

@sschueller , the problem with the event listeners is that they are on a non-existent object, proxy. I changed it to tabs and it worked (tabs.addEventListener instead of proxy.addEventListener).

The only thinks I needed to to in order to properly compile were:

  • Change the GUID in the manifest file. This needs to be unique. I simply created one here: http://www.guidgenerator.com/
  • Changed build.properties to match my folders
  • Then on the compiled module, I went to timodule.xml and removed the application tag from the manifest entry.

Then on the app, I added the listener like this:

 tabs.addEventListener(tabs.PAGE_SELECTED_EVENT_NAME, function () {
Ti.API.info("TAG: ", arguments.length, JSON.stringify(arguments));

});

All the rest works just great!

I forked the project. Go to https://github.com/ricardoalcocer/viewpager and you can either get the compiled project from the /dist folder, or grab the test app from /testapp. Eitherway, they already have the changes mentioned above, so it's ready for use.

@ardiwine
Copy link

ardiwine commented Oct 3, 2014

@ricardoalcocer i tried to compile your testapp using 3.3.GA and 3.4.GA it wouldn't build. It was working fine on 3.2.3.GA

This is the error i got:

[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] :  Failed to package application:
[ERROR] :  
[ERROR] :  /Users/ardiwine/Downloads/viewpager-master/testapp/build/android/res/values/attrs.xml:9: error: Attribute "dividerPadding" has already been defined
[ERROR] :  /Users/ardiwine/Downloads/viewpager-master/testapp/build/android/res/values/attrs.xml:14: error: Attribute "textAllCaps" has already been defined

@ricardoalcocer
Copy link
Contributor

Hi,

That's a known issue but easy to solve. You'll have to remove those
entries from the module's attr.xml because they're already set by
Titanium. Here's a description:

#5

R

On Thu, Oct 2, 2014 at 7:17 PM, Edwin Ardiwinata [email protected]
wrote:

@ricardoalcocer https://github.com/ricardoalcocer i tried to compile
your testapp using 3.3.GA and 3.4.GA it wouldn't build. It was working
fine on 3.2.3.GA

This is the error i got:

[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] : Failed to package application:
[ERROR] :
[ERROR] : /Users/ardiwine/Downloads/viewpager-master/testapp/build/android/res/values/attrs.xml:9: error: Attribute "dividerPadding" has already been defined
[ERROR] : /Users/ardiwine/Downloads/viewpager-master/testapp/build/android/res/values/attrs.xml:14: error: Attribute "textAllCaps" has already been defined


Reply to this email directly or view it on GitHub
#2 (comment).

ghahramani pushed a commit that referenced this issue May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants